Function at 0x140038740
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
mov qword [rsp + 0x2d8], 0xfffffffffffffffe
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.140011d00
mov r9, qword [0x14019e5a0]
xor r8d, r8d
mov rdx, qword [rsp + 0x310]
lea rcx, [rsp + 0xe8]
call fcn.140011b30
nop
mov r8, qword [rsp + 0x318]
mov rdx, qword [rsp + 0x318]
mov rdx, qword [rdx + 0x18]
lea rcx, [rsp + 0x140]
call fcn.140063d30
jmp 0x1400387ca
lea rcx, [rsp + 0x140]
call fcn.1400396e0
mov r8, qword [rsp + 0x318]
mov rdx, qword [rsp + 0x318]
mov rdx, qword [rdx + 0x20]
lea rcx, [rsp + 0x150]
call fcn.140063d30
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x140]
call fcn.14006d010
movzx eax, al
test eax, eax
jne 0x140038814
mov dword [rsp + 0x2e0], 1
jmp 0x14003881f
mov dword [rsp + 0x2e0], 0
movzx eax, byte [rsp + 0x2e0]
test eax, eax
je 0x1400388a1
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [0x14019e66c]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x1f8], rcx
mov r8, qword [rsp + 0x1f8]
lea rdx, [0x14019e66c]
lea rcx, [rsp + 0xe8]
call fcn.14002d980
lea rcx, [rsp + 0x140]
call fcn.140134aa0
mov qword [rsp + 0x208], rax
mov r9, qword [0x14019e5a0]
xor r8d, r8d
mov rdx, qword [rsp + 0x208]
lea rcx, [rsp + 0xe8]
call fcn.14002de50
jmp 0x1400387bd
lea rax, [rsp + 0x210]
mov qword [rsp + 0x218], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.1400010c0
nop
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0xe8]
call fcn.140043d00
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rsp + 0x60], 0x68
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x9c], 0x180
xor eax, eax
mov word [rsp + 0xa2], ax
mov qword [rsp + 0xa8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x320], 0
je 0x14003899e
mov rcx, qword [rsp + 0x320]
mov rcx, qword [rcx]
call fcn.140045ab0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
mov r8, qword [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, 1
mov rcx, qword [rsp + 0x320]
call fcn.140045d10
jmp 0x1400389e2
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
mov r8, qword [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp qword [rsp + 0x328], 0
je 0x140038a38
mov rcx, qword [rsp + 0x328]
mov rcx, qword [rcx]
call fcn.140045ad0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb8]
mov r8, qword [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x140038a7c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb8]
mov r8, qword [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp qword [rsp + 0x330], 0
je 0x140038ad2
mov rcx, qword [rsp + 0x330]
mov rcx, qword [rcx]
call fcn.140045ad0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
mov r8, qword [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x140038b16
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
mov r8, qword [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp qword [rsp + 0x328], 0
je 0x140038b33
mov edx, 2
mov rcx, qword [rsp + 0x328]
call fcn.140045d10
cmp qword [rsp + 0x330], 0
je 0x140038b50
mov edx, 2
mov rcx, qword [rsp + 0x330]
call fcn.140045d10
cmp qword [rsp + 0x138], 8
jb 0x140038b6d
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x2e8], rax
jmp 0x140038b7d
lea rax, [rsp + 0x120]
mov qword [rsp + 0x2e8], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x2e8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], 0
je 0x140038cba
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x20
call fcn.1400ddc18
mov qword [rsp + 0x170], rax
cmp qword [rsp + 0x170], 0
je 0x140038c57
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x170]
call fcn.140038370
mov qword [rsp + 0x2f0], rax
jmp 0x140038c63
mov qword [rsp + 0x2f0], 0
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x160], rax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x118]
call fcn.1400010c0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xe8]
call fcn.140011d00
mov rax, qword [rsp + 0x160]
jmp 0x140038d86
lea rax, [rsp + 0x240]
mov qword [rsp + 0x248], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1c8]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.Cannot_launch_process
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x270], rcx
mov r8, qword [rsp + 0x270]
lea rdx, str.Cannot_launch_process
lea rcx, [rsp + 0x1c8]
call fcn.1400128b0
nop
xor r9d, r9d
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x178]
call fcn.14003e0c0
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x178]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1c8]
call fcn.140011d00
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x118]
call fcn.1400010c0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xe8]
call fcn.140011d00
nop
add rsp, 0x300
pop rdi
ret