Confuserex-unpacker-2 May 2026

The ConfuserEx-Unpacker-2 is an open-source tool designed to deobfuscate .NET assemblies protected by ConfuserEx. It is a modernized successor to earlier unpackers, specifically developed to be more reliable by utilizing an instruction emulator rather than simple pattern matching. Key Features and Development

Emulation-Based Analysis: The tool is heavily based on a custom instruction emulator, which allows it to statically analyze and unpack files more accurately, even if they haven't been heavily modified from the original ConfuserEx source.

Support Level: It primarily targets the vanilla version of ConfuserEx. As of its early beta releases, it does not support heavily modified or highly customized versions of the obfuscator.

Core Components: It integrates components like dnlib and modified de4dot.blocks to handle metadata and IL (Intermediate Language) manipulations.

Protections Handled: Typical ConfuserEx protections it aims to counter include: Anti-Tamper: Removing runtime method decryption.

Constants Decryption: Resolving encrypted strings and numeric values. Reference Proxy: Fixing indirect method calls. Related Resources

Project Repository: You can find the source code on GitHub - KoiHook/ConfuserEx-Unpacker-2.

Comprehensive Lists: It is often listed alongside other specialized .NET deobfuscators like NoFuserEx and various ConfuserExTools.

Manual Deobfuscation: For advanced cases where automated tools fail, security researchers often use dnSpy to manually bypass anti-debugging checks or dump modules from memory. GitHub - KoiHook/ConfuserEx-Unpacker-2


ConfuserEx Unpacker 2 is a specialized tool designed to automatically remove protections applied by ConfuserEx, a popular open-source .NET obfuscator. This tool allows reverse engineers and malware analysts to restore an assembly to a readable state, enabling further analysis with tools like dnSpy or ILSpy.

Disclaimer: This guide is for educational purposes and legitimate reverse engineering only. Always ensure you have permission to analyze the software in question.


ConfuserEx's anti-tamper embeds a hash-protected stub that checks for modification. The unpacker reconstructs the original method bodies without triggering integrity checks.

  • Save cleaned assembly – Fully loadable in dnSpy/ILSpy.
  • Advanced obfuscation converts direct method calls into Delegate invocations via System.Reflection. This breaks simple static analysis. Version 2 performs type resolution during its runtime phase, tracking the real target of each delegate and restoring the call instruction. confuserex-unpacker-2

    If you’re working against standard ConfuserEx (unmodified) – confuserex-unpacker-2 is often the fastest and most reliable solution. For custom-protected samples, combine it with dnlib-based manual repair scripts.


    ConfuserEx-Unpacker-2 represents a critical evolution in the field of .NET reverse engineering, specifically designed to counter the sophisticated protections of the ConfuserEx and ConfuserEx2 obfuscators. Unlike traditional static unpackers that often struggle with modified versions of the obfuscator, this tool leverages instruction emulation to provide a more reliable and dynamic approach to deobfuscation. The Landscape of .NET Obfuscation

    ConfuserEx is a premier open-source protector for .NET applications, widely used (and sometimes abused in malware) for its multi-layered security features. Its protections include:

    Anti-Tampering: Encrypts method bodies that only decrypt at runtime during the module constructor (.cctor).

    Constant Encoding: Hides strings and constants using reversible transformations, making it impossible to read key data directly in a decompiler.

    Control Flow Obfuscation: Flattens code structures, making the logical path of a program nearly impossible to follow.

    Reference Hiding: Replaces direct method calls with "proxy" calls to further obscure the application's intent. Features and Advantages of Unpacker-2

    Developed by KoiHook, ConfuserEx-Unpacker-2 was created to improve upon previous, less reliable versions. Its primary technical advantage is its emulation-based engine. By simulating how the .NET runtime executes the obfuscated code, it can:

    Bypass Dynamic Protections: It "watches" the code decrypt itself in a virtual environment rather than just looking at the static, scrambled file.

    Enhanced Reliability: This method makes it far more resilient against "hidden surprises" or non-standard modifications that would typically cause static unpackers to crash or fail.

    Focus on Clean Output: The tool is often part of a larger toolchain—which might include de4dot and dnSpy—intended to restore the assembly to a readable state for analysis. Applications in Security and Research

    While obfuscators like ConfuserEx are designed to protect intellectual property, they are also frequently used by malware authors to hide malicious payloads. Tools like ConfuserEx-Unpacker-2 are indispensable for: The ConfuserEx-Unpacker-2 is an open-source tool designed to

    Malware Analysis: Helping security researchers "unmask" threats like the DarkCloud stealer or HawkEye infostealer which use these protections to evade detection.

    Vulnerability Research: Allowing developers to audit third-party binaries for security flaws that may be hidden behind layers of obfuscation.

    Educational Use: Serving as a case study for how .NET bytecode (IL) can be manipulated and subsequently restored. Conclusion

    ConfuserEx-Unpacker-2 stands as a testament to the ongoing "arms race" between software protection and reverse engineering. By moving away from brittle static rules and toward sophisticated instruction emulation, it provides a powerful means of restoring clarity to even the most "confused" .NET assemblies.

    ConfuserEx-Unpacker-2 is an open-source tool designed to deobfuscate .NET assemblies protected by the ConfuserEx obfuscator. It is an updated version of a previous unpacker, developed specifically to be more reliable by utilizing an instruction emulator rather than relying solely on dynamic invocation. Core Technical Features

    The tool is built to handle standard ConfuserEx protections and includes the following technical components:

    Emulation-Based Logic: Uses a custom instruction emulator to statically analyze and decrypt data, making it more resilient against modified ConfuserEx versions that might crash dynamic unpackers.

    Protection Removal: Includes modules for specific ConfuserEx features:

    Reference Proxy Removal: Originally based on work by TheProxy.

    Shadow Anti-Tamper Removal: Strips protection that prevents the assembly from being modified or read.

    Modified dnlib/de4dot: The developer modified de4dot.blocks to fix bugs related to Shr_Un methods (Unsigned Shift Right), ensuring correct results during constant decryption. Limitations & Requirements

    Support Level: The tool is currently in beta and primarily supports unmodified ConfuserEx configurations. It may fail on highly customized or "modded" versions of the obfuscator. ConfuserEx Unpacker 2 is a specialized tool designed

    Dependencies: It relies heavily on dnlib for assembly manipulation and incorporates logic from well-known deobfuscators like de4dot. Availability

    You can find the source code and documentation on the GitHub repository for ConfuserEx-Unpacker-2. It is often listed in curated collections of NET deobfuscators alongside other specialized tools like the ConfuserEx Static String Decryptor.

    "A Study on Building an Automated De-obfuscation System for ConfuserEx," published in the

    Journal of the Korea Institute of Information Security and Cryptology

    (2023), proposes a system to automate the removal of protections applied by the ConfuserEx .NET obfuscator [DOI: 10.13089/JKIISC.2023.33.1.129]. Developed by researchers from Korea University and Naver Corporation, this tool focuses on defeating anti-debugging measures and simplifying obfuscated control flow to analyze malicious code [DOI: 10.13089/JKIISC.2023.33.1.129]. You can review the full study at the Korea Citation Index (KCI).

    ConfuserEx-Unpacker-2 is an open-source tool designed to deobfuscate and unpack .NET binaries protected by the ConfuserEx protector. Developed by KoiHook, it serves as a modernized successor to their original unpacker, aiming for significantly higher reliability by utilizing instruction emulation. Key Features and Strengths

    Emulation-Based Logic: Unlike many dynamic unpackers that rely on simple invocation, this version is heavily based on an instruction emulator. This makes it more robust against "surprises" in the code and allows for more reliable decryption of protected structures.

    Improved Reliability: The project was specifically created to address the shortcomings of its predecessor, which the developer described as "very poor." This version aims to be a cleaner, more stable alternative for researchers.

    Open Source Integration: It is recognized within the developer community and included in major lists of .NET Deobfuscators and Unpackers alongside other specialized tools like NoFuserEx and ClarifierEx. Current Limitations

    Beta Status: The tool is officially listed as being in beta. Users should expect potential bugs or incomplete features during this phase of development.

    Strict Compatibility: In its current initial versions, it primarily supports unmodified ConfuserEx binaries. It may struggle with "modded" versions of ConfuserEx that include custom obfuscation options or additional protections. Final Verdict

    For security researchers and reverse engineers, ConfuserEx-Unpacker-2 is a promising step forward in the deobfuscation landscape. While its current scope is limited to standard ConfuserEx builds, its transition to an emulation-based approach sets it apart from more primitive "invoke-heavy" unpackers. If you are dealing with a standard protected binary, it is a high-priority tool to try, but for heavily customized obfuscation, you may still need to supplement it with static string decryptors or resource removers. AI responses may include mistakes. Learn more GitHub - KoiHook/ConfuserEx-Unpacker-2


    The original ConfuserEx-Unpacker (often called v1) was a static unpacker. It worked well for older versions of ConfuserEx but failed against:

    confuserex-unpacker-2 (the focus of this article) is a rewrite—often attributed to anonymous contributors on GitHub and RE forums like Tuts4you. It is not merely an update; it is a complete architectural shift. Version 2 utilizes runtime unpacking via: