Exemplo n.º 1
0
        static List <TypeDef> Lookup(ModuleDefMD module, List <TypeDef> types, string errorMsg)
        {
            var list = new List <TypeDef>(types.Count);

            foreach (var type in types)
            {
                list.Add(DeobUtils.Lookup(module, type, errorMsg));
            }
            return(list);
        }
Exemplo n.º 2
0
        public override IDeobfuscator ModuleReloaded(ModuleDefMD module)
        {
            var newOne = new Deobfuscator(options);

            newOne.SetModule(module);
            newOne.mainType         = new MainType(module, mainType);
            newOne.methodsDecrypter = new MethodsDecrypter(mainType, methodsDecrypter);
            newOne.stringDecrypter  = new StringDecrypter(module, newOne.mainType, stringDecrypter);
            newOne.proxyCallFixer   = new ProxyCallFixer(module, newOne.mainType, proxyCallFixer);
            newOne.killType         = DeobUtils.Lookup(module, killType, "Could not find KILL type");
            return(newOne);
        }
Exemplo n.º 3
0
 T Lookup <T>(T def, string errorMessage) where T : class, ICodedToken
 {
     return(DeobUtils.Lookup(module, def, errorMessage));
 }