Function at 0x140001730
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
lea rdx, str.This_program_will_download_a_file_from_the_Internet._Do_you_want_to_continue___Y_N_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002cb0
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
call fcn.140002ed0
movzx eax, word [rsp + 0x30]
sub ax, 0x59
mov esi, 0xffdf
test si, ax
je 0x1400017ba
lea rdx, str.Operation_cancelled_by_user.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002cb0
mov rcx, rax
lea rdx, [0x140002e90]
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]
jmp 0x1400019bd
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x50]
call fcn.140001290
mov rbx, qword [rbp - 0x50]
test al, al
je 0x14000195d
lea rdx, [rbp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.tempfile.exe
mov edx, 0x104
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x30]
call fcn.140002710
nop
mov r8, qword [rbp - 0x48]
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x28]
call fcn.140002bc0
test rax, rax
jne 0x140001868
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, str.File_downloaded_and_temporarily_saved.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002cb0
mov rcx, rax
lea rdx, [0x140002e90]
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]
lea rdx, str.Do_you_want_to_execute_the_downloaded_file_as_administrator___Y_N_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002cb0
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
call fcn.140002ed0
movzx eax, word [rsp + 0x30]
sub ax, 0x59
test si, ax
je 0x1400018c6
lea rdx, str.Execution_cancelled_by_user.
jmp 0x140001935
mov dword [rsp + 0x40], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x5c], rax
mov dword [rbp - 0x54], eax
lea rax, str.runas
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140001952
lea rdx, str.Failed_to_execute_as_administrator.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002cb0
lea rdx, [0x140002e90]
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]
nop
lea rcx, [rbp - 0x30]
call fcn.1400019f0
jmp 0x140001981
lea rdx, str.Failed_to_download_the_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002cb0
mov rcx, rax
lea rdx, [0x140002e90]
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]
nop
test rbx, rbx
je 0x1400019bd
mov rdx, qword [rbp - 0x40]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400019b5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14000357c
xor eax, eax
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140003520
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret