Reverse engineering nim and other exotic binaries

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

Reverse engineering nim and other exotic binaries is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Reverse engineers malware written in less-common compiled languages (Nim, Crystal, V, Zig, D) by detecting language-specific runtime signatures, name-mangling, and runtime strings to orient analysis. Activates for requests to reverse Nim malware, identify the source language of an exotic binary, or

How to use this skill

Skill file

Reverse Engineering Nim and Other Exotic Binaries

When to Use

language (Nim, Crystal, V, Zig, D) to orient analysis.

Do not use this for already-supported languages (Go/Rust have dedicated skills). This skill

reads the binary statically and executes nothing.

Prerequisites

Safety & Handling

Workflow

Step 1: Detect the source language

python scripts/analyst.py detect sample.bin

Scans for language runtime signatures: Nim (@m..nim, nimrtl, fatal.nim, stack trace,

@ /nim), Crystal (Crystal::, crystal-lang), V (vlib/, _vinit), Zig (zig, panic: ,

std.builtin), and D (_Dmain, core.runtime, TypeInfo_).

Step 2: Locate runtime landmarks

Use the detected language's panic/exception and module strings to find main/init and error paths.

Step 3: Handle name mangling

Apply the language's mangling convention (e.g., Nim's proc__module_NNN) to recover readable

names.

Step 4: Proceed with analysis

With the language identified, analyze logic; many exotic-language samples wrap the same C2/loader

behavior.

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.