From 5899dd99f37ab341e2fbe9f14c013260fada31a7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 29 Sep 2025 08:24:08 -0400 Subject: [PATCH] Reduce AddD search window --- BinaryObjectScanner/Protection/SecuROM.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BinaryObjectScanner/Protection/SecuROM.cs b/BinaryObjectScanner/Protection/SecuROM.cs index 32e5efa0..42203018 100644 --- a/BinaryObjectScanner/Protection/SecuROM.cs +++ b/BinaryObjectScanner/Protection/SecuROM.cs @@ -262,7 +262,7 @@ namespace BinaryObjectScanner.Protection // Search for the "AddD" string in the overlay bool found = false; int index = 0; - for (; index < 0x100 && index + 4 < overlayData.Length; index++) + for (; index < 0x20 && index + 4 < overlayData.Length; index++) { int temp = index; byte[] overlaySample = overlayData.ReadBytes(ref temp, 0x04); @@ -273,7 +273,7 @@ namespace BinaryObjectScanner.Protection } } - // If the string wasn't found in the first 0x100 bytes + // If the string wasn't found in the first 0x20 bytes if (!found) return null;