How spokwn/prefetch-parser works
This is a Windows Prefetch Parser desktop application: it starts a Direct3D/ImGui window and repeatedly renders a UI for Prefetch-file information, including execution times, related files, signature status, and YARA-rule matches. The UI also exposes filters for unsigned, flagged, and in-instance files. The repository bundles YARA and Dear ImGui, but the excerpts do not show the complete Prefetch parsing or rule-scanning call chain; those links are therefore omitted rather than inferred.
Main entry points: Main.cpp Windows entry · ui.cc Prefetch UI · imgui.cpp ImGui core · imgui_impl_dx9.cpp DX9 backend
Components 18
Desktop application
- Windows entry
Main.cpp - D3D device
Main.h
File analysis
- App data types
include.h - File utilities
utils.cpp - Rule scanning
yara.cpp
User interface
- Prefetch UI
ui/ui.cc - UI state
ui/ui.h - Embedded fonts
ui/font.h - ImGui core
imgui/imgui.cpp - Drawing engine
imgui/imgui_draw.cpp - Widgets
imgui/imgui_widgets.cpp - DX9 backend
imgui/imgui_impl_dx9.cpp - Win32 backend
imgui/imgui_impl_win32.cpp
YARA engine
- YARA scanning
ext/include/libyara/scan.c - Rule compiler
ext/include/libyara/compiler.c - Rule parser
ext/include/libyara/parser.c - Analysis modules
ext/include/libyara/modules
Other components
- Desktop user
Connections 15
- Desktop user → Windows entry: launches
Main.cpp - Windows entry → D3D device: creates device
Main.cpp - Windows entry → Prefetch UI: initializes and renders
Main.cpp - Windows entry → DX9 backend: starts backend
Main.cpp - Windows entry → Win32 backend: starts backend
Main.cpp - Windows entry → Embedded fonts: loads fonts
Main.cpp - Prefetch UI → File utilities: converts paths
ui/ui.cc - Prefetch UI → UI state: uses UI state
ui/ui.cc - Prefetch UI → ImGui core: builds interface
ui/ui.cc - Prefetch UI → App data types: uses file records
ui/ui.cc - Rule scanning → YARA scanning: invokes scanning
- Rule compiler → Rule parser: parses rules
- ImGui core → Drawing engine: produces draw data
- ImGui core → Widgets: provides widgets
- DX9 backend → D3D device: renders through