Function at 0x180037470
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180049028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, r9
movsxd rsi, r8d
mov rbp, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rbx
mov rdx, r9
call fcn.180003ec0
nop
mov qword [rdi + 0x18], rbp
mov dword [rdi + 0x28], esi
xor r14d, r14d
mov qword [rdi + 0x30], r14
mov qword [rdi + 0x38], r14
mov qword [rdi + 0x40], r14
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
mov qword [rdi + 0x48], rax
mov byte [rdi + 0x50], r14b
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
add rdx, 0x1c
xor ecx, ecx
lea r9d, [r14 + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x18003750e
lea rdx, str._ERROR_:_Failed_to_allocate_executable_memory_for_the_gateway._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180001e70
lea rdx, str._Hooks_:_GateWay_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180001e70
lea rdx, [0x180034850]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [rdi + 0x20]
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___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x180041170]
call fcn.180001e70
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1800375f0
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
sub r8, rdx
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
lea rdx, [rsi + rbp]
lea rcx, [rsp + 0x30]
call fcn.180037b60
nop
lea rcx, [rsp + 0x30]
call fcn.180034be0
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub r8, rdx
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
add rcx, qword [rdi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180037604
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800375e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800375e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180039a60
jmp 0x180037604
lea rdx, str._ERROR_:_Gateway_Invalid_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180001e70
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x180037644
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180037634
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003766a
mov rcx, r8
call fcn.180039a60
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180039920
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3