Function at 0x140039c10
Capabilities:
Create process on windows
Resume thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x148
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
movzx eax, al
test eax, eax
jne 0x140039c5a
mov eax, 0xc0000034
jmp 0x140039fc9
cmp qword [rsp + 0x168], 0
je 0x140039c8b
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x168]
call fcn.140023330
movzx eax, al
test eax, eax
jne 0x140039c8b
mov eax, 0xc0000106
jmp 0x140039fc9
cmp qword [rsp + 0x178], 0
je 0x140039cbc
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x178]
call fcn.140023330
movzx eax, al
test eax, eax
jne 0x140039cbc
mov eax, 0xc0000106
jmp 0x140039fc9
cmp qword [rsp + 0x180], 0
je 0x140039ceb
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
jmp 0x140039cfd
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x60], 0
jne 0x140039d12
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x58], 0
jne 0x140039d32
call fcn.140012650
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x20]
add rax, 0xc0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x180], 0
je 0x140039d53
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x98], rax
jmp 0x140039d5f
mov qword [rsp + 0x98], 0
cmp qword [rsp + 0x180], 0
je 0x140039d7d
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x140039d86
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x168], 0
je 0x140039da0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
jmp 0x140039dad
lea rax, [rsp + 0x80]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x178], 0
je 0x140039dca
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x90], rax
jmp 0x140039dd6
mov qword [rsp + 0x90], 0
cmp qword [rsp + 0x180], 0
je 0x140039df6
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
jmp 0x140039e02
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0xa0]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlCreateProcessParameters]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140039efe
mov eax, dword [rsp + 0x188]
and eax, 1
test eax, eax
je 0x140039e8e
mov dword [rsp + 0x54], 1
jmp 0x140039e96
mov dword [rsp + 0x54], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov edx, 0x40
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlCreateUserProcess]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlDestroyProcessParameters]
call fcn.140012650
mov rax, qword [rax + 0x60]
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [rsp + 0x50], 0
jl 0x140039fc5
mov eax, dword [rsp + 0x188]
and eax, 4
test eax, eax
jne 0x140039f44
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp qword [rsp + 0x198], 0
je 0x140039f69
lea rax, [rsp + 0xe8]
mov rdi, qword [rsp + 0x198]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x1a0], 0
je 0x140039f89
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0xd8]
mov qword [rax], rcx
jmp 0x140039f97
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rsp + 0x1a8], 0
je 0x140039fb7
mov rax, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0xe0]
mov qword [rax], rcx
jmp 0x140039fc5
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x50]
add rsp, 0x148
pop rdi
pop rsi
ret