Function at 0x140065f10
Capabilities:
Create process on windows
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1690
call fcn.1400f7000
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rsi, rcx
mov qword [rbp + 0x1690], rbx
mov rbx, rdx
lea rcx, [rbp + 0xc0]
mov rdx, qword [rbp + 0x16b0]
mov rax, r9
test rdx, rdx
mov r12, r8
mov r13, 0xffffffffffffffff
cmovne rcx, rdx
xor r15d, r15d
mov qword [rbp + 8], rcx
mov qword [rcx], r15
mov rcx, qword [rbp + 0x16c8]
test rcx, rcx
je 0x140065f95
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, r13
xor edx, edx
call fcn.1400dc860
mov rax, qword [rbp + 0x1698]
test rbx, rbx
je 0x140066548
movzx edx, word [rbx]
test dx, dx
je 0x140066548
test rax, rax
je 0x140065fbe
cmp word [rax], r15w
cmove rax, r15
mov qword [rbp + 0x1698], rax
mov qword [rbp + 0x18], r15
mov r9, r15
mov qword [rbp + 0x10], rbx
mov r14, rbx
mov qword [rbp + 0x20], r15
movabs r10, 0xffffffffffffff0
mov r11d, SafeArrayAllocDescriptor
test r12, r12
je 0x140066080
lea rdx, str.find
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14006606d
lea rdx, str.explore
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14006606d
lea rdx, str.open
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14006606d
lea rdx, str.edit
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14006606d
lea rdx, str.print
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14006606d
lea rdx, str.properties
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14006606d
mov qword [rbp + 0x20], r12
mov r9, r15
jmp 0x1400661b6
mov r9, rbx
mov qword [rbp + 0x18], rbx
mov r14, r12
mov qword [rbp + 0x10], r12
jmp 0x1400661b6
mov r8, rbx
nop dword [rax]
nop word [rax + rax]
lea rcx, [0x140110770]
movzx eax, r11w
nop dword [rax + rax]
cmp dx, ax
je 0x1400660c5
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400660a0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140066090
jmp 0x1400661b6
test r8, r8
je 0x1400661b6
sub r8, rbx
sar r8, 1
lea rsi, [r8 + r8]
lea rax, [rsi + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400660e8
mov rcx, r10
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f7000
sub rsp, rcx
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov rdi, rax
mov word [rsi + rax], r15w
cmp word [rax], 0x2a
jne 0x14006611b
lea r9, [rax + 2]
jmp 0x140066196
lea rdx, str.find
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140066193
lea rdx, str.explore
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140066193
lea rdx, str.open
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140066193
lea rdx, str.edit
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140066193
lea rdx, str.print
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140066193
lea rdx, str.properties
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400661ac
mov r9, rdi
mov qword [rbp + 0x18], r9
test r9, r9
je 0x1400661af
lea r14, [rbx + 2]
add r14, rsi
mov qword [rbp + 0x10], r14
jmp 0x1400661af
mov r9, r15
mov rsi, qword [rbp + 0x1680]
mov eax, r15d
mov byte [rbp], r15b
mov dword [rbp + 0x28], eax
cmp byte [rbp + 0x16c0], al
je 0x140066233
mov rcx, qword [rsi + 0xc10]
test rcx, rcx
je 0x1400661da
cmp qword [rcx + 0x10], rax
jne 0x1400661fe
mov rcx, qword [rsi + 0xc28]
test rcx, rcx
je 0x1400661ec
cmp qword [rcx + 0x10], rax
jne 0x1400661fe
mov rcx, qword [rsi + 0xc40]
test rcx, rcx
je 0x140066233
cmp qword [rcx + 0x10], rax
je 0x140066233
mov byte [rbp + 0x1688], 1
test r9, r9
je 0x140066239
cmp byte [rbp + 0x16a0], al
je 0x1400669cb
lea r8, [0x1400f97e4]
mov rcx, rsi
lea rdx, str.System_verbs_unsupported_with_RunAs.
call fcn.140064aa0
xor eax, eax
jmp 0x14006654d
mov byte [rbp + 0x1688], al
mov rdi, r13
nop dword [rax]
inc rdi
cmp word [r14 + rdi*2], ax
jne 0x140066240
cmp rdi, 0x4001
jb 0x14006627c
cmp byte [rbp + 0x16a0], al
je 0x1400669cb
lea r8, [0x1400f97e4]
mov rcx, rsi
lea rdx, str.String_too_long.
call fcn.140064aa0
xor eax, eax
jmp 0x14006654d
mov rsi, qword [rbp + 0x16a8]
mov r15d, 6
test r9, r9
jne 0x14006656f
mov qword [rbp + 0x130], rax
xorps xmm0, xmm0
mov r14d, 1
movups xmmword [rbp + 0xd0], xmm0
mov dword [rbp + 0xd0], WSAGetLastError
movups xmmword [rbp + 0x100], xmm0
mov dword [rbp + 0x10c], r14d
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
test rsi, rsi
je 0x140066352
cmp word [rsi], ax
je 0x140066352
lea rdx, [0x140112120]
mov rcx, rsi
call fcn.1400d6b70
test rax, rax
je 0x140066308
movzx ecx, r15w
mov word [rbp + 0x110], cx
jmp 0x14006635a
lea rdx, [0x140112128]
mov rcx, rsi
call fcn.1400d6b70
test rax, rax
je 0x14006632a
mov ecx, 3
mov word [rbp + 0x110], cx
jmp 0x14006635a
lea rdx, str.HIDE
mov rcx, rsi
call fcn.1400d6b70
test rax, rax
movzx ecx, r14w
mov eax, 0
cmovne cx, ax
mov word [rbp + 0x110], cx
jmp 0x14006635a
mov word [rbp + 0x110], r14w
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x40], rax
movups xmmword [rbp + 0x30], xmm0
test r12, r12
je 0x1400663d4
cmp word [r12], ax
je 0x1400663d4
mov rax, r13
nop word [rax + rax]
inc rax
cmp word [r12 + rax*2], 0
jne 0x140066380
add rax, rdi
lea rax, [rax*2 + 0x14]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400663a9
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f7000
sub rsp, rcx
lea rdx, str._s__s
mov r9, r12
mov r8, rbx
lea r14, [rsp + 0x50]
mov rcx, r14
call fcn.140007350
jmp 0x140066420
lea rax, [rdi*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400663ef
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f7000
sub rsp, rcx
lea r14, [rsp + 0x50]
mov rcx, r14
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
mov word [rbx + rcx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140066410
movzx ebx, byte [rbp + 0x1688]
mov rdx, r14
mov r12, qword [rbp + 0x1698]
test bl, bl
je 0x1400664a2
movzx r9d, byte [rbp + 0x16a0]
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x1680]
mov r8, r12
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x40], rax
lea rax, [rbp]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x16c8]
mov qword [rsp + 0x28], rax
movzx eax, word [rbp + 0x110]
mov word [rsp + 0x20], ax
call fcn.14009a2c0
test eax, eax
je 0x1400669cb
cmp byte [rbp], 0
jne 0x140066515
mov eax, dword [rbp + 0x28]
mov r14, qword [rbp + 0x10]
jmp 0x14006657d
lea rax, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0xd0]
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140066567
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400664f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 8]
mov qword [rcx], rax
mov rax, qword [rbp + 0x16c8]
test rax, rax
je 0x140066519
mov edx, dword [rbp + 0x40]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rax
call fcn.1400015a0
mov rcx, qword [rbp + 8]
cmp byte [rbp + 0x16b8], 0
je 0x140066530
mov rax, qword [0x14012f240]
mov dword [rax + 0x40], 0
cmp qword [rbp + 0x16b0], 0
jne 0x140066548
mov rcx, qword [rcx]
test rcx, rcx
je 0x140066548
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rbp + 0x1690]
lea rsp, [rbp + 0x1640]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140066585
mov r12, qword [rbp + 0x1698]
movzx ebx, byte [rbp + 0x1688]
test bl, bl
jne 0x14006689f
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov dword [rbp + 0x50], reloc.WSOCK32.dll_WSASetLastError
mov dword [rbp + 0x54], 0x440
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x78], r12
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
test rsi, rsi
je 0x140066628
cmp word [rsi], 0
je 0x140066628
lea rdx, [0x140112120]
mov rcx, rsi
call fcn.1400d6b70
test rax, rax
jne 0x14006661f
lea rdx, [0x140112128]
mov rcx, rsi
call fcn.1400d6b70
test rax, rax
je 0x140066604
mov r15d, 3
mov dword [rbp + 0x80], r15d
jmp 0x140066632
lea rdx, str.HIDE
mov rcx, rsi
call fcn.1400d6b70
xor ecx, ecx
test rax, rax
mov r15d, ecx
sete r15b
mov dword [rbp + 0x80], r15d
jmp 0x140066632
mov dword [rbp + 0x80], 1
mov r15, qword [rbp + 0x18]
test r15, r15
je 0x140066657
lea rdx, str.properties
mov qword [rbp + 0x60], r15
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140066657
or dword [rbp + 0x54], 0xc
cmp qword [rbp + 0x20], 0
jne 0x14006684f
lea rax, [rdi*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14006667d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f7000
sub rsp, rcx
mov rcx, qword [rbp + 0x10]
lea rdi, [rsp + 0x50]
mov rdx, rdi
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400666a0
cmp word [rdi], 0x22
jne 0x1400666ff
mov edx, SafeArrayAllocDescriptor
lea rcx, [rdi + 2]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1400666ff
xor ecx, ecx
lea r14, [rdi + 2]
mov word [rax], cx
movzx ecx, word [rax + 2]
test cx, cx
je 0x1400667f1
lea rbx, [rax + 2]
mov qword [rbp + 0x20], rbx
cmp cx, 0x20
jne 0x1400667f1
add rbx, 2
mov qword [rbp + 0x20], rbx
jmp 0x1400667f1
test r12, r12
je 0x14006670d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r14d, SafeArrayAllocDescriptor
lea rcx, [rdi + 2]
mov edx, r14d
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rsi, rax
test rax, rax
je 0x1400667c5
nop dword [rax]
lea rbx, [rsi - 2]
cmp rbx, rdi
jbe 0x14006675e
nop dword [rax]
movzx edx, word [rbx]
lea rcx, [0x140118258]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
jne 0x14006675e
sub rbx, 2
cmp rbx, rdi
ja 0x140066740
cmp word [rbx], 0x2e
jne 0x14006679e
xor eax, eax
mov word [rsi], ax
mov rax, rsi
sub rax, rbx
and rax, 0xfffffffffffffffe
cmp rax, 8
jne 0x14006678d
mov rdx, rbx
lea rcx, str..exe.bat.com.cmd.hta
call fcn.1400d6b70
test rax, rax
jne 0x1400667b9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400667b9
mov word [rsi], r14w
mov edx, r14d
lea rcx, [rsi + 2]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rsi, rax
test rax, rax
jne 0x140066730
jmp 0x1400667c5
lea rax, [rsi + 2]
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x20], rax
test r12, r12
je 0x1400667ed
mov rax, qword [0x140131a50]
lea rcx, [0x1400f98c4]
test rax, rax
je 0x1400667e7
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r14, qword [rbp + 0x10]
movzx ebx, byte [rbp + 0x1688]
mov rdi, qword [rbp + 0x20]
lea rcx, [rbp + 0x50]
mov qword [rbp + 0x70], rdi
mov qword [rbp + 0x68], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140066897
mov eax, dword [0x140138bd0]
test al, 1
jne 0x140066855
or eax, 1
lea rcx, str.kernel32.dll
mov dword [0x140138bd0], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetProcessId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140138bd8], rax
jmp 0x14006685c
mov r14, qword [rbp + 0x10]
jmp 0x1400667f8
mov rax, qword [0x140138bd8]
mov rcx, qword [rbp + 0xb8]
mov rdx, qword [rbp + 8]
mov qword [rdx], rcx
test rcx, rcx
je 0x14006688f
mov rbx, qword [rbp + 0x16c8]
test rbx, rbx
je 0x14006688f
test rax, rax
je 0x14006688f
call rax
mov edx, eax
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
jmp 0x140066510
mov rcx, rdx
jmp 0x140066519
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400668a7
mov r15, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x20]
cmp byte [rbp + 0x16b8], 0
je 0x1400668ba
mov rcx, qword [0x14012f240]
mov dword [rcx + 0x40], eax
cmp byte [rbp + 0x16a0], 0
je 0x1400669cb
lea rcx, [rbp + 0x240]
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x1ff
mov r8d, eax
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test r15, r15
je 0x140066917
mov r9, r15
lea r8, str._nVerb:___s_
mov edx, 0x80
lea rcx, [rbp + 0x140]
call fcn.1400d6690
jmp 0x14006691e
mov word [rbp + 0x140], si
lea rcx, [0x1400f97e4]
test rdi, rdi
mov rdx, rcx
mov rax, r13
cmovne rdx, rdi
inc rax
cmp word [rdx + rax*2], si
jne 0x140066932
cmp rax, 0x190
lea r9, [0x140111220]
mov r8, rcx
cmova r8, r9
nop
inc r13
cmp word [r14 + r13*2], si
jne 0x140066950
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 + 0x140]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x640]
mov qword [rsp + 0x20], r14
call fcn.1400d6690
mov rcx, qword [rbp + 0x1680]
lea r8, [rbp + 0x240]
lea rdx, [rbp + 0x640]
call fcn.140064aa0
xor eax, eax
jmp 0x14006654d