Function at 0x140020000
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate process modules
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140159140]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
movzx r14d, r8b
mov r15, rdx
mov r8d, ecx
mov ebx, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140020273
mov edx, ebx
mov ecx, 0x18
xor esi, esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400200bd
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x1400200bd
nop word [rax + rax]
lea rdx, [0x1400af180]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400200b8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x140020090
jmp 0x1400200bd
mov rsi, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140020273
lea r8, str.SetWindowDisplayAffinity
mov rdx, rsi
mov rcx, rdi
call fcn.14001fcc0
mov rcx, rax
test rax, rax
je 0x140020273
mov eax, dword [0x1400af1f8]
neg r14b
movaps xmm0, xmmword [0x1400af1b0]
mov r9d, 0x3000
movaps xmm1, xmmword [0x1400af1c0]
mov r8d, 0x4f
mov dword [rbp + 0x1d8], eax
movzx eax, word [0x1400af1fc]
mov word [rbp + 0x1dc], ax
movzx eax, byte [0x1400af1fe]
movaps xmmword [rbp + 0x190], xmm0
movaps xmm0, xmmword [0x1400af1d0]
movaps xmmword [rbp + 0x1b0], xmm0
movsd xmm0, qword [0x1400af1f0]
movaps xmmword [rbp + 0x1a0], xmm1
movaps xmm1, xmmword [0x1400af1e0]
mov byte [rbp + 0x1de], al
sbb eax, eax
movaps xmmword [rbp + 0x1c0], xmm1
and eax, 0x11
mov qword [rbp + 0x1bb], rcx
xor edx, edx
mov rcx, rdi
mov dword [rbp + 0x1b5], eax
movsd qword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x1aa], r15
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x140020273
lea rax, [rsp + 0x40]
mov r9d, 0x4f
lea r8, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140020273
mov qword [rsp + 0x30], 0
mov r9, rbx
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140020273
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea r8, [rbp + 0x190]
xorps xmm0, xmm0
mov qword [rbp + 0x1d0], rax
mov dword [rbp + 0x1d8], eax
mov r9d, 0x4f
mov word [rbp + 0x1dc], ax
mov rdx, rbx
mov byte [rbp + 0x1de], al
mov rcx, rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
movups xmmword [rbp + 0x1c0], xmm0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140020273
mov al, 1
jmp 0x140020275
xor al, al
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400a88d0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret