Ejemplo n.º 1
0
 protected override void ScanForObfuscator()
 {
     decrypterType = new DecrypterType(module);
     decrypterType.Find();
     nativeLibSaver = new NativeLibSaver(module);
     nativeLibSaver.Find();
     obfuscatorName = DetectVersion();
     if (unpackedNativeFile)
     {
         obfuscatorName += " (native)";
     }
 }
Ejemplo n.º 2
0
 public NativeLibSaver(ModuleDefMD module, NativeLibSaver oldOne)
 {
     this.module = module;
     this.nativeLibCallerType = Lookup(oldOne.nativeLibCallerType, "Could not find nativeLibCallerType");
     this.initMethod          = Lookup(oldOne.initMethod, "Could not find initMethod");
     if (oldOne.nativeFileResource != null)
     {
         this.nativeFileResource = DotNetUtils.GetResource(module, oldOne.nativeFileResource.Name.String);
         if (this.nativeFileResource == null)
         {
             throw new ApplicationException("Could not find nativeFileResource");
         }
     }
 }