da5855141174 发表于 2025-1-12 22:47:14

DNGuard Static Unpacker By CodeExplorer

DNGuard Static Unpacker
project wasn't started by me, I will continue it.
The advantage of it is that will work even if trial version is expired.
File attached.
It is a console program it should be started like this: DNGuard Static Unpacker.exe file_to_be_unpacked

Supported versions:
Trial:
v3.9.6.2 v1 https://forum.tuts4you.com/files/file/2176-dnguard-hvm-v3962/
v3.9.7 https://forum.tuts4you.com/files/file/2175-dnguard-hvm-v397/

Enterprise https://forum.tuts4you.com/files/file/2263-netprotectio-v200/
Enterprise v3.9.5/v3.9.6/v3.9.7

Trial v3.9.6
Trial v4.0
Trial v4.1
Trial v4.2
Trial v4.3
Trial v4.6
Trial v4.8

Currently I am specially interested on versions between 3.9.6 and v4.8 trial setup or unpackme;
and also on Enterprise unpackmes.
if you have any let me know.
Besides unpacking this program will print protection options, and you will also know if is protected by Enterprise or not;
on Enterprise Encryption_Dword is different from 0.

Version 1.1 beta:
- now shows Enterprise on DNGuard Enterprise4.8 UnpackMe.zip posted by xiaotang;
- added full unpack support for the Enterprise: https://forum.tuts4you.com/topic/42522-dnguard-hvm-v3953

Download link:
https://workupload.com/file/c4tnPF3RbEJ

For version 3.9.0 currently only displays protection options:
if (this.version.StartsWith("3.9.0"))
                {
                  this.DataStructure.ProtectionSettings = (this.value1 ^ this.value3 ^ this.valueN4)^this.DataStructure.Encryption_Dword;
                }
                else
                  this.DataStructure.ProtectionSettings = (this.value1 ^ this.value3 ^ this.DataStructure.Encryption_Dword);
For v3.9.0 I fail to find Methods Count in structures and also MethodOffset.
Method Offset changes when applied on same unpackme
v3.9.6/v4.1/v4.2 284C
v3.9.7/v4.0 2840
v4.3 2848
v4.6/v4.8 2858

LEHSize changes when applied on same unpackme:
v3.9.01184 ???
v3.9.6 1256
v3.9.7 1212
v4.0 1239
v4.1 1216
v4.2 1229
v4.3 1203
v4.6 1233
v4.8 1220

xhy1997 发表于 前天 19:26

本帖最后由 xhy1997 于 2026-9-14 21:25 编辑 Hi CodeCracker,

Thank you for your great work on the DNGuard Static Unpacker.

I have a DLL protected with DNGuard Enterprise v4.30. The tool correctly identifies the structure but fails during decryption with "Invalid key buffer!" error.

Here is the output from the tool:

Struct size=108 =v4.30
Encryption_Dword: 1145179949
Methods_Offset: 82970
KeyBuffOffset: 3932
UncompressedMethodsBufferLength: 32000
StringsOffset: 454
LEHSize: 20169
MethodsBufferLength: 28325
MethodsCount: 987
ProtectionFeatures: HVMTechnology, HVMEHTable, HVMLocalVarSigTok, HVMIllegalAction, Default, CompatibilityMode
Version: Enterprise

The file is a .NET DLL (174KB) with 985 methods, 827 of which are HVM-encrypted.

Download link: https://wenshushu.cn/f/kvgrn3j2qlh

Would you be able to add support for Enterprise v4.30? I can provide the sample file if needed.

Thank you!
页: [1]
查看完整版本: DNGuard Static Unpacker By CodeExplorer