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
|
2020-10-29 10:05:56 -07:00
|
|
|
|
{
|
2022-05-01 17:17:15 -07:00
|
|
|
|
public class ThreeTwoOneStudios : IPortableExecutableCheck
|
2020-10-29 10:05:56 -07:00
|
|
|
|
{
|
2021-09-07 21:08:25 -07:00
|
|
|
|
/// <inheritdoc/>
|
2022-05-01 17:17:15 -07:00
|
|
|
|
public string CheckPortableExecutable(string file, PortableExecutable pex, bool includeDebug)
|
2021-03-23 09:52:09 -07:00
|
|
|
|
{
|
2021-09-07 21:08:25 -07:00
|
|
|
|
// 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
|
|
|
|
|
2022-04-02 15:54:51 -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");
|
2021-09-10 22:19:24 -07:00
|
|
|
|
if (resource != null)
|
|
|
|
|
|
return $"321Studios Online Activation";
|
2021-09-07 21:08:25 -07:00
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
2020-10-29 10:05:56 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|