Tuesday 15 March 2011

decompiling - .NET Decompiled sources fail to build -



decompiling - .NET Decompiled sources fail to build -

i new c#/.net/obfuscators.

i have working application. 1 .exe , multiple .dll each of dlls reference other dlls. each files in same folder.

at first started using dotpeek have @ code , exported project. after trying read code total of letters , failing, discovered code obfuscated. after using google many many many hours... found there other decompilers aswell deobfuscators.

i found de4dot , used deobfuscate every file. when run them worked fine, same original files.

now, when used dotpeek see source readable names. after exporting visual studio project. tried build it, there lots of errors, part presence of unicode-escaped characters "\uxxxx" in symbols. spent time doing python script convert characters respective unicode characters. there other errors nonnuable-type used nunable-type, access inconsistencies, generic constraints, etc.

i started fixing them hand there many started looking other decompilers. after trying other available decompilers, found ilspy 1 didnt crash when decompiling project

again, when tried build it, there errors, time there less of them, , 1 time again started fixing 1 one.

some of fixes straight forwards others did not create sense. example. there compile time error saying declaraction cannot expression. when @ said expression, sum , multiplication of struct type variables, has no effect on run flow.

this got me read assembly code (which actualy il case) , in particular instruction did that, sum , multiply, no utilize of value. why there instruction in il code? how compiled in first place? voodo-magic obfuscator?

also there these compiler generator code comment warning on source code, should maintain code?

what makes these compile-time errors on c# generator sources? decompilers faults? or deobfuscator faults?

what should do? maintain fixing remaining errors? there other tools there jobs? cannot find deobfuscator besides de4dot. couldnt found other decompilers, other dotpeek , ilspy, worked.

.net decompiling decompiler

No comments:

Post a Comment