Function at 0x14015df80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x1402bb040]
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.14015d8c0
test eax, eax
js 0x14015e215
cmp dword [rbp - 0x40], 2
mov qword [rsp + 0x538], rbx
mov qword [rsp + 0x540], rdi
mov qword [rsp + 0x548], r14
jne 0x14015e0bc
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.14015dca0
mov edi, eax
test eax, eax
js 0x14015e1fd
sub rsi, qword [rbp - 0x60]
xor ebx, ebx
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x14015e074
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 0x14015e06d
mov eax, dword [rdx + 4]
cmp rsi, rax
jb 0x14015e09c
inc ebx
cmp ebx, r8d
jb 0x14015e050
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 0x14015e1fb
nop dword [rax]
test rdx, rdx
je 0x14015e074
movsd xmm0, qword [rdx]
movsd qword [0x1402c9408], xmm0
mov eax, dword [rdx + 8]
mov dword [0x1402c9410], eax
jmp 0x14015e079
mov eax, dword ds:[rbp - 0x3c]
cmp eax, 0x100000
jbe 0x14015e0d1
mov edi, 0x80000005
jmp 0x14015e1fb
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 0x14015e1f6
mov r14, qword ds:[rsp + 0x40]
test r14, r14
je 0x14015e1f6
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 0x14015e15a
mov eax, dword [rbp - 0x3c]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x58], r14
jmp 0x14015e186
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 0x14015e1fb
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.14015dc00
test rax, rax
je 0x14015e1c8
movsd xmm0, qword [rax]
movsd qword [0x1402c9408], xmm0
mov eax, dword [rax + 8]
mov dword [0x1402c9410], eax
jmp 0x14015e1cd
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 0x14015e1fb
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.1401e5e40
add rsp, 0x510
pop r15
pop rsi
pop rbp
ret