Function at 0x18006c2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1800ee010]
xor rax, rsp
mov qword [rbp - 0x10], rax
movsxd rax, dword [rcx]
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp eax, 5
jl 0x18006c4bb
mov rcx, qword [rcx + 8]
lea r9, [rbp - 0x18]
mov rdx, rax
mov dword [rbp - 0x18], 0
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdx, qword [rbx + 8]
mov r8d, 0x16
call fcn.18006c6e0
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18006c4dc
mov qword [rsp + 0x88], r14
xor ecx, ecx
mov dword [rbp - 0x40], 0x448b4850
mov r8d, 0x3000
mov word [rbp - 0x3c], 0xf824
mov dword [rbp - 0x38], 0x24448948
mov word [rbp - 0x34], 0x48f0
lea r9d, [rcx + 0x40]
mov dword [rax], 0x24448948
mov word [rax + 4], 0x48f0
mov byte [rax + 6], 0xb8
mov rax, qword [rbx + 0x10]
movzx r14d, word [rbp - 0x3c]
mov qword [rax + 7], rdi
mov rax, qword [rbx + 0x10]
mov edi, dword [rbp - 0x40]
mov dword [rax + 0xf], edi
mov word [rax + 0x13], r14w
mov byte [rax + 0x15], 0xc3
mov eax, dword [rbx]
add eax, 0x16
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18006c4fd
mov qword [rsi], rax
movsxd r8, dword [rbx]
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
movsxd rdx, dword [rbx]
add rdx, qword [rbx + 0x18]
mov eax, dword [rbp - 0x38]
mov dword [rdx], eax
movzx eax, word [rbp - 0x34]
mov word [rdx + 4], ax
mov byte [rdx + 6], 0xb8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 8]
add rcx, rdx
mov qword [rdx + rax + 7], rcx
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 0x18]
mov dword [rcx + rax + 0xf], edi
mov word [rcx + rax + 0x13], r14w
mov byte [rcx + rax + 0x15], 0xc3
mov rax, qword [rbx + 8]
mov ecx, dword [rbx + 0x10]
sub ecx, dword [rbx + 8]
sub ecx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 8]
mov dword [rax + 1], ecx
mov eax, dword [rbx]
cmp eax, 5
jle 0x18006c44f
mov rcx, qword [rbx + 8]
add eax, 0xfffffffb
movsxd r8, eax
add rcx, 5
mov edx, 0x90
call sub.VCRUNTIME140.dll_memset
movsxd rdx, dword [rbx]
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x18]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x10]
lea r9, [rbp - 0x18]
mov edx, 0x16
lea r8d, [rdx + 0xa]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx]
lea r9, [rbp - 0x18]
mov rcx, qword [rbx + 0x18]
add eax, 0x16
movsxd rdx, eax
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r14, qword [rsp + 0x88]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800913d0
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Not_enough_memory_for_the_jmp_instruction
lea rcx, [rbp - 0x30]
call fcn.180062c90
lea rdx, [0x1800eb540]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_allocate_memory_for_the_hook
lea rcx, [rbp - 0x30]
call fcn.180062c90
lea rdx, [0x1800eb540]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_allocate_memory_for_the_hook
lea rcx, [rbp - 0x30]
call fcn.180062c90
lea rdx, [0x1800eb540]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3