Function at 0x140008e90
Capabilities:
Check if file exists
Execute command
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14006a040]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
movabs rdi, 0xd8ab289ce2cf9863
movabs rbx, 0x531c35716fa23260
movabs r14, 0x23d422b27f102915
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x50], r14
movabs rsi, 0x33b6f0f70d6a4142
movabs r13, 0x4957ac18870fc6e7
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], r13
movabs r15, 0x12986f7e4b730409
movabs r12, 0x662b06f3fd684546
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], r12
test eax, eax
js 0x1400097a4
movabs rax, 0xd8dd28f3e282983f
mov qword [rsp + 0x30], rax
movabs rax, 0x533c35186fd43201
mov qword [rsp + 0x38], rax
movabs rax, 0x23b122c07f732946
mov qword [rsp + 0x40], rax
movabs rax, 0x33e4f0d70d044127
mov qword [rsp + 0x48], rax
movabs rax, 0x4925ac77876cc682
mov qword [rsp + 0x50], rax
movabs rax, 0x3a42d5dfce2d0f00
mov qword [rsp + 0x58], rax
movabs rax, 0x12fd6f0c4b10045a
mov qword [rsp + 0x60], rax
movabs rax, 0x664e06a1fd064523
mov qword [rsp + 0x68], rax
movabs rax, 0xd947dcb6b91d45a8
mov qword [rsp + 0x70], rax
movabs rax, 0x195b3dd7660b134d
mov qword [rsp + 0x78], rax
movabs rax, 0xa8bac4da32814025
mov qword [rbp - 0x80], rax
movabs rcx, 0xdf698aff565a246a
mov qword [rbp - 0x78], rcx
movabs rax, 0x3a1ed5adce480f64
mov qword [rbp + 0x68], rax
movabs rax, 0xd923dcc4b97245cb
mov qword [rbp + 0x80], rax
movabs rax, 0x193e3df966791328
mov qword [rbp + 0x88], rax
movabs rax, 0xa8bac4da32e4405d
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rcx
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [rsp + 0x40]
xorps xmm1, xmmword [rbp + 0x50]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
xorps xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [rbp - 0x80]
xorps xmm1, xmmword [rbp + 0x90]
movdqa xmmword [rbp - 0x80], xmm1
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x40]
call fcn.14000d230
nop
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.14000d980
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x140009114
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000910f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000910f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140057b20
movdqa xmm0, xmmword [0x140061190]
movdqu xmmword [rbp + 0x50], xmm0
xor eax, eax
mov word [rbp + 0x40], ax
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009148
test al, 0x10
jne 0x140009148
mov al, 1
jmp 0x14000914a
xor al, al
test al, al
je 0x1400093be
movabs rax, 0xd8ab289ce2cf9841
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rbx
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], rbx
movdqa xmm0, xmmword [rbp - 0x10]
xorps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp - 0x10], xmm0
movabs rax, 0xd8d928fde2bb9810
mov qword [rbp + 0xa0], rax
movabs rax, 0x533e35536f823214
mov qword [rbp + 0xa8], rax
movabs rax, 0x23d422b27f322935
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rsi
mov qword [rbp], rdi
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], rsi
movdqa xmm0, xmmword [rbp + 0xa0]
xorps xmm0, xmmword [rbp]
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [rbp + 0xb0]
xorps xmm1, xmmword [rbp + 0x10]
movdqa xmmword [rbp + 0xb0], xmm1
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.14000da50
nop
lea r8, [rbp - 0x10]
mov rdx, rax
lea rcx, [rbp]
call fcn.14000d980
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140009261
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000925c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000925c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140057b20
movdqa xmm0, xmmword [0x140061190]
movdqu xmmword [rsp + 0x40], xmm0
xor eax, eax
mov word [rsp + 0x30], ax
lea rcx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rcx, qword [rbp]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
test eax, eax
jne 0x140009295
mov bl, 1
jmp 0x140009372
movabs rax, 0xd8c728f5e2ae9825
mov qword [rbp + 0x40], rax
movabs rax, 0x536835516fc63205
mov qword [rbp + 0x48], rax
movabs rax, 0x23a022c17f30297a
mov qword [rbp + 0x50], rax
movabs rax, 0x3396f0830d184123
mov qword [rbp + 0x58], rax
movabs rax, 0x4933ac768766c690
mov qword [rbp + 0x60], rax
movabs rax, 0x3a1ed58cce3f0f0b
mov qword [rbp + 0x68], rax
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], rbx
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], r13
movabs rax, 0x3a1ed5adce480f64
mov qword [rbp + 0xc8], rax
movdqa xmm0, xmmword [rbp + 0x40]
xorps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [rbp + 0x50]
xorps xmm1, xmmword [rbp + 0xb0]
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmm0, xmmword [rbp + 0x60]
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x60], xmm0
lea rdx, [rbp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14000dbd0
lea rdx, [0x14000ddb0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor bl, bl
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x140009759
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400093b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400093b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140057b20
jmp 0x140009759
movabs rax, 0xd8ca28f9e2a39833
mov qword [rsp + 0x30], rax
movabs rax, 0x537835516fc73213
mov qword [rsp + 0x38], rax
movabs rax, 0x23b822dc7f67297a
mov qword [rsp + 0x40], rax
movabs rax, 0x3396f0930d0b412d
mov qword [rsp + 0x48], rax
movabs rax, 0x4977ac7c8761c686
mov qword [rsp + 0x50], rax
movabs rax, 0x3a6ad5dece260f0d
mov qword [rsp + 0x58], rax
movabs rax, 0x12b86f124b1f0468
mov qword [rsp + 0x60], rax
movabs rax, 0x666a0685fd07450b
mov qword [rsp + 0x68], rax
movabs rax, 0xd963dce4b93b459d
mov qword [rsp + 0x70], rax
movabs rax, 0x19483d9666141308
mov qword [rsp + 0x78], rax
movabs rax, 0xa894c4b33292403c
mov qword [rbp - 0x80], rax
movabs rax, 0xdf468a9256352409
mov qword [rbp - 0x78], rax
movabs rax, 0x8cf98972b2f217fc
mov qword [rbp - 0x70], rax
movabs rax, 0xc1b16fd81ddaab49
mov qword [rbp - 0x68], rax
movabs rax, 0xe3b2db0946840834
mov qword [rbp - 0x60], rax
movabs rax, 0x91c370949271e6a
mov qword [rbp - 0x58], rax
movabs rax, 0xb5cf832a3718df11
mov qword [rbp - 0x50], rax
movabs rax, 0x31e54381e3ffef82
mov qword [rbp - 0x48], rax
movabs rax, 0x9d7b86c27a9d784a
mov qword [rbp - 0x40], rax
movabs rax, 0xea324007b2dde433
mov qword [rbp - 0x38], rax
movabs rax, 0x6e912ebc6f8f9398
mov qword [rbp - 0x30], rax
movabs rax, 0x2ab3b3854f2ca9a
mov qword [rbp - 0x28], rax
movabs rax, 0xc61c812e771b1eb7
mov qword [rbp - 0x20], rax
movabs rcx, 0x1871e423a6030cd6
mov qword [rbp - 0x18], rcx
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xd8], rbx
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], r13
movabs rax, 0x3a1ed5adce480f64
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], r15
mov qword [rbp + 0x108], r12
movabs rax, 0xd923dcc4b97245cb
mov qword [rbp + 0x110], rax
movabs rax, 0x193e3df966791328
mov qword [rbp + 0x118], rax
movabs rax, 0xa8bac4da32e4405d
mov qword [rbp + 0x120], rax
movabs rax, 0xdf698aff565a246a
mov qword [rbp + 0x128], rax
movabs rax, 0x8c9c8900b291178f
mov qword [rbp + 0x130], rax
movabs rax, 0xc1c36ff51db4ab2c
mov qword [rbp + 0x138], rax
movabs rax, 0xe3c0db6646e70851
mov qword [rbp + 0x140], rax
movabs rax, 0x93c377b49421e0e
mov qword [rbp + 0x148], rax
movabs rax, 0xb5a0834c377ddf73
mov qword [rbp + 0x150], rax
movabs rax, 0x319c43a1e39aeff0
mov qword [rbp + 0x158], rax
movabs rax, 0x9d1886e27ae87825
mov qword [rbp + 0x160], rax
movabs rax, 0xea514027b2b3e452
mov qword [rbp + 0x168], rax
movabs rax, 0x6ef82ec86fe193f7
mov qword [rbp + 0x170], rax
movabs rax, 0x2853b5d5487caf4
mov qword [rbp + 0x178], rax
movabs rax, 0xc61c812e77351e99
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rcx
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rbp + 0xd0]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [rsp + 0x40]
xorps xmm1, xmmword [rbp + 0xe0]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp + 0xf0]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
xorps xmm1, xmmword [rbp + 0x100]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rbp + 0x110]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [rbp - 0x80]
xorps xmm1, xmmword [rbp + 0x120]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmmword [rbp - 0x70]
xorps xmm0, xmmword [rbp + 0x130]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [rbp - 0x60]
xorps xmm1, xmmword [rbp + 0x140]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [rbp - 0x50]
xorps xmm0, xmmword [rbp + 0x150]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [rbp - 0x40]
xorps xmm1, xmmword [rbp + 0x160]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm0, xmmword [rbp - 0x30]
xorps xmm0, xmmword [rbp + 0x170]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [rbp - 0x20]
xorps xmm1, xmmword [rbp + 0x180]
movdqa xmmword [rbp - 0x20], xmm1
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14000dbd0
lea rdx, [0x14000ddb0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor bl, bl
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x14000979c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009797
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009797
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140057b20
movzx eax, bl
jmp 0x140009879
movabs rax, 0xd8c728f5e2ae9825
mov qword [rsp + 0x30], rax
movabs rax, 0x536835516fc63205
mov qword [rsp + 0x38], rax
movabs rax, 0x23b122c07f30297a
mov qword [rsp + 0x40], rax
movabs rax, 0x33d3f09e0d184136
mov qword [rsp + 0x48], rax
movabs rax, 0x4927ac38876ac691
mov qword [rsp + 0x50], rax
movabs rax, 0x3a30d5c5ce3c0f05
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
movabs rax, 0x3a1ed5adce480f64
mov qword [rbp + 0x68], rax
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [rsp + 0x40]
xorps xmm1, xmmword [rbp + 0x50]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
xorps xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rsp + 0x60], xmm1
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14000dbd0
lea rdx, [0x14000ddb0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140057b00
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret