Function at 0x140001520
Capabilities:
Create process on windows
Create process suspended
Patch process command line
Resume thread
Use process replacement

Disassembly:
mov qword ss:[rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa30]
sub rsp, 0xb30
xorps xmm0, xmm0
xorps xmm1, xmm1
xor eax, eax
mov r15, rdx
mov rbx, rcx
mov dword [rbp + 0x14], eax
xor r12d, r12d
mov qword [rsp + 0x68], rax
mov edx, 0x104
mov dword [rbp + 0xa78], r12d
lea rcx, [rbp + 0x20]
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
xor eax, eax
lea rdi, [rbp - 0x50]
mov ecx, 0x68
rep stosb byte [rdi], al
lea rdi, [rsp + 0x58]
mov dword [rbp - 0x50], 0x68
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, str.NTDLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140001834
mov rdx, rbx
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x230]
lea rax, [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140001834
mov rcx, qword [rsp + 0x58]
lea rax, [rbp + 0xa78]
lea r9d, [r12 + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x80]
xor edx, edx
call rdi
test eax, eax
jne 0x140001834
mov rdi, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x70], r12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [r12 + 8]
mov r8d, 0x7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, 0x7d0
mov rdx, rdi
mov rsi, rax
mov rcx, rbx
lea rax, [rsp + 0x70]
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001834
cmp qword [rsp + 0x70], 0x7d0
jne 0x140001834
mov rdi, qword [rsi + 0x20]
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x78], r12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, ds:[r12 + 8]
mov r8d, 0x280
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, 0x280
mov rdx, rdi
mov r14, rax
mov rcx, rbx
lea rax, [rsp + 0x78]
mov r8, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001834
cmp qword [rsp + 0x78], 0x280
jne 0x140001834
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [r14 + 0x78]
mov r8, r15
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x50], r12
lea edi, [rax*2 + 1]
lea rax, [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001834
nop dword [rax + rax]
cmp qword [rsp + 0x50], rdi
jne 0x140001834
mov rdx, qword [rsi + 0x20]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r9d, [r12 + 4]
add rdx, 0x70
mov qword [rsp + 0x50], r12
lea r8, [rbp + 0xa70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001834
cmp qword [rsp + 0x50], 4
jne 0x140001834
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbp + 0xa80]
mov eax, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rbp + 0xa88]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rbp + 0xa90]
mov qword [rax], rdx
test rcx, rcx
je 0x140001834
test rdx, rdx
je 0x140001834
lea eax, [r12 + 1]
jmp 0x140001836
xor eax, eax
lea r11, [rsp + 0xb30]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret