Detect-It-Easy/db/MSDOS/sfx_ChSFX.1.sg
DosX 9e621e1954 Rename and reorganize rule files
Renamed and moved numerous .sg files in the db directory to follow a more consistent naming convention and directory structure, grouping by type (e.g., compiler, cruncher, packer, protector, etc.). This improves maintainability and clarity of the signature database organization.
2026-01-25 11:20:39 +03:00

27 lines
No EOL
755 B
JavaScript

// Detect It Easy: detection rule file
// Author: hypn0 <hypn0@mail.ru>
meta("sfx", "CHZ SFX (ChSFX)");
function getChSFXVersion() {
var sResult = "";
var nStringOffset = MSDOS.findString(0, Math.min(0x100, MSDOS.getSize()), "ChSFX");
if (nStringOffset != -1) {
sResult = MSDOS.getString(nStringOffset + 6);
sResult = sResult.replace(/\s+$/, '');
}
return sResult;
}
function detect() {
if (MSDOS.compareEP("ba....e8$$$$1e0e1fe8$$$$52568bf2fcb4..eb$$ac0ac075")) {
sVersion = getChSFXVersion();
bDetected = true;
} else if (MSDOS.compareEP("8d16....e8$$$$1e0e1fe8$$$$52568bf2fcb4..eb$$ac0ac075")) {
sVersion = getChSFXVersion();
bDetected = true;
}
return result();
}