How iciclez/memory-analyzer works
Project type and purpose
• This is a native Windows C++ “loadable DLL” tool whose job is to be injected or loaded into a target process and then:
• Hook API calls via Import Address Table (IAT) and Microsoft Detours
• Disassemble code at runtime (using Zydis) to discover trampolines or inline JMP hooks
• Monitor and record memory writes/changes
• Log all of the above to an external sink (console, file, etc.)
File structure
• Top-level
• Memory Analyzer.sln – Visual Studio solution
• .gitignore, LICENSE, README.md
• /Memory Analyzer (VS project)
• detours.h / detours.lib / detours64.lib – Microsoft Detours hooking library
• Zydis.c / Zydis.h – Zydis disassembler engine
• dllmain.cpp / dllmain.hpp – DllMain entry and unloading logic
• disassembler.cpp / .hpp – wrappers around Zydis for scanning instructions
• memory_analyzer.cpp / .hpp – core memory‐tracking engine
• logger.cpp / .hpp – logging subsystem (format, output)
• mnemosyne.cpp / .hpp – historical/event storage manager
• object.cpp / .hpp – internal representation of memory regions / hooks
README for additional insights
• Confirms loadable DLL
• Highlights three key behaviors: memory changes, IAT hooks, JMP hooks
Detail without over-splitting
• Every logical module (six in total) rather than every single .cpp file
• Interfaces between them, but avoid listing every function