A tool for patching ETW (Event Tracing for Windows) functions such as EtwEventWrite and EtwEventWriteFull.
This tool demonstrates how to patch the EtwEventWrite and EtwEventWriteFull functions to disable event tracing in a target process by modifying the call instruction to prevent tracing events from being logged.
- Patch ETW Functions: The tool patches either the
EtwEventWriteorEtwEventWriteFullfunction by locating thecallinstruction in memory and replacing it with NOP (0x90) instructions, effectively neutralizing the function call. - Memory Permissions Handling: The tool changes the memory permissions of the ETW function before patching to ensure that the process memory can be written to.
- Custom Patch with XOR/RET: Additionally, the tool provides the option to replace the
EtwEventWriteFullfunction with a simplexor eax, eaxandretinstruction, effectively disabling the function.
ETWPatch.exe <PID>