Function at 0x1400be708
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf20]
mov eax, 0x1020
call fcn.14027bf80
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1068], rbx
mov r15, rdx
mov rsi, rcx
xor ebx, ebx
cmp byte [rcx + 0x78], bl
jne 0x1400be74e
lea eax, [rbx + 1]
jmp 0x1400be960
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm1
mov r12d, 0x20
mov r8d, r12d
lea rcx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
lea rcx, [rbp + 0x600]
call fcn.1400afb1c
nop
lea rdx, [rsi + 0x18]
lea rcx, [rbp + 0x600]
call fcn.1400afc3c
test al, al
je 0x1400be94e
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp + 0x600]
call fcn.1401991b0
test al, al
je 0x1400be94e
lea r13d, [r12 + 0x21]
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea r14, [rsi + 0x58]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400be7de
mov rdx, qword [r14]
lea r8, [rbp]
lea rcx, [rbp + 0x600]
call fcn.1401977c4
test al, al
je 0x1400be94e
mov dword [rbp + 0xf60], ebx
mov r9d, dword [rbp + 0x160]
mov byte [rsp + 0x28], bl
mov edi, 1
mov dword [rsp + 0x20], edi
lea r8d, [rdi + 3]
lea rdx, [rbp + 0xf60]
lea rcx, [rbp + 0x600]
call fcn.1401998f0
test al, al
je 0x1400be94e
mov edx, dword [rbp + 0xf60]
lea rcx, [rbp + 0x600]
call fcn.140197c4c
mov r9, rax
mov byte [rsp + 0x28], bl
mov dword [rsp + 0x20], edi
mov r8, r12
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x600]
call fcn.1401998f0
test al, al
je 0x1400be94e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dl, dil
call fcn.1400c3914
test al, al
je 0x1400be944
lea rcx, [rbp + 0x170]
call fcn.1400afb1c
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x170]
call fcn.1400afcc8
xor edx, edx
test al, al
jne 0x1400be8c1
lea r9, [rsp + 0x30]
xor r8d, r8d
call fcn.1400c3914
jmp 0x1400be937
mov r8, r13
lea rcx, [rbp - 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400be8db
mov rdx, qword [r14]
lea r8, [rbp - 0x70]
lea rcx, [rbp + 0x170]
call fcn.14019770c
test al, al
je 0x1400be924
mov ecx, dword [rbp + 0x158]
mov eax, r15d
sub eax, dword [rsi + 0x10]
cmp ecx, eax
je 0x1400be924
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x1400be90e
mov byte [rax], dil
mov r8, rcx
add r8, qword [rsi + 0x10]
mov rdx, r14
lea rcx, [rbp + 0x170]
call fcn.14019dfd4
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.1400c3914
test al, al
jne 0x1400be97b
lea rcx, [rbp + 0x170]
call fcn.140196cec
nop
lea rcx, [rsp + 0x30]
call fcn.1400c2bf8
mov dil, bl
lea rcx, [rbp + 0x600]
call fcn.140196cec
mov al, dil
mov rbx, qword [rsp + 0x1068]
add rsp, 0x1020
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp + 0x170]
call fcn.140196cec
nop
lea rcx, [rsp + 0x30]
call fcn.1400c2bf8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
mov r8, qword [rsi + 0x10]
mov dl, dil
call fcn.1400c3914
test al, al
je 0x1400beb3c
lea rcx, [rbp + 0xa90]
call fcn.1400afb1c
nop
mov byte [rsp + 0x20], dil
xor r9d, r9d
mov r8, qword [rsi + 0x10]
xor edx, edx
lea rcx, [rbp + 0xa90]
call fcn.14019b558
xor edx, edx
test al, al
je 0x1400beb20
mov r8, r13
lea rcx, [rbp + 0x178]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400bea07
mov rdx, qword [r14]
lea r8, [rbp + 0x170]
lea rcx, [rbp + 0xa90]
call fcn.1401977c4
test al, al
je 0x1400beb1e
mov r8d, dword [rbp + 0x158]
cmp r8d, dword [rbp + 0x2c8]
je 0x1400bea58
cmp byte [rbp + 0x1bc], bl
jne 0x1400bea58
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x1400bea49
mov byte [rax], dil
mov rdx, r14
lea rcx, [rbp + 0xa90]
call fcn.14019e134
lea r9, [rsp + 0x30]
mov r8, qword [rsi + 0x10]
xor edx, edx
call fcn.1400c3914
test al, al
je 0x1400beb2f
lea rcx, [rbp + 0xa90]
call fcn.140196cec
nop
lea rcx, [rsp + 0x30]
call fcn.1400c2bf8
mov r8, r12
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x1400beb07
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x1400beaad
mov byte [rax], dil
lea r9, [rbp + 0xf60]
mov r8d, 0x40
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400beb07
mov rax, rbx
mov cl, byte [rsp + rax + 0x48]
cmp byte [rsp + rax + 0x68], cl
je 0x1400beadb
mov byte [rax + r15], cl
add rax, rdi
cmp rax, r12
jb 0x1400beacd
lea r9, [rbp + 0xf70]
mov r8d, dword [rbp + 0xf60]
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne bl
jmp 0x1400be94e
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x1400be951
mov byte [rax], bl
jmp 0x1400be951
xor edx, edx
lea r9, [rsp + 0x30]
mov r8, qword [rsi + 0x10]
call fcn.1400c3914
nop
lea rcx, [rbp + 0xa90]
call fcn.140196cec
nop
jmp 0x1400be944