Function at 0x140001ad0
Capabilities:
Link many functions at runtime
Patch event tracing for windows function

Disassembly:
push rbp
push r14
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rbp - 0x18], rax
lea rcx, [0x140024950]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.EtwNotificationRegister
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140024950]
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.EtwEventRegister
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140024950]
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.EtwEventWriteFull
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140024950]
mov qword [rbp - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.EtwEventWrite
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140024950]
mov dword [rbp - 0x48], 0xc3c03348
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400249a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x140001baa
lea rcx, str.Failed_to_get_NtProtectVirtualMemory_function_address_n
call fcn.140001080
jmp 0x140001e0e
mov qword [rsp + 0x90], rbx
mov ebx, dword [rbp - 0x48]
mov qword [rsp + 0x98], rsi
xor esi, esi
mov qword [rsp + 0xa0], rdi
lea rdi, [rbp - 0x28]
mov qword [rsp + 0x70], r15
cmp qword [rdi - 0x10], 0
je 0x140001c46
movsxd rax, esi
lea r15, [rbp - 0x38]
mov qword [rbp - 0x40], 4
lea r15, [r15 + rax*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
test eax, eax
js 0x140001c38
mov rax, qword [rdi - 0x10]
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rbp - 0x48]
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
jmp 0x140001c54
lea rcx, str.Failed_to_change_memory_protection_n
call fcn.140001080
jmp 0x140001c54
mov edx, esi
lea rcx, str.Failed_to_get_function_address_for_ETW_function__d_n
call fcn.140001080
cmp qword [rdi - 8], 0
lea edx, [rsi + 1]
je 0x140001ccd
movsxd rax, edx
lea r15, [rbp - 0x38]
mov qword [rbp - 0x40], 4
lea r15, [r15 + rax*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
test eax, eax
js 0x140001cbf
mov rax, qword [rdi - 8]
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rbp - 0x48]
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
jmp 0x140001cd9
lea rcx, str.Failed_to_change_memory_protection_n
call fcn.140001080
jmp 0x140001cd9
lea rcx, str.Failed_to_get_function_address_for_ETW_function__d_n
call fcn.140001080
cmp qword [rdi], 0
lea edx, [rsi + 2]
je 0x140001d50
movsxd rax, edx
lea r15, [rbp - 0x38]
mov qword [rbp - 0x40], 4
lea r15, [r15 + rax*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
test eax, eax
js 0x140001d42
mov rax, qword [rdi]
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rbp - 0x48]
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
jmp 0x140001d5c
lea rcx, str.Failed_to_change_memory_protection_n
call fcn.140001080
jmp 0x140001d5c
lea rcx, str.Failed_to_get_function_address_for_ETW_function__d_n
call fcn.140001080
cmp qword [rdi + 8], 0
lea edx, [rsi + 3]
je 0x140001dd5
movsxd rax, edx
lea r15, [rbp - 0x38]
mov qword [rbp - 0x40], 4
lea r15, [r15 + rax*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
test eax, eax
js 0x140001dc7
mov rax, qword [rdi + 8]
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rbp - 0x48]
lea r8, [rbp - 0x40]
mov rcx, rax
mov rdx, r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call r14
jmp 0x140001de1
lea rcx, str.Failed_to_change_memory_protection_n
call fcn.140001080
jmp 0x140001de1
lea rcx, str.Failed_to_get_function_address_for_ETW_function__d_n
call fcn.140001080
add esi, 4
add rdi, 0x20
cmp esi, 4
jb 0x140001bd0
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140002530
add rsp, 0x78
pop r14
pop rbp
ret