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

Disassembly:
mov rax, rsp
push rbp
push r12
push r15
sub rsp, 0x80
mov qword [rax + 0x10], rsi
mov rbp, rcx
mov qword [rax + 0x20], rdi
mov ecx, 0x11
mov qword [rax - 0x20], r13
mov r15d, edx
mov qword [rax - 0x28], r14
call qword [sym.imp.USER32.dll_GetKeyState]
mov qword [rsp + 0x30], 0x1c
mov ecx, 5
test ax, ax
lea rax, str.EnableWarnings
mov qword [rsp + 0x38], rax
sets r12b
xor eax, eax
lock cmpxchg qword [0x140213dc0], rcx
je 0x1400023aa
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockShared
mov rsi, qword [0x1402178b0]
lea rcx, [rsp + 0x40]
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0xa0], rbx
mov rax, qword [rsi + 0x10]
movups xmmword [rsp + 0x48], xmm0
call qword [case.0x140101f48.0]
mov edx, dword [rsi + 0x18]
xor r13d, r13d
mov rcx, qword [rsi + 0x20]
dec edx
mov r14d, eax
btr r14d, 0x1f
and edx, r14d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x140002436
nop dword [rax]
nop word [rax + rax]
mov ebx, dword [rsi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rsi + 0x30]
cmp dword [rbx], r14d
jne 0x14000242c
mov rax, qword [rsi + 8]
lea rdi, [rbx + 8]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [case.0x140101f48.0]
test al, al
jne 0x140002487
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140002400
mov ebx, dword [rsp + 0xb0]
mov rdi, r13
mov r14, qword [rsp + 0x70]
mov eax, 5
mov rsi, qword [rsp + 0xa8]
lock cmpxchg qword [0x140213dc0], r13
mov r13, qword [rsp + 0x78]
je 0x14000246e
lea rcx, [0x140213dc0]
call sym.ProcessHacker.exe_PhfReleaseQueuedLockShared
test rdi, rdi
mov rdi, qword [rsp + 0xb8]
jne 0x140002496
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
test rdi, rdi
je 0x140002436
cmp dword [rdi], 1
jne 0x140002436
mov ebx, dword [rdi + 0x28]
jmp 0x140002440
test ebx, ebx
je 0x1400024c8
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, rbp
lea rdx, str.restart
call sym.ProcessHacker.exe_PhShowConfirmMessage
nop dword [rax + rax]
test al, al
je 0x1400025e5
test r12b, r12b
je 0x140002554
mov ecx, 1
call qword [sym.imp.ntdll.dll_NtShutdownSystem]
mov ebx, eax
test eax, eax
jns 0x140002574
cmp eax, 0xc0000022
je 0x14000250d
cmp eax, 0xc0000005
je 0x14000250d
mov ecx, eax
and ecx, 0xfff0000
cmp ecx, 0x70000
jne 0x140002519
movzx eax, bx
jmp 0x140002515
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x140002527
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x14000252e
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_restart_the_computer.
mov rbx, rax
mov rcx, rbp
test rax, rax
je 0x1400025d3
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
jmp 0x14000259a
or r15d, 4
mov dword [rsp + 0x20], 0x80000000
mov r9d, r15d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
jne 0x140002578
mov al, 1
jmp 0x1400025e7
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_restart_the_computer.
mov rbx, rax
test rax, rax
je 0x1400025d0
mov rcx, qword [rax + 8]
mov qword [rsp + 0x28], rcx
mov rcx, rbp
lea rax, [0x1401b439c]
mov r8d, 0xfffe
mov edx, 0x20
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400025e5
call fcn.140106290
jmp 0x1400025e5
mov rcx, rbp
lea r8, [0x1401c7ff8]
mov edx, 0x10
call sym.ProcessHacker.exe_PhShowMessage
xor al, al
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r15
pop r12
pop rbp
ret