Function at 0x140001060
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rcx, qword [0x140005638]
lea rax, [rbp + 0x27]
xor edi, edi
lea r8, [rbp + 0x37]
mov qword [rsp + 0x38], rdi
mov edx, 0x221998
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x37]
mov dword [rsp + 0x28], 8
lea r9d, [rdi + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], rdi
lea r9d, [rdi + 4]
test eax, eax
lea r8, [rbp + 0x2f]
lea rax, [rbp + 0x27]
mov ecx, edi
cmovne rcx, qword [rbp + 0x37]
mov edx, 0x2219a4
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x2f]
mov qword [0x140005628], rcx
mov rcx, qword [0x140005638]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], rdi
lea r9d, [rdi + 8]
test eax, eax
lea r8, [rbp + 0x37]
mov ecx, edi
lea rax, [rbp + 0x27]
cmovne ecx, dword [rbp + 0x2f]
mov edx, 0x2219c0
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x37]
mov dword [0x140005630], ecx
mov rcx, qword [0x140005638]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r8, qword [0x140005628]
add r8, 0x16c8f38
call fcn.1400013d0
lea rbx, [rax + 0x3c8]
mov r8, rbx
call fcn.1400013d0
mov eax, dword [0x140005630]
lea r8, [rbp + 7]
mov rcx, qword [0x140005638]
mov r9d, 0x20
mov dword [rbp + 7], eax
mov edx, 0x22199c
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x2f]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
mov qword [rbp + 0xf], rbx
mov qword [rbp + 0x1f], 4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [0x140005630]
lea r8, [rbp + 7]
mov rcx, qword [0x140005638]
mov r9d, 0x20
mov dword [rbp + 7], eax
mov edx, 0x22199c
mov rax, qword [0x140005628]
add rax, 0x16c2380
mov qword [rsp + 0x38], rdi
mov qword [rbp + 0xf], rax
lea rax, [rbp + 0x3f]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x1f], 4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001172
mov ecx, dword [rbp + 0x2f]
lea eax, [rcx - 0x10081]
test eax, 0xfffffffd
je 0x1400012c2
mov eax, dword [0x140005630]
lea r8, [rbp + 7]
mov dword [rbp + 7], eax
mov r9d, 0x20
mov rax, qword [0x140005628]
mov edx, 0x2219a0
add rax, 0x16c2380
mov dword [rbp + 0x27], 0x100
mov qword [rbp + 0xf], rax
cmp ecx, 1
mov rcx, qword [0x140005638]
lea rax, [rbp + 0x27]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], 4
mov qword [rsp + 0x38], rdi
jle 0x1400012a5
lea rax, [rbp + 0x43]
jmp 0x140001398
lea rax, [rbp + 0x47]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x1400013ac
lea rcx, [rbp + 0x27]
mov qword [rbp + 0x27], 2
call fcn.140001460
mov eax, dword [0x140005630]
lea r8, [rbp + 7]
mov rcx, qword [0x140005638]
mov r9d, 0x20
mov dword [rbp + 7], eax
mov edx, 0x2219a0
mov rax, qword [0x140005628]
add rax, 0x16c2380
mov qword [rsp + 0x38], rdi
mov qword [rbp + 0xf], rax
lea rax, [rbp + 0x27]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 0x4b]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov dword [rbp + 0x27], 0x10000
mov qword [rbp + 0x1f], 4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rbp + 0x27]
mov qword [rbp + 0x27], 2
call fcn.140001460
mov eax, dword [0x140005630]
lea r8, [rbp + 7]
mov rcx, qword [0x140005638]
mov r9d, 0x20
mov dword [rbp + 7], eax
mov edx, 0x2219a0
mov rax, qword [0x140005628]
add rax, 0x16c2380
mov dword [rbp + 0x27], 0x100
mov qword [rbp + 0xf], rax
lea rax, [rbp + 0x27]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 0x37]
mov qword [rbp + 0x1f], 4
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rbp + 0x27]
mov qword [rbp + 0x27], 2
call fcn.140001460
jmp 0x140001172