Fix bug in methods decrypter
This commit is contained in:
parent
b8564335b8
commit
160527447c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user