Function at 0x14005ee40
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1708
call fcn.1400d8050
sub rsp, rax
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rax, [rbp + 0x120]
mov rcx, qword [rbp + 0x1720]
mov rdi, r9
test rcx, rcx
mov r15, r8
mov rbx, rdx
cmovne rax, rcx
xor r14d, r14d
mov qword [rbp + 0x18], rax
mov qword [rax], r14
test rdx, rdx
je 0x14005f799
cmp word [rdx], r14w
je 0x14005f799
test r9, r9
je 0x14005ef05
cmp word [r9], r14w
je 0x14005eefe
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005eec8
test al, 0x10
jne 0x14005ef05
cmp byte [rbp + 0x1710], r14b
je 0x14005eef6
mov qword [rsp + 0x28], r14
lea rdx, str.Parameter_2_invalid.
mov r9d, 9
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rcx, rsi
call fcn.14000f6f0
mov r14d, eax
mov eax, r14d
jmp 0x14005f79e
mov qword [rbp + 0x1708], r14
mov qword [rbp + 0x10], r14
mov r9, r14
mov qword [rbp], rbx
mov rcx, rbx
mov qword [rbp + 8], r14
mov eax, SafeArrayAllocDescriptor
movabs r10, 0xffffffffffffff0
test r15, r15
je 0x14005efbd
lea rdx, str.find
call fcn.1400bea20
test eax, eax
je 0x14005efaa
lea rdx, str.explore
mov rcx, rbx
call fcn.1400bea20
test eax, eax
je 0x14005efaa
lea rdx, str.open
mov rcx, rbx
call fcn.1400bea20
test eax, eax
je 0x14005efaa
lea rdx, [0x1400fa7c0]
mov rcx, rbx
call fcn.1400bea20
test eax, eax
je 0x14005efaa
lea rdx, str.print
mov rcx, rbx
call fcn.1400bea20
test eax, eax
je 0x14005efaa
lea rdx, str.properties
mov rcx, rbx
call fcn.1400bea20
test eax, eax
je 0x14005efaa
mov qword [rbp + 8], r15
mov r9, r14
jmp 0x14005f0ea
mov rcx, r15
mov qword [rbp + 0x10], rbx
mov qword [rbp], rcx
mov r9, rbx
jmp 0x14005f0ed
movzx edx, word [rbx]
mov r8, rbx
test dx, dx
je 0x14005f0ed
nop dword [rax]
lea rcx, [0x1400ffad4]
cmp dx, ax
je 0x14005f001
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14005efd7
movzx edx, word [r8 + 2]
add r8, 2
mov eax, SafeArrayAllocDescriptor
test dx, dx
jne 0x14005efd0
jmp 0x14005f0ea
sub r8, rbx
sar r8, 1
lea rsi, [r8 + r8]
lea rax, [rsi + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14005f01b
mov rcx, r10
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d8050
sub rsp, rcx
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400ba140
mov rdi, rax
mov word [rsi + rax], r14w
cmp word [rax], 0x2a
jne 0x14005f04e
lea r9, [rax + 2]
jmp 0x14005f0c3
lea rdx, str.find
mov rcx, rdi
call fcn.1400bea20
test eax, eax
je 0x14005f0c0
lea rdx, str.explore
mov rcx, rdi
call fcn.1400bea20
test eax, eax
je 0x14005f0c0
lea rdx, str.open
mov rcx, rdi
call fcn.1400bea20
test eax, eax
je 0x14005f0c0
lea rdx, [0x1400fa7c0]
mov rcx, rdi
call fcn.1400bea20
test eax, eax
je 0x14005f0c0
lea rdx, str.print
mov rcx, rdi
call fcn.1400bea20
test eax, eax
je 0x14005f0c0
lea rdx, str.properties
mov rcx, rdi
call fcn.1400bea20
test eax, eax
jne 0x14005f0e0
mov r9, rdi
mov qword [rbp + 0x10], r9
test r9, r9
je 0x14005f0e3
lea rcx, [rbx + 2]
add rcx, rsi
mov rsi, qword [rbp + 0x16f0]
mov qword [rbp], rcx
jmp 0x14005f0ed
mov r9, r14
mov rsi, qword [rbp + 0x16f0]
mov rcx, rbx
cmp byte [rbp + 0x1730], r14b
je 0x14005f171
mov rax, qword [rsi + 0x7b8]
test rax, rax
je 0x14005f108
cmp qword [rax + 0x10], r14
jne 0x14005f12c
mov rax, qword [rsi + 0x7d0]
test rax, rax
je 0x14005f11a
cmp qword [rax + 0x10], r14
jne 0x14005f12c
mov rax, qword [rsi + 0x7e8]
test rax, rax
je 0x14005f171
cmp qword [rax + 0x10], r14
je 0x14005f171
mov al, 1
mov byte [rbp + 0x16f8], al
test r9, r9
je 0x14005f179
cmp byte [rbp + 0x1710], r14b
je 0x14005f91c
mov qword [rsp + 0x28], r14
lea r8, [0x1400f9b70]
mov r9d, 9
mov qword [rsp + 0x20], r14
lea rdx, str.System_verbs_unsupported_with_RunAs.
mov rcx, rsi
call fcn.14000f6f0
jmp 0x14005f79e
xor al, al
mov byte [rbp + 0x16f8], al
mov r13, 0xffffffffffffffff
mov rdi, r13
inc rdi
cmp word [rcx + rdi*2], r14w
jne 0x14005f183
cmp rdi, 0x4001
jb 0x14005f1ce
cmp byte [rbp + 0x1710], r14b
je 0x14005f91c
mov qword [rsp + 0x28], r14
lea r8, [0x1400f9b70]
mov r9d, 9
mov qword [rsp + 0x20], r14
lea rdx, str.String_too_long.
mov rcx, rsi
call fcn.14000f6f0
jmp 0x14005f79e
mov rsi, qword [rbp + 0x1718]
mov r12d, 6
test r9, r9
jne 0x14005f4e3
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp + 0x110], rax
mov eax, 1
movups xmmword [rbp + 0xb0], xmm0
mov dword [rbp + 0xb0], WSAGetLastError
movups xmmword [rbp + 0xe0], xmm0
mov dword [rbp + 0xec], eax
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
test rsi, rsi
je 0x14005f293
cmp word [rsi], r14w
je 0x14005f293
lea rdx, [0x140101130]
mov rcx, rsi
call fcn.1400bea20
test eax, eax
jne 0x14005f257
mov word [rbp + 0xf0], r12w
jmp 0x14005f29a
lea rdx, [0x140100348]
mov rcx, rsi
call fcn.1400bea20
test eax, eax
jne 0x14005f271
mov eax, 3
jmp 0x14005f293
lea rdx, str.Hide
mov rcx, rsi
call fcn.1400bea20
test eax, eax
jne 0x14005f28e
mov word [rbp + 0xf0], r14w
jmp 0x14005f29a
mov eax, 1
mov word [rbp + 0xf0], ax
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x30], rax
movups xmmword [rbp + 0x20], xmm0
test r15, r15
je 0x14005f30c
cmp word [r15], ax
je 0x14005f30c
mov rax, r13
inc rax
cmp word [r15 + rax*2], r14w
jne 0x14005f2b5
add rax, rdi
lea rax, [rax*2 + 0x14]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14005f2dd
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d8050
mov r9, qword [rbp + 0x1700]
lea rdx, str.__s___s
sub rsp, rcx
mov r8, rbx
lea r15, [rsp + 0x60]
mov rcx, r15
call fcn.140006d90
jmp 0x14005f360
lea rax, [rdi*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14005f327
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d8050
sub rsp, rcx
lea r15, [rsp + 0x60]
mov rcx, r15
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14005f350
movzx ebx, byte [rbp + 0x16f8]
test bl, bl
je 0x14005f47e
mov r9, qword [rbp + 0x1708]
xorps xmm0, xmm0
xor eax, eax
mov r10d, 1
mov qword [rbp + 0x190], rax
movzx eax, word [rbp + 0xf0]
movups xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x130], WSAGetLastError
movups xmmword [rbp + 0x160], xmm0
mov dword [rbp + 0x16c], r10d
movups xmmword [rbp + 0x170], xmm0
mov word [rbp + 0x170], ax
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x180], xmm0
test r9, r9
je 0x14005f3dc
cmp word [r9], r14w
jne 0x14005f3df
mov r9, r14
mov rsi, qword [rbp + 0x16f0]
lea rcx, [0x1400f9b70]
mov r8, rcx
mov rax, qword [rsi + 0x7d0]
test rax, rax
je 0x14005f406
mov rax, qword [rax]
test rax, rax
cmovne r8, rax
mov rax, qword [rsi + 0x7e8]
mov rdx, rcx
test rax, rax
je 0x14005f41f
mov rax, qword [rax]
test rax, rax
cmovne rdx, rax
mov rax, qword [rsi + 0x7b8]
test rax, rax
je 0x14005f435
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r9
mov r9d, r10d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x14005f4c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
jmp 0x14005f7d9
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0xb0]
mov rdx, r15
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov rax, qword [rbp + 0x1708]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14005f4db
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14005f4d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x20]
jmp 0x14005f767
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005f4ee
mov r8d, r14d
test al, al
jne 0x14005f7cb
mov r15, qword [rbp + 0x1708]
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov dword [rbp + 0x40], reloc.WSOCK32.dll_WSASetLastError
mov dword [rbp + 0x44], 0x440
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x68], r15
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
test rsi, rsi
je 0x14005f580
cmp word [rsi], r14w
je 0x14005f580
lea rdx, [0x140101130]
mov rcx, rsi
call fcn.1400bea20
test eax, eax
je 0x14005f586
lea rdx, [0x140100348]
mov rcx, rsi
call fcn.1400bea20
test eax, eax
jne 0x14005f566
lea r12d, [rax + 3]
jmp 0x14005f586
lea rdx, str.Hide
mov rcx, rsi
call fcn.1400bea20
test eax, eax
mov r12d, r14d
setne r12b
jmp 0x14005f586
mov r12d, 1
mov rax, qword [rbp + 0x10]
mov dword [rbp + 0x70], r12d
test rax, rax
je 0x14005f5ae
lea rdx, str.properties
mov qword [rbp + 0x50], rax
mov rcx, rax
call fcn.1400bea20
test eax, eax
jne 0x14005f5ae
or dword [rbp + 0x44], 0xc
cmp qword [rbp + 8], r14
jne 0x14005f742
lea rax, [rdi*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14005f5d3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d8050
mov r12, qword [rbp]
sub rsp, rcx
mov rcx, r12
lea rdi, [rsp + 0x60]
mov rdx, rdi
sub rdx, r12
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14005f600
cmp word [rdi], 0x22
lea rbx, [rdi + 2]
jne 0x14005f657
mov edx, SafeArrayAllocDescriptor
mov rcx, rbx
call fcn.1400ba088
test rax, rax
je 0x14005f657
mov word [rax], r14w
mov r12, rbx
movzx ecx, word [rax + 2]
test cx, cx
je 0x14005f746
lea rdi, [rax + 2]
cmp cx, 0x20
jne 0x14005f74a
add rdi, 2
jmp 0x14005f74a
test r15, r15
je 0x14005f665
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, SafeArrayAllocDescriptor
mov rcx, rbx
call fcn.1400ba088
mov rsi, rax
test rax, rax
je 0x14005f714
lea rbx, [rax - 2]
cmp rbx, rdi
jbe 0x14005f6ad
nop word [rax + rax]
movzx edx, word [rbx]
lea rcx, [0x140104dc8]
call fcn.1400ba088
test rax, rax
jne 0x14005f6ad
sub rbx, 2
cmp rbx, rdi
ja 0x14005f690
cmp word [rbx], 0x2e
jne 0x14005f6fb
mov rax, rsi
mov word [rsi], r14w
sub rax, rbx
and rax, 0xfffffffffffffffe
cmp rax, 8
jne 0x14005f6db
mov rdx, rbx
lea rcx, str..exe.bat.com.cmd.hta
call fcn.14009af30
test rax, rax
jne 0x14005f70b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14005f70b
mov eax, SafeArrayAllocDescriptor
lea rcx, [rsi + 2]
mov word [rsi], ax
mov edx, eax
jmp 0x14005f66d
mov eax, SafeArrayAllocDescriptor
lea rcx, [rsi + 2]
mov edx, eax
jmp 0x14005f66d
mov r12, rdi
lea rdi, [rsi + 2]
jmp 0x14005f718
mov rdi, qword [rbp + 8]
test r15, r15
je 0x14005f74a
mov rax, qword [0x14011eb00]
lea rcx, [0x1400f9b70]
test rax, rax
je 0x14005f73a
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x14005f74a
mov r12, qword [rbp]
mov rdi, qword [rbp + 8]
lea rcx, [rbp + 0x40]
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14005f7b2
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x18]
mov qword [rcx], rax
cmp byte [rbp + 0x1728], r14b
je 0x14005f782
mov rax, qword [0x14011c188]
mov dword [rax + 0x64], r14d
cmp qword [rbp + 0x1720], r14
jne 0x14005f799
mov rcx, qword [rcx]
test rcx, rcx
je 0x14005f799
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea rsp, [rbp + 0x16a8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, byte [rbp + 0x16f8]
mov r8d, eax
mov rsi, qword [rbp + 0x16f0]
jmp 0x14005f7e1
movzx ebx, byte [rbp + 0x16f8]
mov rsi, qword [rbp + 0x16f0]
mov rdi, qword [rbp + 8]
mov r12, qword [rbp]
cmp byte [rbp + 0x1728], r14b
je 0x14005f7f5
mov rax, qword [0x14011c188]
mov dword [rax + 0x64], r8d
cmp byte [rbp + 0x1710], r14b
je 0x14005f91c
mov qword [rsp + 0x30], r14
lea rax, [rbp + 0x2a0]
mov dword [rsp + 0x28], 0x1ff
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rbp + 0x10]
test r9, r9
je 0x14005f84e
lea r8, str._nVerb:___s_
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call fcn.14009abe0
jmp 0x14005f856
mov word [rbp + 0x1a0], r14w
lea rcx, [0x1400f9b70]
test rdi, rdi
mov rdx, rcx
mov rax, r13
cmovne rdx, rdi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], r14w
jne 0x14005f870
cmp rax, 0x190
lea r9, [0x1401010f0]
mov r8, rcx
cmova r8, r9
nop
inc r13
cmp word [r12 + r13*2], r14w
jne 0x14005f890
mov qword [rsp + 0x40], r8
lea rax, str.Launch_Error__possibly_related_to_RunAs_:
mov qword [rsp + 0x38], rdx
lea r8, str._s_nAction:____0.400s_s__s_nParams:____0.400s_s_
cmp r13, 0x190
mov edx, 0x800
cmova rcx, r9
test bl, bl
lea r9, str.Failed_attempt_to_launch_program_or_document:
cmovne r9, rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x6a0]
mov qword [rsp + 0x20], r12
call fcn.14009abe0
mov r9d, 9
mov qword [rsp + 0x28], r14
lea r8, [rbp + 0x2a0]
mov qword [rsp + 0x20], r14
lea rdx, [rbp + 0x6a0]
mov rcx, rsi
call fcn.14000f6f0
jmp 0x14005f79e
xor eax, eax
jmp 0x14005f79e