Function at 0x1800025a0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x18000b040]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___InitasdCall
call fcn.1800046e0
mov rcx, rax
lea rdx, [0x1800048b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, qword gs:[0x60]
xor esi, esi
mov qword [0x18000b9c0], rax
mov rax, qword [rdi + 0x18]
add rax, 0x20
mov rbx, qword [rax]
cmp rbx, rax
je 0x18000263a
nop
mov rcx, qword [rbx + 0x40]
lea rdx, str.ntdll.dll
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1800026f0
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x180002610
mov rax, rsi
lea rcx, str.KERNEL32.DLL
mov qword [0x18000b9b8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800026f9
movsxd rdx, dword [rax + 0x3c]
add rdx, 0x108
add rdx, rax
je 0x1800026f9
mov ecx, dword [rdx + 0xc]
lea r9, str.xxxxx
mov edx, dword [rdx + 0x10]
lea r8, [0x180007990]
add rcx, rax
call fcn.180001cc0
mov qword [0x18000b9a8], rax
mov rbx, rax
test rax, rax
je 0x180002700
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Found_RET_GADGET_in_kernel32.dll:
call fcn.1800046e0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1800048b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Found_GADGET_in_kernel32
call fcn.1800046e0
mov rcx, rax
lea rdx, [0x1800048b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x180002781
mov rax, qword [rbx + 0x20]
jmp 0x18000263d
mov qword [0x18000b9a8], rsi
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180002717
mov rax, rsi
jmp 0x18000274a
movsxd r10, dword [rax + 0x3c]
add r10, 0x108
add r10, rax
jne 0x18000272c
mov rax, rsi
jmp 0x18000274a
mov ecx, dword [r10 + 0xc]
lea r9, str.xxxxx
mov edx, dword [r10 + 0x10]
lea r8, [0x180007990]
add rcx, rax
call fcn.180001cc0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Found_GADGET_in_kernelbase
mov qword [0x18000b9a8], rax
call fcn.1800046e0
mov rcx, rax
lea rdx, [0x1800048b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [0x18000b9a8], rsi
je 0x18000292f
lea rdx, [0x180001f30]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x18000b9c8], rax
test rax, rax
jne 0x1800027ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Could_not_register_VEH:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov ebx, eax
call fcn.1800046e0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
jmp 0x180002942
mov rdi, qword gs:[0x60]
mov qword [rsp + 0x510], rbp
mov rax, qword [rdi + 0x18]
add rax, 0x20
mov rbx, qword [rax]
cmp rbx, rax
je 0x180002816
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x180007618]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x180002869
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x1800027f0
mov rcx, rsi
lea rdx, str.GetThreadContext
call fcn.180001d50
mov rdi, qword gs:[0x60]
mov rbp, rax
mov rcx, qword [rdi + 0x18]
add rcx, 0x20
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x180002873
mov rcx, qword [rbx + 0x40]
lea rdx, [0x180007618]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x18000286f
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x180002841
jmp 0x180002873
mov rcx, qword [rbx + 0x20]
jmp 0x180002819
mov rsi, qword [rbx + 0x20]
lea rdx, str.SetThreadContext
mov rcx, rsi
call fcn.180001d50
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x4d0
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x18000b9c0]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100010
call rbp
mov rcx, qword [rsp + 0x90]
lea rax, [fcn.180001ee0]
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 [0x18000b9c0]
call rbx
mov rbp, qword [rsp + 0x510]
test eax, eax
jne 0x180002908
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Could_not_set_new_thread_context:
jmp 0x1800027ac
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Main_HWBP_set_successfully
call fcn.1800046e0
mov rcx, rax
lea rdx, [0x1800048b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov al, 1
jmp 0x180002954
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____Could_not_find_a_suitable_gadget_in_kernel32_or_kernelbase._InitHWSyscalls_failed.
call fcn.1800046e0
lea rdx, [0x1800048b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180004d90
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret