Function at 0x140005ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, rdx
mov r13, rcx
xor r12d, r12d
mov rax, qword [rdx + 0x58]
mov r8d, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rax + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x140005b6d
mov rax, qword [rdi + 0x58]
mov r8d, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140005f9a
mov rdx, r15
lea rcx, str.___Allocated_base_at_0x_p_n
call fcn.140005a80
mov edx, dword [rdi + 0x54]
lea rsi, [rdi + 0x60]
test edx, edx
je 0x140005b93
mov rax, qword [rdi + 0x58]
add rax, 0xd0
jmp 0x140005b9c
mov rax, qword [rsi]
add rax, 0xc0
mov ecx, dword [rax]
test ecx, ecx
je 0x140005c18
mov ebx, ecx
add rbx, qword [rdi + 0x18]
test edx, edx
je 0x140005bbb
mov r14, rbx
mov rbx, r12
mov r8, qword [r14 + 8]
sub r8, qword [r14]
jmp 0x140005bc5
mov r14, r12
mov r8d, dword [rbx + 4]
sub r8d, dword [rbx]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
test rax, rax
je 0x140005c18
lea rsi, [rdi + 0x60]
cmp dword [rdi + 0x54], r12d
je 0x140005c04
mov rax, qword [rdi + 0x58]
mov rcx, qword [r14 + 0x10]
sub rcx, qword [rax + 0x30]
mov rax, qword [rdi + 0x18]
mov qword [rcx + rax], r12
jmp 0x140005c18
mov rax, qword [rsi]
mov ecx, dword [rax + 0x34]
mov edx, dword [rbx + 8]
sub rdx, rcx
mov rax, qword [rdi + 0x18]
mov dword [rdx + rax], r12d
mov rdx, r13
mov rcx, rdi
call fcn.140006b10
test eax, eax
je 0x140005f9a
cmp dword [rdi + 0x54], r12d
je 0x140005c3d
mov rax, qword [rdi + 0x58]
add rax, 0xd8
jmp 0x140005c46
mov rax, qword [rsi]
add rax, 0xc8
mov r14d, dword [rax]
test r14d, r14d
je 0x140005ce0
mov qword [rbp + 7], r12
lea rcx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov ebx, dword [r13 + 4]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ecx, eax
xor rcx, rbx
lea rax, [rbp + 7]
xor rcx, rax
mov rdx, qword [rbp + 0x17]
shl rdx, 0x20
xor rdx, qword [rbp + 0x17]
xor rdx, qword [rbp + 0xf]
xor rdx, rcx
movabs rax, 0xffffffffffff
and rdx, rax
mov qword [rbp + 7], rdx
mov r9, qword [rdi + 0x18]
cmp dword [rdi + 0x54], r12d
je 0x140005cc6
mov rcx, qword [r14 + r9 + 0x58]
test rcx, rcx
je 0x140005ce0
mov rax, qword [rdi + 0x58]
sub rcx, qword [rax + 0x30]
mov qword [rcx + r9], rdx
jmp 0x140005ce0
mov r8d, dword [r14 + r9 + 0x3c]
test r8d, r8d
je 0x140005ce0
mov rax, qword [rsi]
mov ecx, dword [rax + 0x34]
mov eax, r8d
sub rax, rcx
mov dword [rax + r9], edx
cmp dword [rdi + 0x54], r12d
je 0x140005cf7
mov rax, qword [rdi + 0x58]
mov rdx, qword [rax + 0xb0]
mov rcx, qword [rax + 0x30]
jmp 0x140005d04
mov rax, qword [rsi]
mov rdx, qword [rax + 0xa0]
mov ecx, dword [rax + 0x34]
mov r11, r15
sub r11, rcx
test edx, edx
je 0x140005d9c
mov rcx, qword [rdi + 0x18]
mov ebx, edx
add rbx, rcx
je 0x140005d9c
mov eax, dword [rbx + 4]
test eax, eax
je 0x140005d9c
nop dword [rax]
nop dword [rax + rax]
mov r10d, eax
sub r10, 8
lea r9, [rbx + 8]
mov esi, dword [rbx]
add rsi, rcx
mov r8d, r12d
shr r10, 1
je 0x140005d8f
nop dword [rax + rax]
movzx ecx, word [r9]
mov eax, ecx
shr eax, 0xc
and ecx, 0xfff
cmp eax, 0xa
je 0x140005d69
cmp eax, 3
jne 0x140005d7c
mov edx, ecx
add rdx, rsi
cmp dword [rdi + 0x54], r12d
je 0x140005d79
add qword [rdx], r11
jmp 0x140005d7c
add dword [rdx], r11d
add r9, 2
inc r8d
movsxd rax, r8d
cmp rax, r10
jb 0x140005d50
mov rcx, qword [rdi + 0x18]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx + 4]
test eax, eax
jne 0x140005d30
mov rax, qword [rdi + 0x58]
movzx ebx, word [rax + 0x14]
add rbx, 0x20
movzx ecx, word [rax + 6]
cmp r12w, cx
jae 0x140005e45
add rbx, rax
mov esi, ecx
nop dword [rax + rax]
mov r9d, r12d
mov dword [rbp + 7], r12d
mov ecx, dword [rbx + 0x1c]
mov eax, r12d
bt ecx, 0x1d
jae 0x140005de0
mov r9d, 0x20000000
mov dword [rbp + 7], r9d
mov eax, r9d
bt ecx, 0x1e
jae 0x140005df5
mov r9d, eax
bts r9d, 0x1e
mov dword [rbp + 7], r9d
mov eax, r9d
test ecx, ecx
jns 0x140005e08
mov r9d, eax
bts r9d, 0x1f
mov dword [rbp + 7], r9d
mov eax, r9d
mov r8d, dword [rbx]
mov ecx, dword [rbx + 4]
lea rdx, [rcx + r15]
mov rcx, qword [r13 + 8]
test eax, eax
jne 0x140005e28
mov r9d, 0x4000
call qword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
jmp 0x140005e37
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
add rbx, 0x28
sub rsi, 1
jne 0x140005dc0
mov rax, qword [rdi + 0x58]
mov r9d, dword [rax + 0x50]
mov qword [rsp + 0x20], r12
mov r8, qword [rdi + 0x18]
mov rdx, r15
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x140005f9a
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax + 0x28]
lea rdx, [r15 + rcx]
mov rcx, r13
cmp dword [r13], r12d
je 0x140005e86
call fcn.1400063e0
jmp 0x140005e8b
call fcn.140005fd0
test eax, eax
je 0x140005f9a
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov dword [rbp - 0x21], r12d
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
xor r8d, r8d
lea rdx, [0x14000a978]
lea rcx, [rbp - 0x19]
call fcn.1400050d0
nop
mov qword [rbp - 0x31], r15
mov rax, qword [rdi + 0x58]
mov ebx, dword [rax + 0x28]
add rbx, r15
mov qword [rbp - 0x29], rbx
mov esi, dword [rax + 0x50]
mov dword [rbp - 0x21], esi
lea rdx, [rdi + 0x30]
lea rcx, [rbp - 0x69]
call fcn.1400048f0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140005f22
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400088fc
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbp - 0x59]
movups xmmword [rbp - 9], xmm1
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], rbx
mov dword [rbp - 0x59], esi
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x51]
call fcn.1400048f0
lea rdx, [rbp - 0x69]
mov rcx, r13
call fcn.140007880
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140005f95
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400088fc
mov rax, r15
jmp 0x140005f9c
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400088a0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret