TinyInst is a lightweight dynamic instrumentation library that can be used to instrument only selected module(s) in the process, while leaving the rest of the process to run natively. It is meant to be easy to understand, easy to hack on and easy to hack with. It is not designed to be compatible with all targets (more on that later).
https://github.com/googleprojectzero/TinyInst
git clone https://github.com/googleprojectzero/TinyInst
cd TinyInst\third_party
rmdir /s mbuild
rmdir /s xed
git clone https://github.com/intelxed/mbuild
git clone https://github.com/intelxed/xed
Open a Visual Studio Developer Command Prompt. If cmake is not available, download CMake zip from https://cmake.org/download/ and use the absolute path to cmake.exe in the below commands
cd TinyInst
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake --build . --config Release