Function at 0x140002050
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
jmp 0x140002050
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x10d8
call fcn.140001087
sub rsp, rax
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x302
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10f8]
lea rcx, [0x14001916c]
call fcn.1400012c6
mov dword [rbp + 4], 0
lea rax, [rbp + 0x850]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rbp + 0x8d8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rbp + 0x908]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rbp + 0x954], 0
mov qword [rbp + 0x978], 0
mov qword [rbp + 0x998], 0
mov edx, 0x104
lea rcx, [rbp + 0x9c0]
call sub.ucrtbased.dll__wgetcwd
mov edx, 0x68
lea rcx, [rbp + 0x850]
call fcn.140001203
mov edx, 0x18
lea rcx, [rbp + 0x8d8]
call fcn.140001203
mov dword [rbp + 0x850], WSAGetLastError
lea rcx, str.NTDLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xbe8], rax
cmp qword [rbp + 0xbe8], 0
jne 0x14000216f
xor eax, eax
jmp 0x140002447
mov rdx, qword [rbp + 0x10a0]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rbp + 0x8d8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x850]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x9c0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400021ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcessA_Failed_with_Error_:__d__n
call fcn.14000115e
xor eax, eax
jmp 0x140002447
mov edx, dword [rbp + 0x8e8]
lea rcx, str._i__Target_Process_Created_With_Pid_:__d__n
call fcn.14000115e
lea rax, [rbp + 0x954]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp + 0x908]
xor edx, edx
mov rcx, qword [rbp + 0x8d8]
call qword [rbp + 0xbe8]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140002247
mov edx, dword [rbp + 4]
lea rcx, str.____NtQueryInformationProcess_Failed_With_Error_:_0x_0.8X__n
call fcn.14000115e
xor eax, eax
jmp 0x140002447
mov r9d, 0x7d0
lea r8, [rbp + 0x978]
mov rdx, qword [rbp + 0x910]
mov rcx, qword [rbp + 0x8d8]
call fcn.1400012d0
test eax, eax
jne 0x14000227e
lea rcx, str.____Failed_To_Read_Targets_Process_Peb__n
call fcn.14000115e
xor eax, eax
jmp 0x140002447
mov r9d, 0x280
lea r8, [rbp + 0x998]
mov rax, qword [rbp + 0x978]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x8d8]
call fcn.1400012d0
test eax, eax
jne 0x1400022b9
lea rcx, str.____Failed_To_Read_Targets_Process_ProcessParameters__n
call fcn.14000115e
xor eax, eax
jmp 0x140002447
cmp dword [rbp + 0x10b8], 0
je 0x1400022e0
mov rax, qword [rbp + 0x998]
mov r8, qword [rax + 0x78]
mov rdx, qword [rbp + 0x10a8]
lea rcx, str._i__Writing___s__As_The_Process_Argument_At_:_0x_p_..._n
call fcn.140001014
mov rcx, qword [rbp + 0x10a8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
lea rax, [rax + rax + 1]
mov r9d, eax
mov r8, qword [rbp + 0x10a8]
mov rax, qword [rbp + 0x998]
mov rdx, qword [rax + 0x78]
mov rcx, qword [rbp + 0x8d8]
call fcn.14000117c
test eax, eax
jne 0x14000232c
lea rcx, str.____Failed_To_Write_The_Real_Parameters_n
call fcn.14000115e
xor eax, eax
jmp 0x140002447
cmp dword [rbp + 0x10b8], 0
je 0x140002355
mov rax, qword [rbp + 0x998]
movzx eax, word [rax + 0x70]
mov r8d, dword [rbp + 0x10b0]
mov edx, eax
lea rcx, str._i__Updating_The_Length_Of_The_Process_Argument_From__d_To__d_..._n_n
call fcn.140001014
mov rax, qword [rbp + 0x978]
mov rax, qword [rax + 0x20]
add rax, 0x70
mov r9d, 4
lea r8, [rbp + 0x10b0]
mov rdx, rax
mov rcx, qword [rbp + 0x8d8]
call fcn.14000117c
test eax, eax
jne 0x140002397
lea rcx, str.____Failed_To_Update_the_Length_Of_The_Process_Argument_n
call fcn.14000115e
xor eax, eax
jmp 0x140002447
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x978]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x998]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp + 0x8e0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbp + 0x10c0]
mov ecx, dword [rbp + 0x8e8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x10c8]
mov rcx, qword [rbp + 0x8d8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x10d0]
mov rcx, qword [rbp + 0x8e0]
mov qword [rax], rcx
mov rax, qword [rbp + 0x10c8]
cmp qword [rax], 0
je 0x14000242b
mov rax, qword [rbp + 0x10d0]
cmp qword [rax], 0
je 0x14000242b
mov dword [rbp + 0x1074], 1
jmp 0x140002435
mov dword [rbp + 0x1074], 0
cmp dword [rbp + 0x1074], 0
je 0x140002445
mov eax, 1
jmp 0x140002447
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14000f3c0]
call fcn.140001267
mov rax, rdi
lea rsp, [rbp + 0x1088]
pop rdi
pop rbp
ret