mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-10 21:30:24 +00:00
24 lines
757 B
C#
24 lines
757 B
C#
using BinaryObjectScanner.Interfaces;
|
|
using SabreTools.Serialization.Wrappers;
|
|
|
|
namespace BinaryObjectScanner.Packer
|
|
{
|
|
// TODO: Verify that all versions are detected
|
|
public class AdvancedInstaller : IExecutableCheck<PortableExecutable>
|
|
{
|
|
/// <inheritdoc/>
|
|
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
|
|
{
|
|
// Get the .rdata section strings, if they exist
|
|
var strs = exe.GetFirstSectionStrings(".rdata");
|
|
if (strs != null)
|
|
{
|
|
if (strs.Exists(s => s.Contains("Software\\Caphyon\\Advanced Installer")))
|
|
return "Caphyon Advanced Installer SFX";
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|