1- using System ;
21using BinaryObjectScanner . Interfaces ;
3- using SabreTools . Models . PortableExecutable . ResourceEntries ;
42using SabreTools . Serialization . Wrappers ;
53
64namespace BinaryObjectScanner . Packer
@@ -23,23 +21,11 @@ public class GenteeInstaller : IExecutableCheck<PortableExecutable>
2321 return "Gentee Installer" ;
2422 }
2523
26- // Get the resource data
27- // TODO: This should be replaced by a helper method on the wrapper
28- var resourceData = exe . ResourceData ;
29- if ( resourceData != null )
30- {
31- var resourceValue = Array . Find ( [ .. resourceData . Values ] , rd => rd is AssemblyManifest ) ;
32- if ( resourceValue != null && resourceValue is AssemblyManifest manifest )
33- {
34- var identities = manifest ? . AssemblyIdentities ?? [ ] ;
35- var nameIdentity = Array . Find ( identities , ai => ! string . IsNullOrEmpty ( ai ? . Name ) ) ;
36-
37- // <see href="https://www.virustotal.com/gui/file/40e222d35fe8bdd94360462e2f2b870ec7e2c184873e2a481109408db790bfe8/details"/>
38- // This was found in a "Create Install 2003"-made installer
39- if ( nameIdentity ? . Name == "Gentee.Installer.Install" )
40- return "Gentee Installer" ;
41- }
42- }
24+ // <see href="https://www.virustotal.com/gui/file/40e222d35fe8bdd94360462e2f2b870ec7e2c184873e2a481109408db790bfe8/details"/>
25+ // This was found in a "Create Install 2003"-made installer
26+ string ? name = exe . AssemblyName ;
27+ if ( name == "Gentee.Installer.Install" )
28+ return "Gentee Installer" ;
4329
4430 return null ;
4531 }
0 commit comments