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); }
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); }
T Lookup <T>(T def, string errorMessage) where T : class, ICodedToken { return(DeobUtils.Lookup(module, def, errorMessage)); }