Function at 0x140066300
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x80
mov rbx, rcx
mov ebp, 1
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor dil, dil
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14006638a
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rsp + 0x58], 0x12
lea rcx, [rsp + 0x50]
movzx edi, dil
cmove edi, ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140066331
test dil, dil
je 0x14006638a
mov rcx, rbx
call fcn.140066570
movzx eax, dil
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret
cmp byte [0x14024acf5], 0
jne 0x140066561
mov qword [rsp + 0xa0], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov rax, qword [rbx + 0x18]
cmp rcx, rax
sete sil
xor edi, edi
mov byte [0x1400c5d21], sil
cmp rcx, rax
jne 0x1400663f2
lea edx, [rdi + 3]
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x1400663fd
cmp rcx, qword [rbx + 0x88]
sete sil
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0xa8], rdi
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x140066559
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0xa8]
lea rcx, [rsp + 0xb0]
mov rdi, qword [0x14024ad10]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x44], eax
mov rax, qword [rbx + 0x18]
mov qword [rdi + 0xc8], rax
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0xb0]
mov ecx, ebp
sub eax, dword [rsp + 0xa8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0xd94], xmm0
mov eax, dword [rsp + 0xb4]
sub eax, dword [rsp + 0xac]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0xd98], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400664d4
test sil, sil
je 0x1400664d4
mov byte [rdi + 0xd9c], bpl
mov eax, dword [rdi + 0xd98]
mov dword [rdi + 0x3660], eax
mov byte [rdi + 0x36b0], bpl
jmp 0x1400664db
mov byte [rdi + 0xd9c], 0
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
cmp ecx, dword [rbx + 0x2c]
jne 0x140066503
cmp r8d, dword [rbx + 0x24]
jne 0x140066503
cmp r9d, dword [rbx + 0x28]
jne 0x140066503
cmp eax, dword [rbx + 0x30]
je 0x14006653e
movups xmm0, xmmword [rsp + 0x40]
mov dword [rsp + 0x30], 8
xor edx, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov dword [rbx + 4], ecx
mov dword [rbx + 0xc], ecx
mov rcx, qword [rbx + 0x88]
movups xmmword [rbx + 0x24], xmm0
mov dword [rbx], eax
mov dword [rbx + 8], r8d
mov dword [rbx + 0x10], r9d
mov dword [rbx + 0x14], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x1400c5dc0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bpl, al
je 0x140066559
cmp byte [rbx + 0x20], 0
sete al
mov byte [rbx + 0x20], al
mov rsi, qword [rsp + 0xa0]
xor al, al
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret