Files
BinaryObjectScanner/BinaryObjectScanner.Protection/ThreeTwoOneStudios.cs

27 lines
875 B
C#
Raw Normal View History

using System.Linq;
using BinaryObjectScanner.Interfaces;
2023-03-07 16:59:14 -05:00
using BinaryObjectScanner.Wrappers;
2021-03-21 14:30:37 -07:00
namespace BinaryObjectScanner.Protection
{
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;
}
}
}