ConfuserEx v1.0.0 De-obfuscation with dnSpy

本文详细介绍了如何使用dnSpy、Die和de4dot等工具逆向工程并解混淆由Confuser保护的exe文件。从下载的exe文件开始,通过分析、解包、设置断点和调试,最终成功地揭示了被混淆代码的真实面目。

Recently, I downloaded a exe file from the website and I wanna to go through the internal implementations. So this project is on the floor. Here is a sample of de-obfuscating protector: Confuser(1.0)

Prerequisites:

https://github.com/0xd4d/dnSpy/releases (Use 32-bit to analyze 32bits binary file, same as 64-bits) 


Peperations:

I got a exe file, first let's drag into DIE to check.

It is a bonus that the Enigma Virtual Box Packing program enables us to pack up multi-files into one executable file.

Use EnigmaVBUnpacker to unpack this file.

Now, as we can see, after taking off the first wrapper, there is still a long way to go.

After using DIE to check each significant file,  undoubtly, the main exe file was obfuscated, fortunately the DownLoadFile.dll wasn't.

I was a little confused by this name, Confuser, since I haven't met this before. After searching on google for several tutorials, I finally successed.


Main Part:

Set a breakpoint at here. 

 

Start debug with this selection 

 

 Now we can see the process is interrupted:

 

Afterwards, we can get a file. Drag it into dnSpy as well:

It seems a little bit chaos, however, forrtunately, I discovered several authentic Chinese Words!!!

 

It means we have almost de-obsfucated this binary file, but a few points should be fixed.

Use de4dot to clean-up:(Just drag this binary onto the de4dot.exe icon, then it will generate the cleaned file)

 Finally, we successfully De-Obsfucated this file! Very elegant!

Reference:

How to Unpack and Deobfuscate ConfuserEx 0.6 or 1.0 (Max Settings) https://www.youtube.com/watch?v=eK3D-qgLY80

How to Unpack ConfuserEx *Easiest Method* (Max Settings) https://www.youtube.com/watch?v=X0F_-sE-6GU

https://github.com/ViRb3/de4dot-cex

https://github.com/0xd4d/de4dot

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值