Function at 0x140138660
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
xor esi, esi
mov r15, r8
mov qword [rbp + 0x68], rsi
mov rbx, rcx
mov r13d, esi
mov r12d, esi
test rdx, rdx
je 0x1401386a8
mov rcx, rdx
call sym.SystemInformer.exe_QiCreateString
mov r13, rax
mov r14d, 0xffffffff
test rbx, rbx
je 0x1401386c7
mov rcx, rbx
call sym.SystemInformer.exe_QiCreateString
mov rdi, rax
mov qword [rbp + 0x68], rax
jmp 0x140138912
lea r9, [rbp + 0x68]
mov rcx, r13
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x60]
call sym.SystemInformer.exe_QiParseCommandLineFuzzy
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x1401386ea
cmp qword [rdi], rsi
jne 0x140138760
mov r15, qword [rsp + 0x60]
test r15, r15
jne 0x1401386fe
call sym.SystemInformer.exe_QiReferenceEmptyString
mov rbx, rax
jmp 0x140138737
mov rdx, qword [0x1402c4fb8]
lea rcx, [r15 + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov rdx, qword [rsp + 0x68]
mov rbx, rax
mov qword [rax], r15
add rax, 0x10
mov qword [rbx + 8], rax
mov word [r15 + rax], si
test rdx, rdx
je 0x140138737
mov rcx, qword [rbx + 8]
mov r8, r15
call fcn.1402074d0
mov rcx, rdi
mov qword [rbp + 0x68], rbx
mov rdi, rbx
test rcx, rcx
je 0x140138765
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14013875c
call fcn.14013fb00
mov rdi, qword [rbp + 0x68]
mov r15, qword [rsp + 0x60]
mov rax, qword [0x1402c0850]
mov rdx, qword [0x1402c4fb8]
lea rbx, ds:[r15 + rax*2]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov rcx, rax
mov qword [rbp + 0x60], rax
mov qword [rax], rbx
add rax, 0x10
mov qword [rcx + 8], rax
mov word [rbx + rax], si
mov rbx, qword [rcx + 8]
mov r8, qword [0x1402c0850]
mov rcx, rbx
mov rdx, qword [0x1402c0858]
call fcn.1402074d0
add rbx, qword [0x1402c0850]
mov r8, r15
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.1402074d0
mov r8, qword [0x1402c0850]
lea rcx, ds:[r15 + rbx]
mov rdx, qword [0x1402c0858]
call fcn.1402074d0
mov rcx, qword [rbp - 0x70]
mov r15, qword [rbp + 0x60]
mov rax, r15
test rcx, rcx
je 0x140138892
mov rbx, qword [r15]
add rbx, qword [0x1402c0880]
mov rdx, qword [0x1402c4fb8]
add rbx, rcx
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov rcx, rax
mov qword [rbp - 0x78], rax
mov qword [rax], rbx
add rax, 0x10
mov qword [rcx + 8], rax
mov word [rbx + rax], si
mov rbx, qword [rcx + 8]
mov r8, qword [r15]
mov rcx, rbx
mov rdx, qword [r15 + 8]
call fcn.1402074d0
add rbx, qword [r15]
mov r8, qword [0x1402c0880]
mov rcx, rbx
mov rdx, qword [0x1402c0888]
call fcn.1402074d0
add rbx, qword [0x1402c0880]
mov r8, qword [rbp - 0x70]
mov rcx, rbx
mov rdx, qword [rbp - 0x68]
call fcn.1402074d0
lea rcx, ds:[r15 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14013888a
call fcn.14013fb00
mov rax, qword [rbp - 0x78]
mov rdi, qword [rbp + 0x68]
mov rcx, r13
mov r13, rax
test rcx, rcx
je 0x1401388b7
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401388b3
call fcn.14013fb00
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x14013890e
mov rcx, qword [rdi + 8]
call sym.SystemInformer.exe_QiDoesFileExistWin32
test al, al
jne 0x14013890e
mov rcx, qword [rdi + 8]
lea rdx, str..exe
call fcn.14013d5c0
mov rcx, rdi
test rax, rax
je 0x140138927
mov rdi, rax
mov qword [rbp + 0x68], rax
test rcx, rcx
je 0x14013890e
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14013890a
call fcn.14013fb00
mov rdi, qword [rbp + 0x68]
mov r15, qword [rbp + 0x70]
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x140138930
mov rcx, rax
call sym.SystemInformer.exe_QiCreateString
jmp 0x140138945
mov rdi, rsi
mov qword [rbp + 0x68], rsi
jmp 0x1401388ec
test rdi, rdi
je 0x140138950
cmp qword [rdi], rsi
je 0x140138950
mov rcx, rdi
call sym.SystemInformer.exe_QiGetBaseDirectory
mov r12, rax
nop dword [rax + rax]
mov r8d, dword [rbp + 0x88]
mov ecx, r8d
mov r11, qword [rbp + 0x80]
shr ecx, 5
and ecx, 1
mov edx, ecx
or edx, 2
test r8b, 0x40
cmove edx, ecx
mov ecx, edx
or ecx, 4
test r8b, 4
cmove ecx, edx
mov edx, ecx
or edx, 0x10
test r8b, 0x10
cmove edx, ecx
mov ecx, edx
bts ecx, 0xa
test r8b, 2
cmove ecx, edx
mov edx, ecx
bts edx, 0x13
test r8b, 0x80
cmove edx, ecx
mov ecx, edx
bts ecx, 0x18
test r8b, 8
cmove ecx, edx
mov ebx, ecx
bts ebx, 0x1a
bt r8d, 8
cmovae ebx, ecx
test r11, r11
jne 0x1401389ec
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x68
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp + 4], eax
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
mov r10, qword [rbp + 0x90]
test r10, r10
je 0x140138a6c
test r12, r12
je 0x140138a04
mov r9, qword [r12 + 8]
jmp 0x140138a07
mov r9, rsi
test r13, r13
je 0x140138a12
mov rcx, qword [r13 + 8]
jmp 0x140138a15
mov rcx, rsi
test rdi, rdi
je 0x140138a22
mov rdx, qword ds:[rdi + 8]
jmp 0x140138a25
mov rdx, rsi
test r11, r11
lea rax, [rbp - 0x60]
cmovne rax, r11
and r8d, 1
lea r11, [rsp + 0x70]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r9
xor r9d, r9d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r8d
mov r8, rcx
mov rcx, r10
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x140138ad9
test r12, r12
je 0x140138a78
mov r9, qword [r12 + 8]
jmp 0x140138a7b
mov r9, rsi
nop dword [rax + rax]
test r13, r13
je 0x140138a8b
mov rdx, qword [r13 + 8]
jmp 0x140138a8e
mov rdx, rsi
test rdi, rdi
je 0x140138a99
mov rcx, qword [rdi + 8]
jmp 0x140138a9c
mov rcx, rsi
test r11, r11
lea r10, [rsp + 0x70]
mov qword [rsp + 0x48], r10
lea rax, [rbp - 0x60]
cmovne rax, r11
and r8d, 1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140138aef
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_QiDosErrorToNtStatus
mov esi, eax
test rdi, rdi
je 0x140138b0a
lea rcx, [rdi - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140138b0a
call fcn.14013fb00
test r13, r13
je 0x140138b2a
lea rcx, ds:[r13 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140138b2a
call fcn.14013fb00
test r12, r12
je 0x140138b4b
lea rcx, ds:[r12 - 0x10]
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x140138b4b
call fcn.14013fb00
test esi, esi
js 0x140138ba4
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x140138b68
mov eax, dword [rbp - 0x80]
mov qword [rcx], rax
mov eax, dword [rbp - 0x7c]
mov qword [rcx + 8], rax
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x140138b7e
mov rax, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x140138b8e
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140138b8e
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140138bb4
mov rax, qword [rsp + 0x78]
mov qword [rcx], rax
jmp 0x140138bc6
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140138bb4
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140138bc6
nop
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret