diff --git a/BinaryObjectScanner.Protection/ActiveMARK.cs b/BinaryObjectScanner.Protection/ActiveMARK.cs
index 92265ffd..fa111ea9 100644
--- a/BinaryObjectScanner.Protection/ActiveMARK.cs
+++ b/BinaryObjectScanner.Protection/ActiveMARK.cs
@@ -50,31 +50,31 @@ namespace BinaryObjectScanner.Protection
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
else if (pex.EntryPointData.StartsWith(new byte?[] { 0x89, 0x25, null, null, null, null, 0xEB }))
- return "ActiveMark -> Trymedia Systems Inc.";
+ return "ActiveMark -> Trymedia Systems Inc. (Unconfirmed - Please report to us on Github)";
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
else if (pex.EntryPointData.StartsWith(new byte?[] { 0x89, 0x25, null, null, null, null, 0x33, 0xED, 0x55, 0x8B, 0xEC, 0xE8, null, null, null, null, 0x8B, 0xD0, 0x81, 0xE2, 0xFF, 0x00, 0x00, 0x00, 0x89, 0x15, null, null, null, null, 0x8B, 0xD0, 0xC1, 0xEA, 0x08, 0x81, 0xE2, 0xFF, 0x00, 0x00, 0x00, 0xA3, null, null, null, null, 0xD1, 0xE0, 0x0F, 0x93, 0xC3, 0x33, 0xC0, 0x8A, 0xC3, 0xA3, null, null, null, null, 0x68, 0xFF, 0x00, 0x00, 0x00, 0xE8, null, null, null, null, 0x6A, 0x00, 0xE8, null, null, null, null, 0xA3, null, null, null, null, 0xBB, null, null, null, null, 0xC7, 0x03, 0x44, 0x00, 0x00, 0x00 }))
- return "ActiveMark -> Trymedia Systems Inc.";
+ return "ActiveMark -> Trymedia Systems Inc. (Unconfirmed - Please report to us on Github)";
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
else if (pex.EntryPointData.StartsWith(new byte?[] { 0x20, 0x2D, 0x2D, 0x4D, 0x50, 0x52, 0x4D, 0x4D, 0x47, 0x56, 0x41, 0x2D, 0x2D, 0x00, 0x75, 0x73, 0x65, 0x72, 0x33, 0x32, 0x2E, 0x64, 0x6C, 0x6C, 0x00, 0x4D, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6F, 0x78, 0x41, 0x00, 0x54, 0x68, 0x69, 0x73, 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x63, 0x61, 0x6E, 0x6E, 0x6F, 0x74, 0x20, 0x72, 0x75, 0x6E, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x6E, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x64, 0x65, 0x62, 0x75, 0x67 }))
- return "ActiveMARK 5.x -> Trymedia Systems Inc. (h)";
+ return "ActiveMARK 5.x -> Trymedia Systems Inc. (h) (Unconfirmed - Please report to us on Github)";
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
else if (pex.EntryPointData.StartsWith(new byte?[] { 0x20, 0x2D, 0x2D, 0x4D, 0x50, 0x52, 0x4D, 0x4D, 0x47, 0x56, 0x41, 0x2D, 0x2D, 0x00, 0x75, 0x73, 0x65, 0x72, 0x33, 0x32, 0x2E, 0x64, 0x6C, 0x6C, 0x00, 0x4D, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x6F, 0x78, 0x41, 0x00, 0x54, 0x68, 0x69, 0x73, 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x63, 0x61, 0x6E, 0x6E, 0x6F, 0x74, 0x20, 0x72, 0x75, 0x6E, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x6E, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x64, 0x65, 0x62, 0x75, 0x67, 0x67, 0x65, 0x72, 0x20, 0x69, 0x6E, 0x20, 0x6D, 0x65, 0x6D, 0x6F, 0x72, 0x79, 0x2E, 0x0D, 0x0A, 0x50, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x20, 0x75, 0x6E, 0x6C, 0x6F, 0x61, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x65, 0x62, 0x75, 0x67, 0x67, 0x65, 0x72, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2E, 0x00, 0x57, 0x61, 0x72, 0x6E, 0x69, 0x6E, 0x67 }))
- return "ActiveMARK 5.x -> Trymedia Systems,Inc.";
+ return "ActiveMARK 5.x -> Trymedia Systems,Inc. (Unconfirmed - Please report to us on Github)";
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
else if (pex.EntryPointData.StartsWith(new byte?[] { 0x79, 0x11, 0x7F, 0xAB, 0x9A, 0x4A, 0x83, 0xB5, 0xC9, 0x6B, 0x1A, 0x48, 0xF9, 0x27, 0xB4, 0x25 }))
- return "ActiveMARK[TM]";
+ return "ActiveMARK[TM] (Unconfirmed - Please report to us on Github)";
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
else if (pex.EntryPointData.StartsWith(new byte?[] { 0x79, 0x07, 0x0F, 0xB7, 0x07, 0x47, 0x50, 0x47, 0xB9, 0x57, 0x48, 0xF2, 0xAE, 0x55, 0xFF, 0x96, 0x84, null, 0x00, 0x00, 0x09, 0xC0, 0x74, 0x07, 0x89, 0x03, 0x83, 0xC3, 0x04, 0xEB, 0xD8, 0xFF, 0x96, 0x88, null, 0x00, 0x00, 0x61, 0xE9, null, null, null, 0xFF }))
- return "ActiveMARK[TM] R5.31.1140 -> Trymedia";
+ return "ActiveMARK[TM] R5.31.1140 -> Trymedia (Unconfirmed - Please report to us on Github)";
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
else if (pex.EntryPointData.StartsWith(new byte?[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0x60, 0xFF, 0xD5, 0x87, 0x5E, 0x10, 0x73, 0x0D, 0x83, 0xC2, 0x30, 0xFF, 0xD5, 0x87, 0x5E, 0x14, 0x73, 0x03, 0x87, 0x5E, 0x18, 0x3C, 0x07, 0xB0, 0x08, 0x72, 0x02, 0xB0, 0x0B, 0x50, 0x53, 0x8D, 0x96, 0x7C, 0x07, 0x00, 0x00, 0xFF, 0x55, 0xD0, 0x5B, 0x91, 0xEB, 0x77, 0x3C, 0x07, 0xB0, 0x07, 0x72, 0x02, 0xB0, 0x0A, 0x50, 0x87, 0x5E, 0x10, 0x87, 0x5E, 0x14, 0x89, 0x5E, 0x18, 0x8D, 0x96, 0xC4, 0x0B, 0x00, 0x00, 0xFF, 0x55, 0xD0, 0x50, 0x48 }))
- return "ActiveMARK 5.x -> Trymedia Systems,Inc. (h)";
+ return "ActiveMARK 5.x -> Trymedia Systems,Inc. (h) (Unconfirmed - Please report to us on Github)";
}
// Get the .data section strings, if they exist
diff --git a/BinaryObjectScanner.Protection/SVKP.cs b/BinaryObjectScanner.Protection/SVKP.cs
index 63f23c55..6f8412e2 100644
--- a/BinaryObjectScanner.Protection/SVKP.cs
+++ b/BinaryObjectScanner.Protection/SVKP.cs
@@ -1,15 +1,29 @@
using BinaryObjectScanner.Interfaces;
+using BinaryObjectScanner.Matching;
using BinaryObjectScanner.Wrappers;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.IO;
namespace BinaryObjectScanner.Protection
{
- // TODO: Figure out how versions/version ranges work for this protection
- // https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
- // The official website (https://web.archive.org/web/20010301183549/http://www.anticracking.sk/) contains installations for demo versions of SVKP, which themselves are also protected with SVKP.
- // The site also contains useful information about various other copy protections from the era.
- // Additional info: https://www.cdmediaworld.com/hardware/cdrom/cd_protections_svkp.shtml
- public class SVKProtector : IPortableExecutableCheck
+ ///
+ /// "SVK - Protector"/"Slovak Protector"/SVKP (https://web.archive.org/web/20020604155614/http://www.anticracking.sk/) was a packer created by Pavol Cerven that focused on protecting and obfuscating executables.
+ /// It offered features such as encryption, debugger detection, and protection against memory dumps (https://web.archive.org/web/20020805143050fw_/http://www.anticracking.sk/svkp.html).
+ ///
+ /// Additional resources and documentation:
+ /// SVKP 1.05 demo: https://web.archive.org/web/20020614222838/http://www.anticracking.sk/svkp_setup.rar
+ /// SVKP 1.051 demo: https://web.archive.org/web/20020805001642/http://www.anticracking.sk/svkp_setup.rar
+ /// SVKP 1.11 demo: https://web.archive.org/web/20030424094050/http://www.anticracking.sk/svkp_setup.rar
+ /// SVKP 1.32 demo: https://web.archive.org/web/20030818210217/http://www.anticracking.sk/svkp_setup.rar
+ /// CD Media World article for SVKP: https://www.cdmediaworld.com/hardware/cdrom/cd_protections_svkp.shtml
+ /// Unofficial PEiD detections for SVKP: https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
+ /// DiE detections for SVKP: https://github.com/horsicq/Detect-It-Easy/blob/master/db/PE/SVK%20Protector.2.sg
+ ///
+ public class SVKProtector : IPathCheck, IPortableExecutableCheck
{
+ // TODO: Find 1.4+ samples.
+
///
public string CheckPortableExecutable(string file, PortableExecutable pex, bool includeDebug)
{
@@ -18,11 +32,94 @@ namespace BinaryObjectScanner.Protection
if (sections == null)
return null;
+ // TODO: Investigate the "Debugger or tool for monitoring detected!!!.Application cannot be run with debugger or monitoring tool(s) loaded!. Please unload it and restart the application" strings present in seemingly every version.
+
+ // Get the entry point data, if it exists.
+ if (pex.EntryPointData != null)
+ {
+ // Found in the SVKP 1.05 demo.
+ if (pex.EntryPointData.StartsWith(new byte?[]
+ {
+ 0xEB, 0x03, 0xC7, 0x84, 0xE8, 0x60, 0xEB, 0x03,
+ 0xC7, 0x84, 0xE8, 0xEB, 0x03, 0xC7, 0x84, 0x9A,
+ 0xE8, 0x00, 0x00, 0x00, 0x00, 0x5D, 0x81, 0xED,
+ 0x15, 0x00, 0x00, 0x00, 0xEB, 0x03, 0xC7, 0x84,
+ 0xE9, 0x64, 0xA0
+ }))
+ return "SVKP v1.05";
+
+ // Found in the SVKP 1.051 demo.
+ if (pex.EntryPointData.StartsWith(new byte?[]
+ {
+ 0x60, 0xEB, 0x03, 0xC7, 0x84, 0xE8, 0xEB, 0x03,
+ 0xC7, 0x84, 0x9A, 0xE8, 0x00, 0x00, 0x00, 0x00,
+ 0x5D, 0x81, 0xED, 0x10, 0x00, 0x00, 0x00, 0xEB,
+ 0x03, 0xC7, 0x84, 0xE9, 0x64, 0xA0, 0x23, 0x00,
+ 0x00, 0x00, 0xEB
+ }))
+ return "SVKP v1.051";
+
+ // Found in the SVKP 1.11 demo.
+ if (pex.EntryPointData.StartsWith(new byte?[]
+ {
+ 0x60, 0xE8, null, null, null, null, 0x5D, 0x81,
+ 0xED, 0x06, null, null, null, 0x64, 0xA0, 0x23
+ }))
+ return "SVKP v1.11";
+
+ // Found in the SVKP 1.32 demo and Redump entry 84122.
+ if (pex.EntryPointData.StartsWith(new byte?[]
+ {
+ 0x60, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x5D, 0x81,
+ 0xED, 0x06, 0x00, 0x00, 0x00, 0xEB, 0x05, 0xB8,
+ null, null, null, null, 0x64, 0xA0, 0x23
+ }))
+ return "SVKP v1.3+";
+ }
+
// 0x504B5653 is "SVKP"
if (pex.PointerToSymbolTable == 0x504B5653)
- return "SVKP (Slovak Protector)";
+ return "SVKP";
+
+ // Get the .svkp section, if it exists.
+ // This section is present in at least versions 1.05-1.32, but isn't present in every known sample of these versions. Removing this section name may be a perk of the licensed version.
+ bool neolitSection = pex.ContainsSection(".svkp", exact: true);
+ if (neolitSection)
+ return "SVKP";
return null;
}
+
+ ///
+ public ConcurrentQueue CheckDirectoryPath(string path, IEnumerable files)
+ {
+ var matchers = new List
+ {
+ // Found in the SVKP 1.05-1.32 demos.
+ new PathMatchSet(new PathMatch($"{Path.DirectorySeparatorChar}svkp.exe", useEndsWith: true), "SVKP"),
+ new PathMatchSet(new PathMatch($"{Path.DirectorySeparatorChar}svkp.key", useEndsWith: true), "SVKP"),
+
+ // Found in the SVKP 1.32 demo.
+ new PathMatchSet(new PathMatch($"{Path.DirectorySeparatorChar}svkpnd.dll", useEndsWith: true), "SVKP"),
+ };
+
+ return MatchUtil.GetAllMatches(files, matchers, any: false);
+ }
+
+ ///
+ public string CheckFilePath(string path)
+ {
+ var matchers = new List
+ {
+ // Found in the SVKP 1.05-1.32 demos.
+ new PathMatchSet(new PathMatch($"{Path.DirectorySeparatorChar}svkp.exe", useEndsWith: true), "SVKP"),
+ new PathMatchSet(new PathMatch($"{Path.DirectorySeparatorChar}svkp.key", useEndsWith: true), "SVKP"),
+
+ // Found in the SVKP 1.32 demo.
+ new PathMatchSet(new PathMatch($"{Path.DirectorySeparatorChar}svkpnd.dll", useEndsWith: true), "SVKP"),
+ };
+
+ return MatchUtil.GetFirstMatch(path, matchers, any: true);
+ }
}
}
diff --git a/README.md b/README.md
index 3bf64fd9..00ffd429 100644
--- a/README.md
+++ b/README.md
@@ -97,7 +97,7 @@ Below is a list of protections detected by BurnOutSharp. The two columns explain
| SolidShield | True | True | Some Wrapper v1 not detected² |
| StarForce | True | False | Partially unconfirmed², commented out issue with `protect.exe` false positives |
| Steam | True | True | |
-| SVKP (Slovak Protector) | True | False | |
+| SVKP (Slovak Protector) | True | True | |
| Sysiphus / Sysiphus DVD | True | False | |
| TAGES | True | True | Partially unconfirmed² |
| Themida/WinLicense/Code Virtualizer | True | False | Only certain products/versions currently detected |