Ignore any exceptions during deobfuscation
This commit is contained in:
parent
79eee87d76
commit
a2c8e99b3f
|
@ -720,6 +720,7 @@ namespace de4dot.code {
|
||||||
Log.indent();
|
Log.indent();
|
||||||
|
|
||||||
if (hasNonEmptyBody(method)) {
|
if (hasNonEmptyBody(method)) {
|
||||||
|
try {
|
||||||
var blocks = new Blocks(method);
|
var blocks = new Blocks(method);
|
||||||
|
|
||||||
handler(blocks);
|
handler(blocks);
|
||||||
|
@ -729,6 +730,10 @@ namespace de4dot.code {
|
||||||
blocks.getCode(out allInstructions, out allExceptionHandlers);
|
blocks.getCode(out allInstructions, out allExceptionHandlers);
|
||||||
DotNetUtils.restoreBody(method, allInstructions, allExceptionHandlers);
|
DotNetUtils.restoreBody(method, allInstructions, allExceptionHandlers);
|
||||||
}
|
}
|
||||||
|
catch {
|
||||||
|
Log.w("Could not deobfuscate {0:X8}", method.MetadataToken.ToInt32());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Log.deIndent();
|
Log.deIndent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user