meltedinhex/analyst-ai-pack / skills/manually-unpacking-a-packed-binary
manually-unpacking-a-packed-binary
VerifiedManually 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.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.8 KB |
| references/api-reference.md | markdown | 1.2 KB |
| scripts/analyst.py | script | 2.9 KB |
references/api-reference.md
View on GitHub# API Reference: Manually Unpacking a Packed Binary
## Overview
`scripts/analyst.py` parses a PE's section table and reports per-section entropy, writable+executable
sections, known packer section names, and high-entropy sections to plan manual unpacking. It reads
bytes statically and executes nothing.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | struct, math, Counter, JSON |
## Core functions
### `inspect(path)`
Returns per-section details, write+execute sections, known packer names, high-entropy sections,
and a `likely_packed` flag.
### `_parse_sections(data)`
Minimal PE section-table parser (name, entropy, characteristics, sizes).
## Manual unpacking signals
- Write+execute section → in-place unpacking stub.
- Section entropy > 7.0 → compressed/encrypted payload.
- Tiny import table → imports resolved at runtime after unpacking.
## Usage
```bash
python scripts/analyst.py inspect packed.exe
```
## Sources
- MITRE ATT&CK T1027.002 Software Packing — https://attack.mitre.org/techniques/T1027/002/
- PE Format (section characteristics IMAGE_SCN_MEM_*) — https://learn.microsoft.com/windows/win32/debug/pe-format
- OEP / tail-jump methodology from public manual-unpacking practice
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |