Function at 0x140006620
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x140029126]
call fcn.140015f10
mov rcx, qword [rbp + 0x218]
call fcn.1400058c0
movzx eax, al
test eax, eax
je 0x14000668f
mov rax, qword [rbp + 0x210]
cmp qword [rax + 0x50], 0
jne 0x1400066ae
mov byte [rbp + 0x174], 0
mov rcx, qword [rbp + 0x218]
call fcn.1400052a0
movzx eax, byte [rbp + 0x174]
jmp 0x140006884
mov rax, qword [rbp + 0x218]
mov qword [0x140025b68], rax
mov qword [rbp + 8], 0
mov byte [rbp + 0x28], 0
mov byte [rbp + 0x29], 0
mov byte [rbp + 0x2a], 0
mov byte [rbp + 0x2b], 0
mov byte [rbp + 0x2c], 0
mov byte [rbp + 0x2d], 0
mov byte [rbp + 0x2e], 0
mov byte [rbp + 0x2f], 0
mov byte [rbp + 0x30], 0xe8
mov byte [rbp + 0x31], 8
mov byte [rbp + 0x32], 0
mov byte [rbp + 0x33], 0
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x35], 0
mov byte [rbp + 0x36], 0
mov byte [rbp + 0x37], 0
mov byte [rbp + 0x38], 0
mov byte [rbp + 0x39], 0
mov byte [rbp + 0x3a], 0
mov byte [rbp + 0x3b], 0
mov byte [rbp + 0x3c], 0
mov byte [rbp + 0x3d], 0x58
mov byte [rbp + 0x3e], 0xff
mov byte [rbp + 0x3f], 0x20
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x18
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14000677b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAlloc_error__d_n
call fcn.14000aa40
mov byte [rbp + 0x194], 0
mov rcx, qword [rbp + 0x218]
call fcn.1400052a0
movzx eax, byte [rbp + 0x194]
jmp 0x140006884
mov r8d, 0x18
xor edx, edx
mov rcx, qword [rbp + 8]
call sub.VCRUNTIME140D.dll_memset
mov r8d, 0x18
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call sub.VCRUNTIME140D.dll_memcpy
mov rax, qword [rbp + 8]
add rax, 8
mov rcx, qword [rbp + 8]
mov qword [rcx], rax
mov rax, qword [rbp + 8]
lea rcx, [0x140006220]
mov qword [rax + 0xd], rcx
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rbp + 0x98], rax
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x74]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rbp + 0x98]
mov edx, 0xaa013044
mov rax, qword [rbp + 0x210]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140006858
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____DeviceIoControl_error__d_n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov byte [rbp + 0x1b4], 0
mov rcx, qword [rbp + 0x218]
call fcn.1400052a0
movzx eax, byte [rbp + 0x1b4]
jmp 0x140006884
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov byte [rbp + 0x1d4], 1
mov rcx, qword [rbp + 0x218]
call fcn.1400052a0
movzx eax, byte [rbp + 0x1d4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140019f40]
call fcn.140015e80
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140016150
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret