Psychological Warfare in Reverse Engineering
Summary
REpsych is a proof-of-concept toolset that generates images through a program's control flow graph, allowing source images to be translated into functioning programs whose CFG renders the image in reverse engineering tools like IDA Pro.
View Cached Full Text
Cached at: 08/07/26, 08:12 PM
xoreaxeaxeax/repsych
Source: https://github.com/xoreaxeaxeax/repsych
REpsych
: Psychological Warfare in Reverse Engineering
github.com/xoreaxeaxeax/repsych // domas // @xoreaxeaxeax
Overview
The REpsych toolset is a proof-of-concept illustrating the generation of images through a program’s control flow graph (CFG).
| A typical function’s CFG | A REpsych generated CFG |
|---|---|
![]() | ![]() |
There is no specific point to the project (other than to show that it can be done), but possible (non-serious) applications are outlined in the DEF CON presentation.
The program works reliably with all tested versions of the IDA Pro reverse engineering tool, and semi-reliably with other CFG viewers (Hopper, BinNavi, radare2, etc).
Usage
The toolset translates source images into functioning programs, such that the program’s control flow graph generates the source image.
To generate a new program from an image:
- Save the image in the gfx/ folder as a 24 BPP bitmap.
- Run “make image” in the root directory of the project, where “image” is the name of your image, without the extension.
Two functioning programs will be created: repsych_v1 and repsych_v2. Each uses a different strategy for ensuring the CFG renderer correctly places the CFG nodes.
Tips
The tool will create a basic block (CFG node) for each pixel of the source image; as such, you should try to use small source images (not larger than 100x100), and you may need to increase the number of allowed nodes in your CFG viewer.
When using an image of text as input to the tool, first convert the image to a 2 BPP black and white bitmap first, then to a 24 BPP bitmap; this will remove non black and white colors, and give the best results in the control flow graph.
Examples





References
The technique is outlined in detail in the DEF CON presentation.
Slides from the presentation are provided here.
Author
REpsych is a proof-of-concept from Christopher Domas (@xoreaxeaxeax).
Similar Articles
zhaoxuya520/reverse-skill
reverse-skill is an open-source cybersecurity skills router that helps AI agents like Claude Code and Cursor pick the right reverse-engineering workflow for tasks involving APKs, binaries, JS encryption, CTF challenges, or pentesting targets.
@0x0SojalSec: AI Ghidra and Radare2 : AI-powered reverse engineering. AI agents that can disassemble, decompile, scan with YARA, and …
Reversecore MCP is an enterprise-grade AI-powered reverse engineering and security analysis tool that integrates with AI assistants via the Model Context Protocol, offering 50+ tools for static/dynamic analysis, malware analysis, vulnerability research, and more.
@vibeeeng: ONE OF THE MOST EFFECTIVE SKILLS RIGHT NOW IS REVERSE ENGINEERING You don't need the source code of a software. You tak…
This tweet explains the effectiveness of reverse engineering skills, citing examples like stopping a $4 billion cyberattack and exposing NSA tools, and describes the technical process of converting binary to assembly.
ProgramBench Vetted: Reverse Engineering from a Runnable Binary
ProgramBench Vetted is a benchmark with 50 tasks that evaluate AI agents on reconstructing programs from runnable binaries, designed to study long-context coordination and enable dense reward for reinforcement learning.
REFORGE: A Method for Benchmarking LLMs' Reverse Engineering Capabilities in Decompiled Binary Function Naming
REFORGE is a novel pipeline for benchmarking LLMs' reverse engineering capabilities, specifically for decompiled binary function naming, that addresses reliability issues in binary-to-source alignment under compiler optimization.

