diff --git a/BurnOutSharp/FileType/Executable.cs b/BurnOutSharp/FileType/Executable.cs index 8cbc12ee..63d26644 100644 --- a/BurnOutSharp/FileType/Executable.cs +++ b/BurnOutSharp/FileType/Executable.cs @@ -118,11 +118,6 @@ namespace BurnOutSharp.FileType if (!string.IsNullOrWhiteSpace(protection)) protections.Add(protection); - // Cucko (EA Custom) - protection = Cucko.CheckContents(fileContent, includePosition); - if (!string.IsNullOrWhiteSpace(protection)) - protections.Add(protection); - // dotFuscator protection = dotFuscator.CheckContents(fileContent, includePosition); if (!string.IsNullOrWhiteSpace(protection)) @@ -138,6 +133,11 @@ namespace BurnOutSharp.FileType if (!string.IsNullOrWhiteSpace(protection)) protections.Add(protection); + // EA Protections + protection = ElectronicArts.CheckContents(fileContent, includePosition); + if (!string.IsNullOrWhiteSpace(protection)) + protections.Add(protection); + // EXE Stealth protection = EXEStealth.CheckContents(fileContent, includePosition); if (!string.IsNullOrWhiteSpace(protection)) diff --git a/BurnOutSharp/ProtectionType/Cucko.cs b/BurnOutSharp/ProtectionType/ElectronicArts.cs similarity index 96% rename from BurnOutSharp/ProtectionType/Cucko.cs rename to BurnOutSharp/ProtectionType/ElectronicArts.cs index 3927840b..a62847a1 100644 --- a/BurnOutSharp/ProtectionType/Cucko.cs +++ b/BurnOutSharp/ProtectionType/ElectronicArts.cs @@ -1,11 +1,11 @@ namespace BurnOutSharp.ProtectionType { - public class Cucko + public class ElectronicArts { // TODO: Verify this doesn't over-match public static string CheckContents(byte[] fileContent, bool includePosition = false) { - // "EASTL" + // EASTL byte[] check = new byte[] { 0x45, 0x41, 0x53, 0x54, 0x4C }; if (fileContent.Contains(check, out int position)) return "Cucko (EA Custom)" + (includePosition ? $" (Index {position})" : string.Empty); diff --git a/BurnOutSharp/ProtectionType/SmartE.cs b/BurnOutSharp/ProtectionType/SmartE.cs index a1235e51..494830ce 100644 --- a/BurnOutSharp/ProtectionType/SmartE.cs +++ b/BurnOutSharp/ProtectionType/SmartE.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.ProtectionType { public static string CheckContents(byte[] fileContent, bool includePosition = false) { - // "BITARTS" + // BITARTS byte[] check = new byte[] { 0x42, 0x49, 0x54, 0x41, 0x52, 0x54, 0x53 }; if (fileContent.Contains(check, out int position)) return "SmartE" + (includePosition ? $" (Index {position})" : string.Empty);