PackerBreaker 2 showing the target file field, Trace API calls and Timeout options, and a log reporting a successful UPX unpack
Graphical interface: a UPX-packed sample with family hints from the signature database, the verdict line (packer=UPX, oep_found=yes, removed=yes), and the rebuilt image written in 0.7 s.

Overview

PackerBreaker 2 is a Windows desktop front-end for the Pegasus emulation engine, built to unpack and rebuild packed or compressed PE files without a virtual machine. It takes an executable or DLL whose original code has been hidden behind a packer stub, emulates that stub, locates the original entry point, and writes out an image that can be loaded and executed again.

It ships as a single tool with two personalities: launched with no arguments it opens a graphical interface; launched with arguments it runs as a command-line tool suitable for batch processing. Both modes drive the same engine and follow the same release rules.

PackerBreaker 2 is not a generic “one button” unpacker. It combines family-specific unpackers for the packers seen most in the wild with a generic emulation path for everything else, and it is explicit about which of the two produced a result.

Key Features

  • Emulation-based unpacking – The packer stub is executed instruction by instruction in an emulated x86 environment. No VM, no hypervisor, no full Windows install: sessions start and stop in seconds, which makes bulk triage practical.
  • Verdict-gated releases – An image is published only when the engine reports that a protection layer was actually removed. If the packer is still present, the original entry point was never reached, or no image could be rebuilt, nothing is written to disk and the reason is logged. A failed unpack never leaves a half-baked executable behind for someone to run by accident.
  • Family-aware, not family-locked – Dedicated unpackers cover the major protectors; unrecognised samples fall through to the generic unpacker. It is best-effort by design and says so.
  • Packer hints from a signature database – Before unpacking, a PEiD-style signature database (userdb.txt) is matched against the entry point and the candidates are printed as Possible packers. This is a hint for the analyst, not a determination — the verdict always comes from the engine.
  • Containers handled properly – Installers and self-extracting archives (NSIS, Inno Setup, AutoIt, AutoHotkey, PyInstaller, SFX) are not emulated blindly. They are parsed and their contents extracted, preserving original filenames and directory structure.
  • Scriptable – The CLI keeps GUI behaviour out of the way: every dialog can be suppressed, logs can be streamed to a file, and the exit code alone tells a script what happened.
  • Bilingual interface – Simplified Chinese and English, chosen automatically from the Windows display language or forced with the PB2_LOCALE environment variable.

How Unpacking Works

The pipeline is the same in both interface modes:

  • Identify – The PE is parsed and the entry point examined. Directory and section names, entry-point prefixes and stub headers are compared against known families, and the signature database supplies additional candidates.
  • Emulate – The packer stub runs under the emulation engine with its own time budget. API calls are handled by the engine’s Windows API layer, so unpacking stubs that decompress, resolve imports or decrypt in memory can complete.
  • Find the original entry point – The engine reports where control lands once the protection layer is done, together with evidence for that conclusion.
  • Rebuild – Sections, imports and headers are reconstructed into a loadable image.
  • Validate and publish – The rebuilt image is checked and only released if the engine confirms the layer was removed.

Supported Packers

Dedicated unpackers

Family-level implementations that understand the specific protection scheme:

  • MEW, WinUpack, RLPack (including the MPRESS lineage), PEtite, NSPack
  • TELock, Themida, Yoda Protector / Yoda Crypter, Amber
  • PECompact, Alienyze, Exe32pack, Enigma Virtual Box / Enigma Protector
  • Molebox, Neolite (registry-backed import table recovery)
  • SFX installers (static extraction rather than stub emulation)

Families covered by the generic unpacker

These are recognised, and unpacked through the generic emulation path with family-specific evidence and heuristics:

  • UPX – including explicit evidence classification (intact, patched, stripped, absent), which matters because most real-world UPX samples have been tampered with
  • ASPack, Packman, JDPack, FSG
  • Armadillo, Eronana, EXpressor, BeRoEXEPacker
  • Obsidium, PELock, CryptEP (both families), Ldpinch

Anything outside these lists still goes through the generic path. That path is honest about its chances: it will not always recover an image, and when it fails it says why rather than emitting something broken.

Installers and Containers

Installer and container samples are not stub-emulated. They are parsed structurally and their payload extracted:

  • Self-extracting archives – 7-Zip, ZIP, RAR (v4 and v5), CAB
  • NSIS – bzip2, LZMA, deflate and stored payloads, including truncated-archive detection
  • Inno Setup
  • AutoIt 3 – EA06 and EA05, with tokenized script extraction to a readable .au3.txt listing
  • AutoHotkey
  • PyInstaller

For these families the verdict gate still applies: the extracted tree is published alongside the rebuilt image, keeping the original filenames and layout so the output can be analysed without guesswork.

Command-Line Interface

Passing any argument switches to CLI mode: no window is created, the tool runs to completion and exits. Diagnostics go to a message box, or to a log file when one is requested — and with --quiet, nothing is shown at all.

PackerBreaker2.exe --help
PackerBreaker2.exe sample.exe
PackerBreaker2.exe --input sample.exe --timeout 90 --trace-api --quiet
PackerBreaker2.exe --output out --log unpack.log sample.exe
OptionPurpose
<file>, --input <file>Target executable or DLL. Positional, or --input; the two are mutually exclusive.
--timeout <sec>Emulation budget, 1 to 3600 seconds. Default 120. Out-of-range values are clamped or rejected.
--trace-apiRecord every emulated API call, one line per call, into the log.
--output <dir>Directory for published artefacts. Defaults to the current directory.
--log <file>Stream the engine log to a file.
--testRun the published image after unpacking. Suppressed by --quiet.
--quietSuppress every message box. The exit code becomes the only result channel.
--version, -vShow the version dialog.
--help, -hShow usage.

Exit codes

CodeMeaning
0Unpacked successfully — an image was published.
1Ran to completion but nothing was published (protection layer still present, no original entry point, or no image built).
2Pre-run error: bad arguments, unreadable or unparsable target, unwritable output directory or log file.
3Post-run failure: engine exception, unreadable report, or a failed publish.

Exit code 1 is the important distinction for automation: the tool worked, the sample simply did not yield an image. Treating it as a crash will produce false alarms across a scan.

Release Policy

Published artefacts follow a fixed rule, so output directories stay predictable:

  • The rebuilt image is written as <output directory>\<name>.unpacked.exe.
  • For container families that produce many files, the extracted tree is published alongside the image, preserving original filenames and directories.
  • Engine internals — *_dump.bin, *.meta.json and the dropped\ directory — are never published. They belong to the scratch session and are discarded with it.

Requirements

  • Windows only – PackerBreaker 2 targets Windows and cannot be built or tested on Linux.
  • Targets – 32-bit and 64-bit PE executables and DLLs.
  • No network access, no telemetry – Everything runs locally. The tool makes no remote calls and embeds no browser.

Scope and Limitations

Being precise about what a tool does not do is more useful than overstating it:

  • The signature database is a hint – Its entry-point matching has limited coverage on packed samples (the RVA-to-file-offset mapping does not resolve the entry point on samples with large section alignment). Family identification and the unpack verdict come from the engine, not from the signature list.
  • The generic unpacker is best-effort – Unrecognised protectors may not yield an image. When that happens, the reason is logged instead of a partial file being published.
  • Containers are extracted, not emulated – For installers and self-extracting archives the payload is parsed statically; the installer stub is not executed.
  • It is an analysis tool, not a sandbox – PackerBreaker 2 rewrites binaries. Handle it, its inputs and its outputs inside an isolated analysis environment.

Safety Notice

The Test function executes the image that was just unpacked — DLLs through rundll32.exe, executables directly — and it asks for confirmation first. The unpacked file is, by definition, live code that a packer was hiding. On unknown samples, run it only inside a disposable virtual machine. The same applies to --test on the command line.

Localisation

The interface is available in Simplified Chinese and English. The language is resolved once at startup: PB2_LOCALE wins if set (zh or chinese, en or english; auto defers to detection), otherwise the Windows display language decides — any zh-* locale selects Chinese. When Chinese is active, a system CJK font is loaded; if none is found the interface still renders, with CJK glyphs shown as boxes. Paths, flags, packer names and verdict reasons are never translated.

PB2_LOCALE=zh PackerBreaker2.exe previews the Chinese interface on an English system. The About dialog reports which language was selected.

Availability

PackerBreaker 2 runs on the Pegasus emulation engine, which provides the Windows API emulation and evidence reporting that unpacking depends on. Builds, licensing and evaluation copies are available on request — contact us for access or to report a packer that is not yet handled.