Function at 0x1400a8920
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14015c040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov ecx, dword [0x1404372fc]
test ecx, ecx
je 0x1400a8975
sub ecx, 1
je 0x1400a895b
cmp ecx, 1
jne 0x1400a8997
movzx eax, cl
mov byte [0x140437308], cl
jmp 0x1400a899e
mov ecx, dword [0x1404372f8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x140437308], al
jmp 0x1400a899e
mov ecx, dword [0x1404372f8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400a8997
cmp byte [0x140437308], 0
sete al
mov byte [0x140437308], al
jmp 0x1400a899e
movzx eax, byte [0x140437308]
cmp byte [0x1404382aa], 0
mov qword [rsp + 0x100], rbx
je 0x1400a8b57
test al, al
je 0x1400a8b57
lea rdx, [rbp - 0x58]
mov dword [rbp - 0x59], 0x626f523e
xor ecx, ecx
mov dword [rbp - 0x55], 0x786f6c
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
jne 0x1400a8b57
mov edx, dword [0x140439128]
xor ebx, ebx
mov rax, qword [0x1404382d0]
mov rcx, qword [0x140439120]
add rax, 0x110
mov qword [rbp - 1], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 7], rax
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], bx
mov byte [rbp + 0x1e], bl
mov dword [rbp - 9], 0x12b2d92
mov qword [rbp + 0xf], 8
mov dword [rbp - 5], edx
mov byte [rbp + 0x17], bl
test edx, edx
je 0x1400a8a74
test rcx, rcx
je 0x1400a8a74
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 9]
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 - 0x39]
add rax, 0x298
mov dword [rbp + 0x40], ebx
mov qword [rbp + 0x27], rax
lea rax, [rbp - 0x31]
mov qword [rbp + 0x2f], rax
mov word [rbp + 0x44], bx
mov byte [rbp + 0x46], bl
mov dword [rbp + 0x1f], 0x12b2d92
mov qword [rbp + 0x37], 8
mov dword [rbp + 0x23], edx
mov byte [rbp + 0x3f], bl
test edx, edx
je 0x1400a8ae2
test rcx, rcx
je 0x1400a8ae2
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x30], rbx
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movdqa xmm0, xmmword [0x140142ee0]
lea rax, [rbp - 0x50]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x41], 0x74
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp - 0x19], rbx
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], rbx
nop
inc r8
cmp byte [rax + r8], bl
jne 0x1400a8b10
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x29]
call fcn.14000c8c0
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x31]
call fcn.140087a60
movss xmm2, dword [0x1404382dc]
lea rcx, [rbp - 0x59]
call fcn.1400a85a0
lea rcx, [rbp - 0x59]
call fcn.1400963b0
mov rax, qword [rbp - 0x59]
jmp 0x1400a8b68
lea rcx, [rbp - 0x59]
call fcn.1400963b0
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x59], rax
mov rbx, qword [rsp + 0x100]
movabs r8, 0x7ffffffffd050f7f
cmp rax, r8
je 0x1400a8b98
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a8b98
add rax, 0x2faf080
jmp 0x1400a8ba2
movabs rax, 0x7fffffffffffffff
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x59], rax
call fcn.14009af70
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140113570
add rsp, 0xf0
pop rbp
ret