mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-09 02:16:46 +00:00
28 lines
933 B
C#
28 lines
933 B
C#
using BinaryObjectScanner.Interfaces;
|
|
using SabreTools.Serialization.Wrappers;
|
|
|
|
namespace BinaryObjectScanner.Packer
|
|
{
|
|
// TODO: Add extraction
|
|
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
|
|
public class GenteeInstaller : IExecutableCheck<PortableExecutable>
|
|
{
|
|
/// <inheritdoc/>
|
|
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
|
|
{
|
|
// Get the .data/DATA section strings, if they exist
|
|
var strs = pex.GetFirstSectionStrings(".data") ?? pex.GetFirstSectionStrings("DATA");
|
|
if (strs != null)
|
|
{
|
|
if (strs.Exists(s => s.Contains("Gentee installer")))
|
|
return "Gentee Installer";
|
|
|
|
if (strs.Exists(s => s.Contains("ginstall.dll")))
|
|
return "Gentee Installer";
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|