Skip to main content
Kong produces output in three formats. By default, it generates both source and json. Use -f to select specific formats.

Source format (-f source)

An annotated C file with recovered function names, types, and documentation. Each function gets a JSDoc-style comment block:
Functions are grouped by classification: Crypto, Networking, I/O, Memory Management, String Operations, Math, Initialization, Cleanup, Handlers, Parsers, Utilities, and General.

JSON format (-f json)

A structured analysis.json file with full metadata. The top-level schema:

Key fields

  • signature_matches in stats — how many functions were identified by signature matching without LLM analysis
  • obfuscation_techniques in each function — list of detected techniques (e.g., ["cff", "bogus_cf"])
  • deobfuscation_tool_calls — number of tool calls the LLM made during deobfuscation

Ghidra writeback (-f ghidra)

Writes recovered names, types, and signatures directly into the Ghidra program database. No output file is produced — the Ghidra project is modified in place. This is useful when you want to continue manual analysis in Ghidra with Kong’s recovered symbols already applied. Open the Ghidra project after analysis and you’ll see the renamed functions, typed parameters, and struct definitions.
Ghidra writeback modifies the Ghidra project. If you want to preserve the original state, make a copy of the project before running with -f ghidra.

Further reading

Last modified on March 20, 2026