binary-analysis-patterns

Reconstruct program logic from compiled binaries using Ghidra and IDA Pro.

Updated May 16, 2026
One-click install
npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill binary-analysis-patterns-p-o-ke-nae
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: binary-analysis-patterns
Source: https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory/tree/main/.github/skills/binary-analysis-patterns
Command: npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill binary-analysis-patterns-p-o-ke-nae

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you understand compiled programs when source code is unavailable by recognizing low-level instruction patterns, control flow, data structures, and decompilation artifacts.

Core Features & Use Cases

  • Disassembly Reading: Interpret x86-64, ARM64, and ARM32 instruction sequences, calling conventions, and function prologues or epilogues.
  • Control Flow Reconstruction: Identify branches, loops, switch statements, and jump tables to recover higher-level logic.
  • Reverse Engineering Workflow: Use it to analyze suspicious binaries, document recovered behavior, and improve results in tools like Ghidra and IDA Pro.

Quick Start

Ask for a structured walkthrough of the binary’s functions, control flow, and data patterns so you can recover the program logic from the assembly.

Frequently Asked Questions about binary-analysis-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reconstruct program logic from disassembled binary code?

Reconstructing program logic from binary code involves recognizing low-level instruction patterns, control flow branches, and data structures. You analyze compiled binaries by interpreting x86-64, ARM64, or ARM32 sequences and calling conventions to recover the higher-level behavior.

What is the best way to identify control flow structures like loops and switch statements in Ghidra?

Identifying control flow structures in Ghidra requires tracing branches, loops, switch statements, and jump tables within the decompiled output. By analyzing these patterns, you can recover the original higher-level logic from optimized machine code.

Can I use this Skill to analyze ARM32 and ARM64 compiled binaries?

Yes, you can analyze ARM32 and ARM64 compiled binaries. The Skill supports disassembly reading and pattern recognition for both ARM architectures, allowing you to interpret instruction sequences and function prologues or epilogues.

How do I recover data structures and structs during reverse engineering?

Recovering data structures during reverse engineering requires analyzing decompilation artifacts and recognizing common idioms in optimized machine code. You identify how memory is accessed and organized to reconstruct structs and other data layouts.

Does this Skill work with both IDA Pro and Ghidra decompilation outputs?

Yes, this Skill works with both IDA Pro and Ghidra decompilation outputs. It is designed to improve results in both tools by helping you document recovered behavior and trace control flow within their respective disassembly and decompilation views.

Why do I need pattern recognition for analyzing optimized machine code?

Pattern recognition is needed for analyzing optimized machine code because compilers transform high-level logic into complex, non-obvious instruction sequences. Recognizing these idioms allows you to accurately recover function prologues, epilogues, and data structures during binary analysis.