Function at 0x180002210
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x18000a040]
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 [0x18000a960], rax
mov rax, qword [rsi + 0x18]
add rax, 0x20
mov rbx, qword [rax]
cmp rbx, rax
je 0x180002286
nop dword [rax]
mov rcx, qword [rbx + 0x40]
lea rdx, str.ntdll.dll
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1800022e8
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x180002260
mov rax, rdi
lea rcx, str.KERNEL32.DLL
mov qword [0x18000a958], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800022ee
movsxd rdx, dword [rax + 0x3c]
add rdx, 0x108
add rdx, rax
je 0x1800022ee
mov ecx, dword [rdx + 0xc]
lea r9, str.xxxxx
mov edx, dword [rdx + 0x10]
lea r8, [0x180006aac]
add rcx, rax
call fcn.180001c50
mov qword [0x18000a948], rax
test rax, rax
je 0x1800022f5
lea rcx, str.___Found_GADGET_in_kernel32_n
call fcn.180001020
jmp 0x18000235f
mov rax, qword [rbx + 0x20]
jmp 0x180002289
mov qword [0x18000a948], rdi
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000230c
mov rax, rdi
jmp 0x18000233f
movsxd r10, dword [rax + 0x3c]
add r10, 0x108
add r10, rax
jne 0x180002321
mov rax, rdi
jmp 0x18000233f
mov ecx, dword [r10 + 0xc]
lea r9, str.xxxxx
mov edx, dword [r10 + 0x10]
lea r8, [0x180006aac]
add rcx, rax
call fcn.180001c50
lea rcx, str.___Found_GADGET_in_kernelbase_n
mov qword [0x18000a948], rax
call fcn.180001020
cmp qword [0x18000a948], rdi
je 0x1800024e0
lea rdx, [0x180001e80]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x18000a968], rax
test rax, rax
jne 0x180002396
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Could_not_register_VEH:_0x_X_n
call fcn.180001020
jmp 0x1800024ec
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 0x1800023e6
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x1800069d8]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x180002439
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x1800023c0
mov rcx, rdi
lea rdx, str.GetThreadContext
call fcn.180001ce0
mov rsi, qword gs:[0x60]
mov rbp, rax
mov rcx, qword [rsi + 0x18]
add rcx, 0x20
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x180002443
mov rcx, qword [rbx + 0x40]
lea rdx, [0x1800069d8]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x18000243f
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x180002411
jmp 0x180002443
mov rcx, qword [rbx + 0x20]
jmp 0x1800023e9
mov rdi, qword [rbx + 0x20]
lea rdx, str.SetThreadContext
mov rcx, rdi
call fcn.180001ce0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x4d0
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x18000a960]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100010
call rbp
mov rcx, qword [rsp + 0x90]
lea rax, [0x180001e70]
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 [0x18000a960]
call rbx
mov rbp, qword [rsp + 0x510]
test eax, eax
jne 0x1800024dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Could_not_set_new_thread_context:_0x_X
call fcn.180001020
jmp 0x1800024ec
mov al, 1
jmp 0x1800024ee
lea rcx, str.____Could_not_find_a_suitable_gadget_in_kernel32_or_kernelbase._InitHWSyscalls_failed.
call fcn.180001020
xor al, al
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180004220
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret