Files
BinaryObjectScanner/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs

27 lines
858 B
C#
Raw Normal View History

using System.Linq;
2022-05-01 17:41:50 -07:00
using BurnOutSharp.Interfaces;
using BurnOutSharp.Wrappers;
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
// Check the dialog box resources
if (pex.FindDialogByTitle("321Studios Activation").Any())
return $"321Studios Online Activation";
else if (pex.FindDialogByTitle("321Studios Phone Activation").Any())
return $"321Studios Online Activation";
return null;
}
}
}