LLM-Assisted Decompilation: Evolving Strategies and Tools

The article discusses challenges and strategies in LLM-assisted decompilation, particularly using Claude for decompiling Nintendo 64 games like Snowboard Kids 2. Initially, progress involved one-shot decompilation, boosting matched code from around 25% to 58%. However, progress slowed, necessitating a change in approach to eventually reach ~75% matched functions.
A critical strategy involved prioritizing which unmatched functions to tackle, initially using a logistic regression model to estimate difficulty based on features like instruction count and control-flow complexity. When this approach plateaued, exploring function similarity via text embeddings of assembly instructions proved fruitful. This involved computing similar matched functions to provide useful references, thus improving Claude's decompilation performance.
To compute similarity, vector embeddings were discussed, which are often used in RAG systems for fast retrieval. However, for a project with only a few thousand candidates, precise similarity computation was feasible. A composed similarity score factoring normalized instruction n-grams, control-flow patterns, memory access offsets, and structural metrics was initially used, but later, Coddog's simpler method of computing bounded Levenshtein distance over opcode sequences proved just as effective, reducing complexity.
Specialized tooling like gfxdis.f3dex2 and decomp-permuter also enhanced Claude’s performance. Specifically, the use of the F3Dex2 library made dealing with the N64's Reality Display Processor (RDP) microcode more manageable, avoiding the need for custom reverse engineering.
📖 Read the full source: HN LLM Tools
👀 See Also

AI Agents Playing Strategy Game Show Emergent Diplomacy and Strategy
A developer created a strategy game at agentsandaimpires.com where AI agents autonomously play, with observed behaviors including efficient land capture by one agent and diplomatic peace coalition proposals by another.

Architecture for a Daily Intelligence Briefing System Built with Claude
A developer built a personalized daily briefing system using Claude API that ingests RSS feeds, scores articles for relevance, triages them, and delivers analysis via email. The pipeline processes ~200 articles daily, filters to 5-8 for analysis, and costs under $5/month.

Qwen3-VL-32B-Instruct excels at multimodal flashcard grading
A developer tested Qwen3-VL-32B-Instruct for grading image-occluded Anki flashcards and found it outperformed models like Gemini 2.5 Flash, GPT 5 Nano/Mini, XAI 4.1 Fast, GLM, and Mistral models, with only ChatGPT 5.2 and Gemini 3/3.1/Claude 4+ coming close.

Automated Daily Development Journal System with Discord Integration
A system that captures Discord development activity, generates visual summaries, and publishes daily blog posts automatically using kabi-discord-cli, cron jobs, and GitHub/Vercel deployment.