Update code since GetUserString() arg is now a token

This commit is contained in:
de4dot 2012-07-26 20:07:27 +02:00
parent f608d80fa1
commit 1a1ccb2121
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
tamperDetection.find();
constantsDecrypter = new ConstantsDecrypter(module);
constantsDecrypter.find();
foundObfuscatorUserString = Utils.StartsWith(module.GetUserString(1), "\u0011\"3D9B94A98B-76A8-4810-B1A0-4BE7C4F9C98D", StringComparison.Ordinal);
foundObfuscatorUserString = Utils.StartsWith(module.GetUserString(0x70000001), "\u0011\"3D9B94A98B-76A8-4810-B1A0-4BE7C4F9C98D", StringComparison.Ordinal);
}
void initializeVersion(TypeDefinition attr) {

View File

@ -176,7 +176,7 @@ namespace de4dot.code.deobfuscators.ILProtector {
}
protected override string readInlineString(Instruction instr) {
return module.GetUserString(reader.ReadUInt32() & 0x00FFFFFF);
return module.GetUserString(reader.ReadUInt32());
}
protected override MemberReference readInlineTok(Instruction instr) {