Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable
Query or enumerate registry value
Shutdown system

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 - 0x630]
sub rsp, 0x730
mov rax, qword [0x14006b008]
xor rax, rsp
mov qword [rbp + 0x620], rax
xor ebx, ebx
mov dword [rsp + 0x5c], 0x44
xor edx, edx
mov dword [rsp + 0x58], ebx
mov r8d, 0x208
mov dword [rsp + 0x48], ebx
lea rcx, [rbp + 0x200]
mov qword [rsp + 0x60], rbx
mov r14d, ebx
mov dword [rsp + 0x4c], ebx
mov r13d, ebx
mov r12d, ebx
mov esi, ebx
mov r15d, ebx
call fcn.140008710
mov r8d, 0x104
lea rdx, [rbp + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [rbx + 1]
test eax, eax
je 0x1400011cd
xor edx, edx
lea r8d, [rbx + 0x5c]
lea rcx, [rbp + 0x200]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov r9, rax
test rax, rax
je 0x1400011cd
lea rax, [rbp + 0x200]
mov edx, 0x104
lea rcx, [r9 + 2]
sub rcx, rax
lea r8, str.certificatevalidation.dll
sar rcx, 1
sub edx, ecx
lea rcx, [r9 + 2]
call fcn.140004790
test eax, eax
js 0x1400011cd
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400011d2
mov edx, dword [rsp + 0x5c]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400011d2
lea r9, [rsp + 0x5c]
mov r8, rax
xor edx, edx
lea ecx, [rbx + 0x16]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1400011d2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400011d2
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x4c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000117e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400011d2
mov edx, dword [rsp + 0x4c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x1400011d2
mov r9d, dword [rsp + 0x4c]
lea rax, [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
mov r8, r15
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400011d2
mov rcx, qword [r15]
mov rdx, rsi
mov dword [rsp + 0x40], edi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov r14d, eax
jmp 0x1400011d6
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x40], ebx
test rsi, rsi
je 0x1400011e4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x1400011f2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001202
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], ebx
je 0x140001217
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x14000121a
mov esi, edi
jmp 0x14000121c
mov rax, rbx
mov esi, ebx
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
mov qword [rsp + 0x50], rax
test r15, r15
mov eax, ebx
cmovne eax, esi
test eax, eax
je 0x14000176b
mov rcx, qword [r15]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000176b
cmp dword [rsp + 0x58], edi
jle 0x1400012e8
lea rsi, [r15 + 8]
mov r15d, edi
nop dword [rax]
mov rcx, qword [rsi]
lea rdx, [0x140054b94]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, qword [rsi]
lea rdx, [0x140054c94]
test eax, eax
cmove r13d, edi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, qword [rsi]
lea rdx, [0x140055004]
test eax, eax
cmove r14d, edi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, qword [rsi]
lea rdx, [0x140055094]
test eax, eax
cmove r12d, edi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
lea rsi, [rsi + 8]
cmove ebx, edi
inc r15d
cmp r15d, dword [rsp + 0x58]
jl 0x140001270
mov r15, qword [rsp + 0x50]
mov dword [rsp + 0x48], ebx
mov ebx, 0
test r13d, r13d
jne 0x1400012ff
mov rcx, qword [rsp + 0x68]
call fcn.1400042a0
test eax, eax
je 0x14000176b
test r13d, r13d
je 0x140001338
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov edx, r14d
xor ecx, ecx
call fcn.140003af0
mov esi, eax
test eax, eax
je 0x14000176b
test r12d, r12d
jne 0x140001330
cmp dword [rsp + 0x40], r12d
jne 0x140001330
mov r12d, ebx
jmp 0x1400015d0
mov r12d, edi
jmp 0x1400015d0
cmp dword [rsp + 0x48], 0
je 0x140001350
mov edx, r14d
xor ecx, ecx
call fcn.140003410
mov esi, eax
jmp 0x1400015d0
xor edx, edx
lea rcx, [rbp + 0x410]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x208
call fcn.140008710
mov edx, 0x104
lea rcx, [rbp + 0x410]
call fcn.140001c10
test eax, eax
je 0x1400015a9
mov edx, 0x5c
lea rcx, [rbp + 0x410]
mov r8d, 0x104
call qword [sym.imp.SHLWAPI.dll_StrChrNW]
mov rcx, rax
test rax, rax
je 0x1400015a9
lea rdx, [rbp + 0x410]
mov r8d, 0x104
sub rax, rdx
add rcx, 2
add rax, 2
mov edx, 0x5c
sar rax, 1
sub r8d, eax
call qword [sym.imp.SHLWAPI.dll_StrChrNW]
test rax, rax
je 0x1400015a9
mov r8d, 0x104
mov word [rax], bx
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400015a9
mov edx, 0x5c
lea rcx, [rbp - 0x10]
mov r8d, 0x104
call qword [sym.imp.SHLWAPI.dll_StrChrNW]
mov rcx, rax
test rax, rax
je 0x1400015a9
lea rdx, [rbp - 0x10]
mov r8d, 0x104
sub rax, rdx
add rcx, 2
add rax, 2
mov edx, 0x5c
sar rax, 1
sub r8d, eax
call qword [sym.imp.SHLWAPI.dll_StrChrNW]
test rax, rax
je 0x1400015a9
lea rdx, [rbp + 0x410]
mov word [rax], bx
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400015a9
mov edx, r14d
xor ecx, ecx
call fcn.140001ec0
test eax, eax
je 0x14000176b
xor edx, edx
mov dword [rsp + MsiRecordGetStringA], 0x70
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x68]
call fcn.140008710
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call fcn.140008710
lea rax, [rbp - 0x10]
mov dword [rsp + 0x40], ebx
mov qword [rbp - 0x78], rax
lea rdx, str.SystemCurrentControlSetServices_tphkload
lea rax, [0x140054884]
mov dword [rsp + 0x48], 0x208
mov qword [rbp - 0x70], rax
mov r9d, 0x20019
lea rax, [rsp + 0x50]
mov dword [rsp + 0x74], 0x140
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
mov dword [rbp - 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000153e
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.ImagePath
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, edi
test eax, eax
je 0x140001540
mov esi, ebx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001550
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14000176b
cmp dword [rsp + 0x40], 2
jne 0x14000157b
mov r8d, 0x103
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000176b
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14000176b
mov rcx, qword [rbp - 0x28]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015d8
mov edx, r14d
xor ecx, ecx
call fcn.1400029e0
mov esi, eax
test eax, eax
je 0x14000176b
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallOnScreenDisplay
mov rcx, 0xffffffff80000002
call fcn.140004aa0
test esi, esi
je 0x14000176b
test r14d, r14d
jne 0x140001770
test r12d, r12d
je 0x140001704
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x208
call fcn.140008710
lea edx, [r14 + 8]
mov r8d, 0x400
lea rcx, str.runonce.exe
call fcn.140006834
mov rsi, rax
test rax, rax
je 0x140001637
mov r9d, 0x104
lea r8, [rbp - 0x10]
lea edx, [r14 + 3]
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov r14d, edi
test eax, eax
jne 0x14000163a
mov r14d, ebx
test rsi, rsi
je 0x140001647
mov rcx, rsi
call sub.KERNEL32.dll_FreeLibrary
test r14d, r14d
je 0x140001770
mov r8, qword [rbp - 0x20]
lea rdx, [rbp - 0x10]
mov r9d, 0x1001
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, edi
jne 0x140001770
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001770
lea r8, [rbp - 0x1c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rbp - 0x20], edi
mov dword [rbp - 0x14], 2
test eax, eax
je 0x1400016e1
mov rcx, qword [rsp + 0x50]
lea r8, [rbp - 0x20]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400016e3
mov edi, ebx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400016f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140001770
xor edx, edx
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x140001770
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x104
mov r9d, 0x400
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x14000175e
test rcx, rcx
je 0x140001770
mov r8, qword [rbp - 0x20]
mov rdx, rcx
xor ecx, ecx
mov r9d, 0x1040
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001770
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001770
mov ebx, 0xffffffff
test r15, r15
je 0x14000177e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140001791
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.1400074e0
lea r11, [rsp + 0x730]
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