Function at 0x1400016f0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, qword gs:[0x60]
xor edi, edi
mov qword [0x140036ad8], rax
mov rax, qword [rsi + 0x18]
add rax, 0x20
mov rbx, qword [rax]
cmp rbx, rax
je 0x140001766
nop dword [rax]
mov rcx, qword [rbx + 0x40]
lea rdx, str.ntdll.dll
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400017cb
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x140001740
mov rax, rdi
lea rcx, str.KERNEL32.DLL
mov qword [0x140036ac8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400017d1
movsxd rdx, dword [rax + 0x3c]
add rdx, 0x108
add rdx, rax
je 0x1400017d1
mov ecx, dword [rdx + 0xc]
lea r9, str.xxxxx
mov edx, dword [rdx + 0x10]
lea r8, [0x14002e9c4]
add rcx, rax
call fcn.140001080
mov qword [0x140036ad0], rax
test rax, rax
je 0x1400017d8
mov rdx, rax
lea rcx, str.___Found_RET_GADGET_in_kernel32.dll:__llx_n
call fcn.140001020
jmp 0x140001845
mov rax, qword [rbx + 0x20]
jmp 0x140001769
mov qword [0x140036ad0], rdi
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400017ef
mov rax, rdi
jmp 0x140001822
movsxd r10, dword [rax + 0x3c]
add r10, 0x108
add r10, rax
jne 0x140001804
mov rax, rdi
jmp 0x140001822
mov ecx, dword [r10 + 0xc]
lea r9, str.xxxxx
mov edx, dword [r10 + 0x10]
lea r8, [0x14002e9c4]
add rcx, rax
call fcn.140001080
mov rdx, rax
mov qword [0x140036ad0], rax
lea rcx, str.___Found_RET_GADGET_in_kernelbase.dll:__llx_n
call fcn.140001020
cmp qword [0x140036ad0], rdi
je 0x1400019cc
lea rdx, [0x1400012b0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140036ac0], rax
test rax, rax
jne 0x14000187c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Could_not_register_VEH:_0x_X_n
call fcn.140001020
jmp 0x1400019d8
mov rsi, qword gs:[0x60]
mov qword [rsp + 0x510], rbp
mov rax, qword [rsi + 0x18]
add rax, 0x20
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400018c6
nop dword [rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14002e628]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140001919
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x1400018a0
mov rcx, rdi
lea rdx, str.GetThreadContext
call fcn.140001110
mov rsi, qword gs:[0x60]
mov rbp, rax
mov rcx, qword [rsi + 0x18]
add rcx, 0x20
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140001923
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14002e628]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x14000191f
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x1400018f1
jmp 0x140001923
mov rcx, qword [rbx + 0x20]
jmp 0x1400018c9
mov rdi, qword [rbx + 0x20]
lea rdx, str.SetThreadContext
mov rcx, rdi
call fcn.140001110
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x4d0
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140036ad8]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100010
call rbp
mov rcx, qword [rsp + 0x90]
lea rax, [0x1400012a0]
and rcx, 0xfffffffffffcffff
mov qword [rsp + 0x68], rax
or rcx, 1
mov dword [rsp + 0x50], 0x100010
mov qword [rsp + 0x90], rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [0x140036ad8]
call rbx
mov rbp, qword [rsp + 0x510]
test eax, eax
jne 0x1400019bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Could_not_set_new_thread_context:_0x_X
call fcn.140001020
jmp 0x1400019d8
lea rcx, str.___Main_HWBP_set_successfully_n
call fcn.140001020
mov al, 1
jmp 0x1400019da
lea rcx, str.____Could_not_find_a_suitable__ADD_RSP_68_RET__gadget_in_kernel32_or_kernelbase._InitHWSyscalls_failed.
call fcn.140001020
xor al, al
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14000f430
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret