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