Function at 0x1400a74a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14015c040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov ecx, dword [0x1404373bc]
test ecx, ecx
je 0x1400a74f5
sub ecx, 1
je 0x1400a74db
cmp ecx, 1
jne 0x1400a7517
movzx eax, cl
mov byte [0x1404373c8], cl
jmp 0x1400a751e
mov ecx, dword [0x1404373b8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x1404373c8], al
jmp 0x1400a751e
mov ecx, dword [0x1404373b8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400a7517
cmp byte [0x1404373c8], 0
sete al
mov byte [0x1404373c8], al
jmp 0x1400a751e
movzx eax, byte [0x1404373c8]
cmp byte [0x140438295], 0
mov qword [rsp + 0xc0], rbx
je 0x1400a766d
test al, al
je 0x1400a7773
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x19], 0x626f5230
xor ecx, ecx
mov dword [rbp - 0x15], 0x786f6c
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
jne 0x1400a7773
mov edx, dword [0x140439128]
xor ebx, ebx
mov rax, qword [0x1404382d0]
mov rcx, qword [0x140439120]
add rax, 0x110
mov qword [rbp - 9], rax
lea rax, [rbp + 0x3f]
mov qword [rbp - 1], rax
mov dword [rbp + 0x10], ebx
mov word [rbp + 0x14], bx
mov byte [rbp + 0x16], bl
mov dword [rbp - 0x11], 0x12b2d92
mov qword [rbp + 7], 8
mov dword [rbp - 0xd], edx
mov byte [rbp + 0xf], bl
test edx, edx
je 0x1400a75f4
test rcx, rcx
je 0x1400a75f4
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x11]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x140439128]
mov rcx, qword [0x140439120]
mov rax, qword [rbp + 0x3f]
add rax, 0x298
mov dword [rbp + 0x38], ebx
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0x47]
mov qword [rbp + 0x27], rax
mov word [rbp + 0x3c], bx
mov byte [rbp + 0x3e], bl
mov dword [rbp + 0x17], 0x12b2d92
mov qword [rbp + 0x2f], 8
mov dword [rbp + 0x1b], edx
mov byte [rbp + 0x37], bl
test edx, edx
je 0x1400a7662
test rcx, rcx
je 0x1400a7662
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x17]
mov qword [rsp + 0x30], rbx
lea r8, [rbp + 0x17]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dl, 1
lea rcx, [rbp + 0x47]
jmp 0x1400a776e
mov edx, dword [0x140439128]
xor ebx, ebx
mov rax, qword [0x1404382d0]
mov rcx, qword [0x140439120]
add rax, 0x110
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0x47]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x38], ebx
mov word [rbp + 0x3c], bx
mov byte [rbp + 0x3e], bl
mov dword [rbp + 0x17], 0x12b2d92
mov qword [rbp + 0x2f], 8
mov dword [rbp + 0x1b], edx
mov byte [rbp + 0x37], bl
test edx, edx
je 0x1400a76fa
test rcx, rcx
je 0x1400a76fa
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x17]
mov qword [rsp + 0x30], rbx
lea r8, [rbp + 0x17]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x140439128]
mov rcx, qword [0x140439120]
mov rax, qword [rbp + 0x47]
add rax, 0x298
mov dword [rbp + 0x10], ebx
mov qword [rbp - 9], rax
lea rax, [rbp + 0x3f]
mov qword [rbp - 1], rax
mov word [rbp + 0x14], bx
mov byte [rbp + 0x16], bl
mov dword [rbp - 0x11], 0x12b2d92
mov qword [rbp + 7], 8
mov dword [rbp - 0xd], edx
mov byte [rbp + 0xf], bl
test edx, edx
je 0x1400a7768
test rcx, rcx
je 0x1400a7768
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x11]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
lea rcx, [rbp + 0x3f]
call fcn.1400a73c0
lea rcx, [rbp - 0x19]
call fcn.1400963b0
mov rax, qword [rbp - 0x19]
movabs r8, 0x7ffffffffd050f7f
mov rbx, qword [rsp + 0xc0]
cmp rax, r8
je 0x1400a77b0
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a77b0
add rax, 0x2faf080
jmp 0x1400a77ba
movabs rax, 0x7fffffffffffffff
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x19], rax
call fcn.14009af70
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140113570
add rsp, 0xb0
pop rbp
ret