Function at 0x140110d90
Capabilities:
Log keystrokes via polling

Disassembly:
cmp r8, 1
je 0x1401110bb
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1402f9040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov r14d, 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.14022f7fc
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rsi, [rax + 6]
mov qword [rbp - 0x40], rsi
mov r8d, edi
lea rdx, [rbp - 0x18]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x48], rsi
lea rax, [rbp - 0x50]
mov qword [rbp - 0x30], rax
mov rdi, qword [rbp - 0x50]
cmp rdi, rsi
je 0x140110eb2
movsx ecx, word [rdi]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140110e3b
cmp byte [rbx + 9], 0
jne 0x140110e7b
movsx ecx, word [rdi]
movzx eax, byte [rbx + 0x2b0]
cmp eax, ecx
jne 0x140110e5d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140110e5d
mov byte [rbx + 0x2b2], 1
jmp 0x140110e70
movzx eax, byte [rbx + 0x2b0]
cmp ax, word [rdi]
jne 0x140110e70
mov byte [rbx + 0x2b2], 0
add rdi, 2
cmp rdi, rsi
jne 0x140110e27
jmp 0x140110eb2
movzx eax, byte [rdi]
mov byte [rbx + 0x2b0], al
mov byte [rbx + 9], 0
mov byte [rbx + 0x2b2], 0
mov rcx, qword [rbx + 0x2f0]
test rcx, rcx
je 0x140110eb2
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
lea rcx, [rbp - 0x50]
call fcn.1401110d0
cmp r14d, 0x101
jne 0x140110f07
cmp byte [rbx + 9], 0
je 0x140110f07
mov byte [rbx + 0x2b0], r15b
mov byte [rbx + 9], 0
mov byte [rbx + 0x2b2], 0
mov rcx, qword [rbx + 0x2f0]
test rcx, rcx
je 0x14011109c
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 0x14011109c
movzx eax, byte [rbx + 0x2b0]
cmp r15, rax
jne 0x140110f98
cmp byte [rbx + 9], 0
jne 0x140110f98
cmp r14d, 0x100
jne 0x140110f51
cmp byte [rbx + 0x2b1], 0
jne 0x140110f98
cmp byte [rbx + 0x2b2], 0
jne 0x140110f98
mov byte [rbx + 0x2b2], 1
mov rcx, qword [rbx + 0x2f0]
test rcx, rcx
je 0x140110f98
mov byte [rbp - 0x20], 1
jmp 0x140110f86
cmp r14d, 0x101
jne 0x140110f98
cmp byte [rbx + 0x2b1], 0
je 0x140110f6f
cmp byte [rbx + 0x2b2], 0
sete al
jmp 0x140110f71
xor al, al
mov byte [rbx + 0x2b2], al
mov rcx, qword [rbx + 0x2f0]
test rcx, rcx
je 0x140110f98
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 0x14011109c
mov rax, qword [rbx + 0x298]
cmp byte [0x1403021d3], 0
je 0x14011109c
cmp qword [rax + 0x298], 0
je 0x140110fca
cmp byte [rax + 8], 0
je 0x14011109c
mov rax, qword [0x140302260]
cmp byte [rax + 0x36b0], 0
je 0x14011109c
cmp byte [rbx + 9], 0
jne 0x14011109c
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 [0x1402c8028]
movss xmm3, dword [rbp - 0x38]
comiss xmm3, dword [rbp - 0x18]
jb 0x14011109c
movaps xmm1, xmm2
addss xmm1, dword [rbp - 0x18]
comiss xmm1, xmm3
jbe 0x14011109c
movss xmm1, dword [rbp - 0x34]
movss xmm4, dword [rbp - 0x14]
comiss xmm1, xmm4
jb 0x14011109c
movaps xmm0, xmm4
movss xmm5, dword [0x1402c80c8]
addss xmm0, xmm5
comiss xmm0, xmm1
jbe 0x14011109c
addss xmm2, dword [rbp - 0x18]
subss xmm2, xmm5
subss xmm2, dword [0x1402c8070]
cvtps2pd xmm0, xmm4
addsd xmm0, qword [0x1402c7e98]
cvtpd2ps xmm0, xmm0
movss xmm4, dword [0x1402c8094]
comiss xmm3, xmm2
jb 0x14011109c
addss xmm2, xmm5
comiss xmm2, xmm3
jbe 0x14011109c
comiss xmm1, xmm0
jb 0x14011109c
addss xmm4, xmm0
comiss xmm4, xmm1
jbe 0x14011109c
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.14022f560
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret