Function at 0x14015ba80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x400], rax
lea rax, [rsp + 0x60]
mov rsi, rdx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x70]
lea rax, [rbp]
mov dword [rsp + 0x28], 0x400
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r15, rcx
call fcn.14015b380
test eax, eax
js 0x14015bd15
cmp dword [rbp - 0x40], 2
mov qword [rsp + 0x538], rbx
mov qword [rsp + 0x540], rdi
mov qword [rsp + 0x548], r14
jne 0x14015bbbc
lfence
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, r15
call fcn.14015b7a0
mov edi, eax
test eax, eax
js 0x14015bcfd
sub rsi, qword [rbp - 0x60]
xor ebx, ebx
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x14015bb74
mov r9, qword [rsp + 0x58]
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov eax, dword [r9 + rcx*4]
lea rdx, [r9 + rcx*4]
cmp rsi, rax
jb 0x14015bb6d
mov eax, dword [rdx + 4]
cmp rsi, rax
jb 0x14015bb9c
inc ebx
cmp ebx, r8d
jb 0x14015bb50
mov edi, 0xc0000225
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x58]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14015bcfb
nop dword [rax]
test rdx, rdx
je 0x14015bb74
movsd xmm0, qword [rdx]
movsd qword [0x1402cdc98], xmm0
mov eax, dword [rdx + 8]
mov dword [0x1402cdca0], eax
jmp 0x14015bb79
mov eax, dword ds:[rbp - 0x3c]
cmp eax, 0x100000
jbe 0x14015bbd1
mov edi, 0x80000005
jmp 0x14015bcfb
lea rdi, [rax + rax*2]
mov dword [rsp + 0x28], 4
shl rdi, 2
lea r9, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x14015bcf6
mov r14, qword ds:[rsp + 0x40]
test r14, r14
je 0x14015bcf6
lfence
mov rdx, qword [rbp - 0x80]
mov r9, rdi
mov r8, r14
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov edi, eax
test eax, eax
js 0x14015bc5a
mov eax, dword [rbp - 0x3c]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x58], r14
jmp 0x14015bc86
mov r9d, 0x8000
mov qword [rsp + 0x40], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
test edi, edi
js 0x14015bcfb
lfence
sub rsi, qword [rbp - 0x60]
cmp dword [rbp - 0x40], ebx
mov r9, rsi
mov rsi, qword [rsp + 0x58]
mov edx, dword [rsp + 0x48]
sete r8b
mov rcx, rsi
call fcn.14015b700
test rax, rax
je 0x14015bcc8
movsd xmm0, qword [rax]
movsd qword [0x1402cdc98], xmm0
mov eax, dword [rax + 8]
mov dword [0x1402cdca0], eax
jmp 0x14015bccd
mov edi, 0xc0000225
mov r9d, 0x8000
mov qword [rsp + 0x40], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
jmp 0x14015bcfb
mov edi, 0xc0000017
mov eax, edi
mov rdi, qword [rsp + 0x540]
mov rbx, qword [rsp + 0x538]
mov r14, qword [rsp + 0x548]
lfence
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x510
pop r15
pop rsi
pop rbp
ret