How mibho/cascratch works
CAScratch is an old Combat Arms game cheat. Its runtime waits for game-related modules, hooks Direct3D presentation, then draws a configurable menu and runs hack routines from the presentation callback. The routines modify game memory or issue console commands; the menu also offers visual features such as ESP and a crosshair. The graph separates hook/setup, UI, hack behavior, and supporting internals. Edges reflect the sampled source and README; unsampled code limits detail about some feature implementations and menu-to-runtime state flow.
Main entry points: main.cpp D3D Hooks · Menu.cpp Cheat Menu · Tools.cpp Hook and Scan Tools · HackClass.cpp Console Hacks
Components 14
Injection and Hooking
- DLL Entry
scratch/CAHackk/main.cpp - D3D Hooks
scratch/CAHackk/main.cpp - Hook and Scan Tools
scratch/CAHackk/Tools.cpp
Menu and Rendering
- Cheat Menu
scratch/CAHackk/Menu.cpp - Direct3D Rendering
scratch/CAHackk/Menu.cpp - UI Colors
scratch/CAHackk/Colors.h
Game Modifications
- Memory Hacks
scratch/CAHackk/HackClass.cpp - Console Hacks
scratch/CAHackk/HackClass.cpp - Misc and Crosshair
scratch/CAHackk/HackClass.cpp
Runtime Support
- Game Addresses
scratch/CAHackk/Addresses.h - Console Timer
scratch/CAHackk/consoleTime.h - Obfuscated Labels
scratch/CAHackk/EncryptedStrings.h - XOR String Helper
scratch/CAHackk/XorStr.h
Other components
- Combat Arms Process
Connections 16
- DLL Entry → D3D Hooks: starts thread
scratch/CAHackk/main.cpp - D3D Hooks → Hook and Scan Tools: uses
scratch/CAHackk/main.cpp - D3D Hooks → Combat Arms Process: hooks Direct3D
scratch/CAHackk/main.cpp - D3D Hooks → Cheat Menu: calls
scratch/CAHackk/main.cpp - D3D Hooks → Misc and Crosshair: calls
scratch/CAHackk/main.cpp - Cheat Menu → Direct3D Rendering: draws with
scratch/CAHackk/Menu.cpp - Cheat Menu → UI Colors: uses
scratch/CAHackk/Menu.cpp - Cheat Menu → Obfuscated Labels: uses labels
scratch/CAHackk/Menu.cpp - Obfuscated Labels → XOR String Helper: decodes with
scratch/CAHackk/EncryptedStrings.h - Misc and Crosshair → Cheat Menu: draws crosshair
scratch/CAHackk/HackClass.cpp - Memory Hacks → Hook and Scan Tools: writes memory
scratch/CAHackk/HackClass.cpp - Console Hacks → Hook and Scan Tools: sends commands
scratch/CAHackk/HackClass.cpp - Memory Hacks → Game Addresses: uses addresses
scratch/CAHackk/HackClass.cpp - Console Hacks → Obfuscated Labels: uses commands
scratch/CAHackk/HackClass.cpp - Console Hacks → Console Timer: checks timer
scratch/CAHackk/HackClass.cpp - Hook and Scan Tools → Combat Arms Process: scans and modifies
scratch/CAHackk/Tools.cpp