Function at 0x140108520
Capabilities:
Log keystrokes via polling

Disassembly:
cmp r8, 1
je 0x14010884a
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 [0x1402e8018]
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.14022033c
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 0x140108649
movsx ecx, word [rdi]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1401085d8
cmp byte [rbx + 9], 0
jne 0x140108616
lea rsi, [rbx + 0x2b0]
movsx ecx, word [rdi]
movzx eax, byte [rsi]
cmp eax, ecx
jne 0x140108601
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140108601
mov byte [rbx + 0x2b2], 1
add rdi, 2
jmp 0x1401085bb
movzx eax, byte [rsi]
cmp ax, word [rdi]
jne 0x140108610
mov byte [rbx + 0x2b2], 0
add rdi, 2
jmp 0x1401085bb
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 0x140108649
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.140108860
cmp r12d, 0x101
jne 0x14010869f
cmp byte [rbx + 9], 0
je 0x14010869f
mov byte [rsi], r15b
mov byte [rbx + 9], 0
mov byte [rbx + 0x2b2], 0
mov rcx, qword [rdi + rbx]
test rcx, rcx
je 0x140108826
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 0x140108826
movzx eax, byte [rsi]
cmp r15, rax
jne 0x140108722
cmp byte [rbx + 9], 0
jne 0x140108722
cmp r12d, 0x100
jne 0x1401086de
cmp byte [rbx + 0x2b1], 0
jne 0x140108722
cmp byte [rbx + 0x2b2], 0
jne 0x140108722
mov byte [rbx + 0x2b2], 1
mov rcx, qword [rdi + r14]
test rcx, rcx
je 0x140108722
mov byte [rbp - 0x20], 1
jmp 0x140108710
cmp r12d, 0x101
jne 0x140108722
cmp byte [rbx + 0x2b1], 0
je 0x1401086fc
cmp byte [rbx + 0x2b2], 0
sete al
jmp 0x1401086fe
xor al, al
mov byte [rbx + 0x2b2], al
mov rcx, qword [rdi + r14]
test rcx, rcx
je 0x140108722
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 0x140108826
mov rax, qword [rbx + 0x298]
cmp byte [0x1402f0b1b], 0
je 0x140108826
cmp qword [rax + 0x298], 0
je 0x140108754
cmp byte [rax + 8], 0
je 0x140108826
mov rax, qword [0x1402f0ba8]
cmp byte [rax + 0x36b0], 0
je 0x140108826
cmp byte [rbx + 9], 0
jne 0x140108826
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 [0x1402b85b8]
movss xmm3, dword [rbp - 0x38]
comiss xmm3, dword [rbp - 0x18]
jb 0x140108826
movaps xmm1, xmm2
addss xmm1, dword [rbp - 0x18]
comiss xmm1, xmm3
jbe 0x140108826
movss xmm1, dword [rbp - 0x34]
movss xmm4, dword [rbp - 0x14]
comiss xmm1, xmm4
jb 0x140108826
movaps xmm0, xmm4
movss xmm5, dword [0x1402b8654]
addss xmm0, xmm5
comiss xmm0, xmm1
jbe 0x140108826
addss xmm2, dword [rbp - 0x18]
subss xmm2, xmm5
subss xmm2, dword [0x1402b8600]
cvtps2pd xmm0, xmm4
addsd xmm0, qword [0x1402b8430]
cvtpd2ps xmm0, xmm0
movss xmm4, dword [0x1402b8624]
comiss xmm3, xmm2
jb 0x140108826
addss xmm2, xmm5
comiss xmm2, xmm3
jbe 0x140108826
comiss xmm1, xmm0
jb 0x140108826
addss xmm4, xmm0
comiss xmm4, xmm1
jbe 0x140108826
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.140220090
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