void deobfuscateStrings(Blocks blocks) { switch (options.StringDecrypterType) { case DecrypterType.None: break; case DecrypterType.Static: deob.deobfuscateStrings(blocks); break; case DecrypterType.Delegate: case DecrypterType.Emulate: dynamicStringInliner.decrypt(blocks); break; default: throw new ApplicationException(string.Format("Invalid string decrypter type '{0}'", options.StringDecrypterType)); } }
void ISimpleDeobfuscator.decryptStrings(MethodDefinition method, IDeobfuscator theDeob) { deobfuscate(method, "Static string decryption", (blocks) => theDeob.deobfuscateStrings(blocks)); }