Function at 0x140091560
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx + 0x1c], 0
mov rbx, rcx
je 0x14009188d
mov edx, dword [0x1401a8558]
add rdx, qword [rcx + 0x48]
mov rcx, qword [0x1401a8598]
test rcx, rcx
je 0x14009188d
cmp dword [0x1401a85a0], 0
je 0x14009188d
mov qword [rsp + 0x88], rdi
lea r8, [0x1401a8312]
xor edi, edi
mov r9d, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140091885
mov edx, dword [0x1401a855c]
add rdx, qword [rbx + 0x48]
mov rcx, qword [0x1401a8598]
test rcx, rcx
je 0x140091885
cmp dword [0x1401a85a0], edi
je 0x140091885
mov r9d, 4
mov qword [rsp + 0x20], rdi
lea r8, [0x1401a8340]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140091885
mov eax, dword [0x1401a8340]
cmp eax, 0xffffffff
je 0x140091885
shr eax, 9
xorps xmm0, xmm0
mov ecx, 8
mov dword [rsp + 0x34], edi
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x30], eax
call fcn.140099650
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rcx, [rax + 8]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
add rax, 8
mov rdx, qword [0x1401a85e0]
mov qword [rsp + 0x40], rax
call fcn.140012d70
mov qword [0x1401a8338], rax
test rax, rax
je 0x140091885
mov ecx, dword [0x1401a8340]
and ecx, 0x1ff
imul edx, ecx, 0x78
mov rcx, qword [0x1401a8598]
add rdx, rax
test rcx, rcx
je 0x140091885
cmp dword [0x1401a85a0], edi
je 0x140091885
mov r9d, 8
mov qword [rsp + 0x20], rdi
lea r8, [0x1401a8348]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140091885
lea rdx, [0x1401a8348]
lea rcx, [0x140181190]
call fcn.140013030
test al, al
je 0x140091885
cmp byte [0x1401a8409], dil
jne 0x140091714
xorps xmm0, xmm0
comiss xmm0, dword [rbx + 0x104]
jb 0x140091885
cmp byte [0x1401a8408], dil
je 0x14009175c
mov rcx, qword [0x1401a8598]
test rcx, rcx
je 0x140091751
cmp dword [0x1401a85a0], edi
je 0x140091751
mov edx, dword [0x1401a8494]
lea r8, [rsp + 0x50]
add rdx, qword [rbx + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rsp + 0x50], dil
je 0x140091885
cmp byte [0x1400bc0c4], dil
je 0x140091783
mov eax, dword [0x140181280]
cmp dword [rbx + 0xf0], eax
je 0x14009177f
cmp dword [0x140181270], edi
jle 0x14009177f
mov al, 1
jmp 0x14009178c
xor al, al
jmp 0x14009178c
cmp dword [0x140181270], edi
setg al
mov byte [0x1401a8313], al
test al, al
je 0x140091885
movaps xmmword [rsp + 0x60], xmm6
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
xorps xmm6, xmm6
mov rcx, rax
sub rcx, qword [0x1401a8748]
mov rbx, rax
cmp byte [0x1401a8589], dil
cvtsi2sd xmm6, rcx
mulsd xmm6, qword [0x1400abce8]
jne 0x1400917f1
movd xmm0, dword [0x1400bc098]
cvtdq2pd xmm0, xmm0
comisd xmm6, xmm0
jb 0x1400917f1
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x1401a8750], rax
mov byte [0x1401a8589], 1
sub rbx, qword [0x1401a8750]
xorps xmm1, xmm1
movd xmm0, dword [0x1400bc098]
cvtdq2pd xmm0, xmm0
cvtsi2sd xmm1, rbx
comisd xmm6, xmm0
mulsd xmm1, qword [0x1400abce8]
movaps xmm6, xmmword [rsp + 0x60]
jb 0x140091885
movd xmm0, dword [0x1400bc094]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jb 0x140091885
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140091885
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x1401a8748], rax
mov byte [0x1401a8589], dil
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140099510
add rsp, 0x70
pop rbx
ret