Make packers code more consistent

This commit is contained in:
Matt Nadareski
2025-09-20 17:59:20 -04:00
parent 5f9f21ae14
commit 4afea551ba
6 changed files with 20 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ namespace BinaryObjectScanner.Packer
// This check may be overly limiting, as it excludes the sample provided to DiE (https://github.com/horsicq/Detect-It-Easy/issues/102).
// TODO: Find further samples and invesitgate if the "peC" section is only present on specific versions.
bool importTableMatch = Array.Exists(exe.ImportTable?.ImportDirectoryTable ?? [],
idte => idte?.Name == "KeRnEl32.dLl");
idte => idte.Name == "KeRnEl32.dLl");
if (exe.ContainsSection("peC", exact: true) && importTableMatch)
return "HyperTech CrackProof";