2021-09-10 22:19:24 -07:00
|
|
|
|
using BurnOutSharp.ExecutableType.Microsoft;
|
|
|
|
|
|
using BurnOutSharp.Tools;
|
2021-03-21 14:30:37 -07:00
|
|
|
|
|
|
|
|
|
|
namespace BurnOutSharp.ProtectionType
|
2020-10-29 10:05:56 -07:00
|
|
|
|
{
|
2021-02-26 01:26:49 -08:00
|
|
|
|
public class ThreeTwoOneStudios : IContentCheck
|
2020-10-29 10:05:56 -07:00
|
|
|
|
{
|
2021-09-07 21:08:25 -07:00
|
|
|
|
/// <inheritdoc/>
|
2021-09-10 16:10:15 -07:00
|
|
|
|
public string CheckContents(string file, byte[] fileContent, bool includeDebug, PortableExecutable pex, NewExecutable nex)
|
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
|
|
|
|
|
2021-09-10 22:19:24 -07:00
|
|
|
|
var resource = Utilities.FindResourceInSection(pex.ResourceSection, 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";
|
2021-09-07 21:08:25 -07:00
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
2020-10-29 10:05:56 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|