Function at 0x140006fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x3a8
mov byte [rsp + 0x34], 0
xor r8d, r8d
mov rdx, qword [rsp + 0x3c0]
mov ecx, 0x466
call fcn.140007de0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000725a
mov byte [rsp + 0x50], 0xb8
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x51], eax
mov byte [rsp + 0x55], 0xb9
mov eax, dword [rsp + 0x30]
add eax, 0x22d
mov dword [rsp + 0x56], eax
mov eax, 0xd1ff
mov word [rsp + 0x5a], ax
lea rdi, [rsp + 0x290]
mov rsi, qword [rsp + 0x3d8]
mov ecx, 0x108
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x3d0]
call fcn.140007270
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0x3c8]
call fcn.14002b1e0
movzx eax, ax
shl eax, 1
mov word [rsp + 0x65], ax
movzx eax, word [rsp + 0x65]
add eax, 2
mov word [rsp + 0x67], ax
mov eax, dword [rsp + 0x30]
add eax, 0x1d
mov dword [rsp + 0x69], eax
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x6d]
call fcn.14002b894
mov edx, dword [0x140051bb8]
mov dword [rsp + 0x275], edx
mov eax, dword [0x140051bbc]
mov dword [rsp + 0x279], eax
cmp dword [rsp + 0x5c], 0
je 0x14000725a
movsxd rdx, dword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x22e
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000725a
cmp qword [rsp + 0x40], 0x22e
jne 0x14000725a
mov eax, dword [rsp + 0x30]
add eax, 0x22d
movsxd rdx, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x238
lea r8, [0x14003f8b0]
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000725a
cmp qword [rsp + 0x40], 0x238
jne 0x14000725a
movsxd rdx, dword [rsp + 0x5c]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000725a
cmp qword [rsp + 0x40], 5
jne 0x14000725a
mov eax, dword [rsp + 0x30]
add eax, 0x10
movsxd rdx, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000725a
cmp qword [rsp + 0x40], 5
jne 0x14000725a
movsxd rdx, dword [rsp + 0x5c]
lea rax, [rsp + 0x280]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, 5
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000725a
mov byte [rsp + 0x38], 0xe9
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x30]
sub eax, ecx
sub eax, 5
mov dword [rsp + 0x39], eax
movsxd rdx, dword [rsp + 0x5c]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movsxd rdx, dword [rsp + 0x5c]
lea rax, [rsp + 0x280]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x280]
mov r8d, 5
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov byte [rsp + 0x34], 1
mov al, byte [rsp + 0x34]
add rsp, 0x3a8
pop rdi
pop rsi
ret