diff --git a/de4dot.code/ObfuscatedFile.cs b/de4dot.code/ObfuscatedFile.cs index f20e39b8..33352d89 100644 --- a/de4dot.code/ObfuscatedFile.cs +++ b/de4dot.code/ObfuscatedFile.cs @@ -720,14 +720,19 @@ namespace de4dot.code { Log.indent(); if (hasNonEmptyBody(method)) { - var blocks = new Blocks(method); + try { + var blocks = new Blocks(method); - handler(blocks); + handler(blocks); - IList allInstructions; - IList allExceptionHandlers; - blocks.getCode(out allInstructions, out allExceptionHandlers); - DotNetUtils.restoreBody(method, allInstructions, allExceptionHandlers); + IList allInstructions; + IList allExceptionHandlers; + blocks.getCode(out allInstructions, out allExceptionHandlers); + DotNetUtils.restoreBody(method, allInstructions, allExceptionHandlers); + } + catch { + Log.w("Could not deobfuscate {0:X8}", method.MetadataToken.ToInt32()); + } } Log.deIndent();