Skip to content

meltedinhex/analyst-ai-pack / skills/reverse-engineering-nim-and-other-exotic-binaries

reverse-engineering-nim-and-other-exotic-binaries

Verified

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 analyze Crystal/V/Zig/D compiled samples.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.8 KB
references/api-reference.mdmarkdown1.2 KB
scripts/analyst.pyscript1.9 KB

references/api-reference.md

View on GitHub
# API Reference: Reverse Engineering Nim and Other Exotic Binaries

## Overview

`scripts/analyst.py` detects the source language of an exotic compiled binary (Nim, Crystal, V, Zig,
D) by scanning printable strings for language-specific runtime signatures and scoring each language
by corroborating markers. It reads bytes statically and executes nothing.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | regex, JSON, file IO |

## Core functions

### `detect(path)`
Returns the detected language (requires ≥2 markers), per-language scores, and the matched evidence.

## Signature markers

- Nim: `nimrtl`, `fatal.nim`, `system.nim`, `@m..nim`.
- Crystal: `__crystal_main`, `crystal::`.
- V: `_vinit`, `vlib/`, `tos3(`.
- Zig: `std.builtin`, `@panic`, `panic: `.
- D: `_Dmain`, `core.runtime`, `TypeInfo_`.

## Usage

```bash
python scripts/analyst.py detect sample.bin
```

## Sources

- Nim manual (runtime, name mangling) — https://nim-lang.org/docs/manual.html
- Crystal/V/Zig/D runtime symbol conventions from each language's official documentation
- Exotic-language malware landmarks from public RE write-ups (require corroborating markers)
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall