Function at 0x140005474
Capabilities:
Log keystrokes via polling
Shutdown system

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
lea r8, str.CDialogRestart::OnButtonNext_n
mov edx, 4
lea rsi, [0x14010f570]
mov rcx, rsi
call fcn.140001000
mov rcx, rbx
call fcn.140061ecc
cmp dword [0x14011f6d4], 0
jne 0x1400056fe
cmp dword [rbx + 0x450], 0
jne 0x1400056d6
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, 0x8000
test bx, ax
je 0x140005504
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x1400056d6
and qword [rsp + 0x30], 0
mov qword [rsp + 0x70], reloc.OLEAUT32.dll_SafeArrayDestroy
and qword [rsp + 0x68], 0
mov byte [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000556a
lea rcx, [rsp + 0x50]
call fcn.14004d614
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
lea rdx, str.OpenProcessToken_failed_with__s_n
mov rcx, rsi
call fcn.14004b7ec
jmp 0x1400056b6
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1400055b1
lea rcx, [rsp + 0x50]
call fcn.14004d614
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
lea rdx, str.LookupPrivilegeValue_failed_with__s_n
mov rcx, rsi
call fcn.14004b7ec
jmp 0x1400056b6
mov dword [rsp + 0x38], 1
mov ebx, 2
mov dword [rsp + 0x44], ebx
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140005616
lea rcx, [rsp + 0x50]
call fcn.14004d614
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
lea rdx, str.AdjustTokenPrivileges_failed_with__s_n
mov rcx, rsi
call fcn.14004b7ec
jmp 0x1400056b6
lea r8, str.Rebooting__the_system___n
mov edx, 1
mov rcx, rsi
call fcn.140001000
mov edx, ebx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140005662
lea rcx, [rsp + 0x50]
call fcn.14004d614
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
lea rdx, str.ExitWindowsEx_failed_with__s_n
mov rcx, rsi
call fcn.14004b7ec
and dword [rsp + 0x44], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400056b6
lea rcx, [rsp + 0x50]
call fcn.14004d614
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
lea rdx, str.AdjustTokenPrivileges_failed_with__s_n
mov rcx, rsi
call fcn.14004b7ec
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x70], 0x10
jb 0x1400056ea
mov rcx, qword [rsp + 0x58]
call fcn.14006127c
jmp 0x1400056ea
lea r8, str.Reboot_later_checked_or_Ctrl_Shift_were_held_down__not_rebooting_n
mov edx, 1
mov rcx, rsi
call fcn.140001000
lea r8, str.CDialogRestart::OnButtonNext_n
mov edx, 4
mov rcx, rsi
call fcn.140001000
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140061100
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rsi
ret