Files
BinaryObjectScanner/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs

24 lines
765 B
C#
Raw Normal View History

2022-03-14 11:20:11 -07:00
using BurnOutSharp.ExecutableType.Microsoft.PE;
2022-05-01 17:41:50 -07:00
using BurnOutSharp.Interfaces;
2021-03-21 14:30:37 -07:00
namespace BurnOutSharp.ProtectionType
{
2022-05-01 17:17:15 -07:00
public class ThreeTwoOneStudios : IPortableExecutableCheck
{
/// <inheritdoc/>
2022-05-01 17:17:15 -07:00
public string CheckPortableExecutable(string file, PortableExecutable pex, bool includeDebug)
{
// Get the sections from the executable, if possible
var sections = pex?.SectionTable;
if (sections == null)
return null;
2021-09-10 15:32:37 -07:00
var resource = pex.FindResource(dataContains: "3\02\01\0S\0t\0u\0d\0i\0o\0s\0 \0A\0c\0t\0i\0v\0a\0t\0i\0o\0n\0");
if (resource != null)
return $"321Studios Online Activation";
return null;
}
}
}