How cra0/anonpresence works
AnonPresence is a Windows Teams proxy DLL that hooks BoringSSL’s SSL_write and changes a matching presence-report JSON flag so the client reports active. Teams loads the replacement VERSION.dll; the hook locates SSL_write, intercepts writes, edits matching payloads, and calls the original function through MinHook’s trampoline. Logging and memory-pattern utilities support the hook setup and runtime. The graph includes MinHook’s hook, trampoline, buffer, and instruction-decoding layers; some internal calls are shown only where the excerpts or SOURCE INDEX establish them.
Main entry points: trampoline.c Trampoline builder · hook.c Hook API · DLLMain.cpp Presence detour · hde64.c x64 decoder
Components 19
Presence blocker
- VERSION proxy
exports.h - DLL startup
DLLMain.cpp - SSL_write discovery
DLLMain.cpp - Presence detour
DLLMain.cpp
Runtime support
- Memory utilities
Utils.cpp - File logging
Log.cpp
MinHook engine
- Hook API
Dependencies/minhook/source/hook.c - Trampoline builder
Dependencies/minhook/source/trampoline.c - Executable buffers
Dependencies/minhook/source/buffer.c - x64 decoder
Dependencies/minhook/source/HDE/hde64.c - x86 decoder
Dependencies/minhook/source/HDE/hde32.c - Decoder tables
Dependencies/minhook/source/HDE/table64.h - Decoder definitions
Dependencies/minhook/source/HDE/hde64.h - Integer types
Dependencies/minhook/source/HDE/pstdint.h - MinHook declarations
Dependencies/minhook/include/MinHook.h - Trampoline definitions
Dependencies/minhook/source/trampoline.h - Buffer declarations
Dependencies/minhook/source/buffer.h
Other components
- Teams client
- BoringSSL write
Connections 26
- Teams client → VERSION proxy: loads proxy
README.md - VERSION proxy → DLL startup: starts DLL
- DLL startup → File logging: opens log
DLLMain.cpp - DLL startup → SSL_write discovery: starts hook setup
DLLMain.cpp - SSL_write discovery → Memory utilities: scans and resolves
- SSL_write discovery → Hook API: creates hook
DLLMain.cpp - SSL_write discovery → Presence detour: registers detour
DLLMain.cpp - BoringSSL write → Presence detour: dispatches writes
- Presence detour → Memory utilities: matches payload
DLLMain.cpp - Presence detour → File logging: logs activity
DLLMain.cpp - Presence detour → BoringSSL write: calls original
DLLMain.cpp - Hook API → MinHook declarations: implements API
Dependencies/minhook/source/hook.c - Hook API → Trampoline builder: builds trampoline
Dependencies/minhook/source/hook.c - Hook API → Buffer declarations: uses declarations
Dependencies/minhook/source/hook.c - Hook API → Trampoline definitions: uses declarations
Dependencies/minhook/source/hook.c - Trampoline builder → Executable buffers: allocates buffers
Dependencies/minhook/source/trampoline.c - Trampoline builder → x64 decoder: decodes x64
Dependencies/minhook/source/trampoline.c - Trampoline builder → x86 decoder: decodes x86
Dependencies/minhook/source/trampoline.c - Trampoline builder → Trampoline definitions: uses definitions
Dependencies/minhook/source/trampoline.c - Trampoline builder → Buffer declarations: uses declarations
Dependencies/minhook/source/trampoline.c - x64 decoder → Decoder tables: reads opcode table
Dependencies/minhook/source/HDE/hde64.c - x86 decoder → Decoder tables: reads opcode table
- x64 decoder → Decoder definitions: uses definitions
Dependencies/minhook/source/HDE/hde64.c - x86 decoder → Integer types: uses integer types
- x64 decoder → Integer types: uses integer types
- Executable buffers → Buffer declarations: implements declarations
Dependencies/minhook/source/buffer.h