Manually unpacking a packed binary

From meltedinhex/analyst-ai-pack · View interactive version

Manually unpacking a packed binary is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Manually unpacks a runtime-packed Windows binary by finding the original entry point (OEP) through tail-jump and entropy analysis, then guiding a memory dump at OEP. Activates for requests to manually unpack a sample, find the OEP, or unpack a custom/unknown packer that generic tools cannot handle.

How to use this skill

Skill file

Manually Unpacking a Packed Binary

When to Use

handle.

analysis.

Do not use generic auto-unpackers here — this is the manual path for cases where they fail.

Run the sample only inside an isolated, instrumented debugger VM.

Prerequisites

Safety & Handling

Workflow

Step 1: Characterize the packer statically

python scripts/analyst.py inspect packed.exe

Reports section entropy, suspicious section names (UPX, .vmp, random), small import tables,

and a write-then-execute section (classic unpacker stub).

Step 2: Find candidate OEP heuristics

Set a memory breakpoint on the unpacked code section's execution; the packer's tail jump (a far

jmp/ret into a different section) typically transfers control to the OEP.

Step 3: Dump at OEP

When stopped at OEP, dump the process image and proceed to import reconstruction (see the

dump-and-rebuild skill).

Step 4: Verify the dump

Confirm the dumped image has a sane entry point, restored imports, and readable code.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.