Function at 0x7ff7bffc2600
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, [0x7ff7c0152628]
mov qword [rsp + 0x38], rax
sets r12b
xor eax, eax
lock cmpxchg qword [0x7ff7c01d3dc0], rcx
je 0x7ff7bffc266a
lea rcx, [0x7ff7c01d3dc0]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockShared
mov rsi, qword [0x7ff7c01d78b0]
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.0x7ff7c00c1f48.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 0x7ff7bffc26f6
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 0x7ff7bffc26ec
mov rax, qword [rsi + 8]
lea rdi, [rbx + 8]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [case.0x7ff7c00c1f48.0]
test al, al
jne 0x7ff7bffc2747
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x7ff7bffc26c0
mov ebx, dword [rsp + 0xb0]
mov rdi, r13
mov r14, qword [rsp + 0x70]
mov eax, 5
mov rsi, qword [rsp + 0xa8]
lock cmpxchg qword [0x7ff7c01d3dc0], r13
mov r13, qword [rsp + 0x78]
je 0x7ff7bffc272e
lea rcx, [0x7ff7c01d3dc0]
call sym.ProcessHacker.exe_PhfReleaseQueuedLockShared
test rdi, rdi
mov rdi, qword [rsp + 0xb8]
jne 0x7ff7bffc2756
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
test rdi, rdi
je 0x7ff7bffc26f6
cmp dword [rdi], 1
jne 0x7ff7bffc26f6
mov ebx, dword [rdi + 0x28]
jmp 0x7ff7bffc2700
test ebx, ebx
je 0x7ff7bffc2788
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, [0x7ff7c0152648]
mov rcx, rbp
lea rdx, [0x7ff7c01526c0]
call sym.ProcessHacker.exe_PhShowConfirmMessage
nop dword [rax + rax]
test al, al
je 0x7ff7bffc28a5
test r12b, r12b
je 0x7ff7bffc2814
mov ecx, 2
call qword [sym.imp.ntdll.dll_NtShutdownSystem]
mov ebx, eax
test eax, eax
jns 0x7ff7bffc28a5
cmp eax, 0xc0000022
je 0x7ff7bffc27cd
cmp eax, 0xc0000005
je 0x7ff7bffc27cd
mov ecx, eax
and ecx, 0xfff0000
cmp ecx, 0x70000
jne 0x7ff7bffc27d9
movzx eax, bx
jmp 0x7ff7bffc27d5
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x7ff7bffc27e7
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x7ff7bffc27ee
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, [0x7ff7c01526e0]
mov rbx, rax
mov rcx, rbp
test rax, rax
je 0x7ff7bffc2893
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
jmp 0x7ff7bffc285a
or r15d, 8
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 0x7ff7bffc2838
mov al, 1
jmp 0x7ff7bffc28a7
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, [0x7ff7c01526e0]
mov rbx, rax
test rax, rax
je 0x7ff7bffc2890
mov rcx, qword [rax + 8]
mov qword [rsp + 0x28], rcx
mov rcx, rbp
lea rax, [0x7ff7c017439c]
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 0x7ff7bffc28a5
call fcn.7ff7c00c6290
jmp 0x7ff7bffc28a5
mov rcx, rbp
lea r8, [0x7ff7c0187ff8]
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