Convert remaining XCP full content check

This commit is contained in:
Matt Nadareski
2021-09-14 11:51:01 -07:00
parent dbc841cb7f
commit 38d35d1991

View File

@@ -28,6 +28,9 @@ namespace BurnOutSharp.ProtectionType
// XCP.DAT
new ContentMatchSet(new byte?[] { 0x58, 0x43, 0x50, 0x2E, 0x44, 0x41, 0x54 }, "XCP"),
// xcpdrive
new ContentMatchSet(new byte?[] { 0x78, 0x63, 0x70, 0x64, 0x72, 0x69, 0x76, 0x65 }, "XCP"),
// XCPPlugins.dll
new ContentMatchSet(new byte?[]
{
@@ -48,14 +51,7 @@ namespace BurnOutSharp.ProtectionType
return match;
}
// TODO: Obtain a sample to find where this string is in a typical executable
var contentMatchSets = new List<ContentMatchSet>
{
// xcpdrive
new ContentMatchSet(new byte?[] { 0x78, 0x63, 0x70, 0x64, 0x72, 0x69, 0x76, 0x65 }, "XCP"),
};
return MatchUtil.GetFirstMatch(file, fileContent, contentMatchSets, includeDebug);
return null;
}
/// <inheritdoc/>