Fix bug in methods decrypter

This commit is contained in:
de4dot 2011-12-02 15:20:27 +01:00
parent b8564335b8
commit 160527447c

View File

@ -172,7 +172,7 @@ namespace de4dot.deobfuscators.CliSecure {
offset = methodDefTable.fileOffset - methodDefTable.totalSize;
foreach (var methodInfo in methodInfos) {
offset += methodDefTable.totalSize;
if (methodInfo.flags == 0 || methodInfo.localVarSigTok == 0)
if (methodInfo.flags == 0 && methodInfo.localVarSigTok == 0)
continue;
uint rva = peImage.offsetReadUInt32(offset);
peImage.writeUint16(rva, (ushort)methodInfo.flags);