Function at 0x14015cde0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x1402c0040]
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.14015c6e0
test eax, eax
js 0x14015d075
cmp dword [rbp - 0x40], 2
mov qword [rsp + 0x538], rbx
mov qword [rsp + 0x540], rdi
mov qword [rsp + 0x548], r14
jne 0x14015cf1c
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.14015cb00
mov edi, eax
test eax, eax
js 0x14015d05d
sub rsi, qword [rbp - 0x60]
xor ebx, ebx
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x14015ced4
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 0x14015cecd
mov eax, dword [rdx + 4]
cmp rsi, rax
jb 0x14015cefc
inc ebx
cmp ebx, r8d
jb 0x14015ceb0
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 0x14015d05b
nop dword [rax]
test rdx, rdx
je 0x14015ced4
movsd xmm0, qword [rdx]
movsd qword [0x1402cebe8], xmm0
mov eax, dword [rdx + 8]
mov dword [0x1402cebf0], eax
jmp 0x14015ced9
mov eax, dword ds:[rbp - 0x3c]
cmp eax, 0x100000
jbe 0x14015cf31
mov edi, 0x80000005
jmp 0x14015d05b
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 0x14015d056
mov r14, qword ds:[rsp + 0x40]
test r14, r14
je 0x14015d056
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 0x14015cfba
mov eax, dword [rbp - 0x3c]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x58], r14
jmp 0x14015cfe6
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 0x14015d05b
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.14015ca60
test rax, rax
je 0x14015d028
movsd xmm0, qword [rax]
movsd qword [0x1402cebe8], xmm0
mov eax, dword [rax + 8]
mov dword [0x1402cebf0], eax
jmp 0x14015d02d
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 0x14015d05b
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.1401e5e20
add rsp, 0x510
pop r15
pop rsi
pop rbp
ret