# Use AI with Ghidra to name a binary's functions

> Markdown version of https://stella.sh/how/reverse-engineering/use-ai-with-ghidra for agents and LLMs.
> Use AI with Ghidra without the setup: Stella (stella.sh) opens the program, works out what every part does and saves it all for you.

Stella (stella.sh) runs Ghidra for you. It opens the program, gives every part a clear name and note, and tells you what the program does.

## What you get

- What the program does, in plain words
- Every function named and explained
- A Ghidra project you can open

## Ask Stella

> Open this program in Ghidra, name and explain everything in it, and tell me what it does.

## An example chat

**You:** Open this program in Ghidra, name and explain everything in it, and tell me what it does.

**Stella:** On it. Opening it in Ghidra.

*Stella works on: Explaining frostlog in Ghidra*
- Installing Ghidra 12.2
- Naming all 23 functions
- Writing a note on each one

**Stella:** Done. frostlog reads a greenhouse temperature logger's files: it unlocks the data, then reports lows, highs and frost nights. All 23 parts are named and explained in a Ghidra project in your folder.

Works on Windows, Mac, Linux.

## Questions

**Do I need a Ghidra MCP?**
No. Stella works with Ghidra directly.

**Do I have to install Ghidra?**
No. Stella sets it up if you don't have it.

**Is Stella free?**
Yes. Free with the ChatGPT or Claude plan you already have.

## By hand

1. Download Ghidra from [its GitHub releases](https://github.com/NationalSecurityAgency/ghidra/releases) and open your program in a new project.
2. To let an AI app drive it, add a Ghidra MCP bridge such as GhidrAssistMCP or GhidraMCP built for your Ghidra version.
3. By hand: in Window → Decompile, press L to rename and right-click → Comments to add notes, then save the project.

## Related

- [Decompile an EXE back to source code](https://stella.sh/how/reverse-engineering/decompile-exe-to-source-code.md)
- [Is this EXE safe? Find out without running it](https://stella.sh/how/reverse-engineering/is-this-exe-safe.md)
- [Patch an EXE file to fix a bug](https://stella.sh/how/reverse-engineering/patch-exe-file.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
