0xd4d/de4dot — Issue #21: de4dot 1.6.0 crash
Author: greenozon
Created: 2012-02-12 19:58:11+00:00
State: open

Hi, author
one tricky .NET assembly (protector is unknown) crashes latest de4dot!

logs:

de4dot v1.6.0.3405 Copyright (C) 2011-2012 de4dot@gmail.com
Latest version and source code: https://github.com/0xd4d/de4dot

Detected Unknown Obfuscator (d:\de4dot-1.6.0\test1.exe)
Cleaning d:\de4dot-1.6.0\test1.exe
Could not deobfuscate method 06000019. Hello, E.T.: System.NullReferenceException
Could not deobfuscate method 0600001C. Hello, E.T.: System.NullReferenceException
..........[same here many many times]

------------------------------------------------------------------------------
Stack trace:
at de4dot.blocks.Instr.updateTargets(List`1 targets)
at de4dot.blocks.CodeGenerator.layOutInstructions(IList`1& allInstructions, IList`1& allExceptionHandlers)
at de4dot.blocks.CodeGenerator.getCode(IList`1& allInstructions, IList`1& allExceptionHandlers)
at de4dot.code.ObfuscatedFile.deobfuscate(MethodDefinition method, BlocksCflowDeobfuscator cflowDeobfuscator, MethodPrinter methodPrinter)
at de4dot.code.ObfuscatedFile.deobfuscateMethods()
at de4dot.code.ObfuscatedFile.deobfuscate()
at de4dot.cui.FilesDeobfuscator.deobfuscateAllFiles(IEnumerable`1 allFiles)
at de4dot.cui.FilesDeobfuscator.deobfuscateAll()
at de4dot.cui.FilesDeobfuscator.doIt()
at de4dot.cui.Program.main(String[] args)

ERROR: Caught an exception:

------------------------------------------------------------------------------
Message:
No targets!
Type:
System.ApplicationException
------------------------------------------------------------------------------

Try the latest version before reporting this problem!

I've drop my eye over methods - names are junky, some methods looks really strange, like this:

0	L_0000:	switch
1	L_0005:	ret

ILSpy crashes on these like a baby :)
DO you need the binary or the info is enough?
Thanks!