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(MethodDef method, IDeobfuscator theDeob) { Deobfuscate(method, "Static string decryption", (blocks) => theDeob.DeobfuscateStrings(blocks)); }