Increase default section scan size to 0x3000

Adjust the maxScanSize calculation in scanForMaliciousCode_NET_and_Native so non-.rdata PE sections are scanned up to 0x3000 bytes (was 0x2500). .rdata sections remain capped at 0x6000. This expands the scan window to improve detection coverage for larger sections.
This commit is contained in:
DosX 2026-06-18 18:29:01 +03:00
commit 85f36dee0a

View file

@ -7945,7 +7945,7 @@ function scanForMaliciousCode_NET_and_Native() {
}
if (sectionOffset > 0 && sectionSize > 0x2500) {
var maxScanSize = Math.min(sectionSize, PE.section[i].Name.match(/^\.(?:r)?data$/i) ? 0x6000 : 0x2500),
var maxScanSize = Math.min(sectionSize, PE.section[i].Name.match(/^\.(?:r)?data$/i) ? 0x6000 : 0x3000),
dataBuffer = getDecodedBuffer(sectionOffset, maxScanSize);
if (scanBuffer(dataBuffer, maxScanSize, sectionOffset)) isEncPePresent = true;