Function at 0x14010c680
Capabilities:
Log keystrokes via polling

Disassembly:
cmp r8, 1
je 0x14010c9aa
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1402f2018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov r12d, edx
mov rbx, rcx
mov qword [rbp - 0x38], r9
mov dword [rbp - 0x18], 0x50004
mov edi, 6
mov word [rbp - 0x14], di
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
mov ecx, edi
call fcn.14022869c
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea r14, [rax + 6]
mov qword [rbp - 0x40], r14
mov r8d, edi
lea rdx, [rbp - 0x18]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x48], r14
lea rax, [rbp - 0x50]
mov qword [rbp - 0x30], rax
mov rdi, qword [rbp - 0x50]
lea rsi, [rbx + 0x2b0]
cmp rdi, r14
je 0x14010c7a9
movsx ecx, word [rdi]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14010c738
cmp byte [rbx + 9], 0
jne 0x14010c776
lea rsi, [rbx + 0x2b0]
movsx ecx, word [rdi]
movzx eax, byte [rsi]
cmp eax, ecx
jne 0x14010c761
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14010c761
mov byte [rbx + 0x2b2], 1
add rdi, 2
jmp 0x14010c71b
movzx eax, byte [rsi]
cmp ax, word [rdi]
jne 0x14010c770
mov byte [rbx + 0x2b2], 0
add rdi, 2
jmp 0x14010c71b
movzx eax, byte [rdi]
mov byte [rsi], al
mov byte [rbx + 9], 0
mov byte [rbx + 0x2b2], 0
mov rcx, qword [rbx + 0x2f0]
test rcx, rcx
je 0x14010c7a9
mov byte [rbp - 0x20], 0
mov qword [rbp - 0x28], rbx
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x28]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov edi, 0x2f0
mov r14, rbx
lea rcx, [rbp - 0x50]
call fcn.14010c9c0
cmp r12d, 0x101
jne 0x14010c7ff
cmp byte [rbx + 9], 0
je 0x14010c7ff
mov byte [rsi], r15b
mov byte [rbx + 9], 0
mov byte [rbx + 0x2b2], 0
mov rcx, qword [rdi + rbx]
test rcx, rcx
je 0x14010c986
mov byte [rbp - 0x20], 0
mov qword [rbp - 0x28], rbx
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x28]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14010c986
movzx eax, byte [rsi]
cmp r15, rax
jne 0x14010c882
cmp byte [rbx + 9], 0
jne 0x14010c882
cmp r12d, 0x100
jne 0x14010c83e
cmp byte [rbx + 0x2b1], 0
jne 0x14010c882
cmp byte [rbx + 0x2b2], 0
jne 0x14010c882
mov byte [rbx + 0x2b2], 1
mov rcx, qword [rdi + r14]
test rcx, rcx
je 0x14010c882
mov byte [rbp - 0x20], 1
jmp 0x14010c870
cmp r12d, 0x101
jne 0x14010c882
cmp byte [rbx + 0x2b1], 0
je 0x14010c85c
cmp byte [rbx + 0x2b2], 0
sete al
jmp 0x14010c85e
xor al, al
mov byte [rbx + 0x2b2], al
mov rcx, qword [rdi + r14]
test rcx, rcx
je 0x14010c882
mov byte [rbp - 0x20], al
mov qword [rbp - 0x28], rbx
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x28]
call qword [rax + reloc.WS2_32.dll_recv]
cmp byte [rbx + 8], 0
je 0x14010c986
mov rax, qword [rbx + 0x298]
cmp byte [0x1402fb3e6], 0
je 0x14010c986
cmp qword [rax + 0x298], 0
je 0x14010c8b4
cmp byte [rax + 8], 0
je 0x14010c986
mov rax, qword [0x1402fb470]
cmp byte [rax + 0x36b0], 0
je 0x14010c986
cmp byte [rbx + 9], 0
jne 0x14010c986
mov rax, qword [rbx]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
movaps xmm2, xmm0
subss xmm2, dword [0x1402c1830]
movss xmm3, dword [rbp - 0x38]
comiss xmm3, dword [rbp - 0x18]
jb 0x14010c986
movaps xmm1, xmm2
addss xmm1, dword [rbp - 0x18]
comiss xmm1, xmm3
jbe 0x14010c986
movss xmm1, dword [rbp - 0x34]
movss xmm4, dword [rbp - 0x14]
comiss xmm1, xmm4
jb 0x14010c986
movaps xmm0, xmm4
movss xmm5, dword [0x1402c18cc]
addss xmm0, xmm5
comiss xmm0, xmm1
jbe 0x14010c986
addss xmm2, dword [rbp - 0x18]
subss xmm2, xmm5
subss xmm2, dword [0x1402c1878]
cvtps2pd xmm0, xmm4
addsd xmm0, qword [0x1402c16c8]
cvtpd2ps xmm0, xmm0
movss xmm4, dword [0x1402c189c]
comiss xmm3, xmm2
jb 0x14010c986
addss xmm2, xmm5
comiss xmm2, xmm3
jbe 0x14010c986
comiss xmm1, xmm0
jb 0x14010c986
addss xmm4, xmm0
comiss xmm4, xmm1
jbe 0x14010c986
mov word [rbx + 0xa], 0
cmp byte [rbx + 9], 0
sete al
mov byte [rbx + 9], al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1402283f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret