Function at 0x140011262
Capabilities:
Patch event tracing for windows function

Disassembly:
jmp 0x140011870
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e1c0]
xor rax, rbp
mov qword [rbp + 0x1d8], rax
lea rcx, [0x1400230a3]
call fcn.140011366
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400118e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_handle_for_kernel32.dll___d_._n
call fcn.14001118b
mov eax, 1
jmp 0x140011b0d
lea rdx, str.VirtualAlloc
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001191d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_address_of_VirtualAlloc___d_._n
call fcn.14001118b
mov eax, 1
jmp 0x140011b0d
lea rdx, str.VirtualProtect
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140011957
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_address_of_VirtualProtect___d_._n
call fcn.14001118b
mov eax, 1
jmp 0x140011b0d
mov rdx, qword [rbp + 0x28]
lea rcx, str.VirtualAlloc_found_at_address:_0x_p_n
call fcn.14001118b
mov rdx, qword [rbp + 0x48]
lea rcx, str.VirtualProtect_found_at_address:_0x_p_n
call fcn.14001118b
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400119ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_handle_for_ntdll.dll___d_._n
call fcn.14001118b
mov eax, 1
jmp 0x140011b0d
lea rdx, str.EtwEventWrite
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1400119ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_address_of_EtwEventWrite___d_._n
call fcn.14001118b
mov eax, 1
jmp 0x140011b0d
mov rdx, qword [rbp + 0x88]
lea rcx, str.EtwEventWrite_found_at_address:_0x_p_n
call fcn.14001118b
lea r9, [rbp + 0xa4]
mov r8d, 0x40
mov edx, 2
mov rcx, qword [rbp + 0x88]
call qword [rbp + 0x48]
test eax, eax
jne 0x140011a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_change_memory_protection_for_EtwEventWrite___d_._n
call fcn.14001118b
mov eax, 1
jmp 0x140011b0d
mov byte [rbp + 0xc4], 0x48
mov byte [rbp + 0xc5], 0x33
mov byte [rbp + 0xc6], 0xc0
mov byte [rbp + 0xc7], 0xc3
mov r8d, 4
lea rdx, [rbp + 0xc4]
mov rcx, qword [rbp + 0x88]
call fcn.1400111a9
lea r9, [rbp + 0xa4]
mov r8d, dword [rbp + 0xa4]
mov edx, 2
mov rcx, qword [rbp + 0x88]
call qword [rbp + 0x48]
lea rcx, str.EtwEventWrite_successfully_modified_to_xor_rax__rax__ret._n
call fcn.14001118b
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x172
xor ecx, ecx
call qword [rbp + 0x28]
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x140011ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualAlloc_failed___d_._n
call fcn.14001118b
mov eax, 1
jmp 0x140011b0d
mov r8d, 0x172
lea rdx, section..data
mov rcx, qword [rbp + 0xe8]
call fcn.1400111a9
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x108], rax
call qword [rbp + 0x108]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acd0]
call fcn.1400112fd
mov rax, rdi
mov rcx, qword [rbp + 0x1d8]
xor rcx, rbp
call fcn.1400111a4
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret