Add a couple of sections to raw read with notes

This commit is contained in:
Matt Nadareski
2021-09-11 21:10:29 -07:00
parent afdd032f73
commit 2c2aee6797
2 changed files with 30 additions and 9 deletions

View File

@@ -18,14 +18,12 @@ namespace BurnOutSharp.ProtectionType
return null;
// Get the .edata section, if it exists
var edataSection = pex.GetLastSection(".edata", exact: true);
string match = GetMatchForSection(edataSection, file, fileContent, includeDebug);
string match = GetMatchForSection(file, pex.ExportDataSectionRaw, includeDebug);
if (!string.IsNullOrWhiteSpace(match))
return match;
// Get the .idata section, if it exists
var idataSection = pex.GetLastSection(".idata", exact: true);
match = GetMatchForSection(idataSection, file, fileContent, includeDebug);
match = GetMatchForSection(file, pex.ImportDataSectionRaw, includeDebug);
if (!string.IsNullOrWhiteSpace(match))
return match;