Function at 0x140006830
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov rax, qword [0x1400cb180]
xor rax, rsp
mov qword [rbp + 0x40], rax
movdqa xmm0, xmmword [0x1400b3750]
lea rcx, [rbp + 0x20]
movdqu xmmword [rbp - 0x60], xmm0
xor r13d, r13d
xorps xmm0, xmm0
xorps xmm1, xmm1
xorps xmm9, xmm9
mov qword [0x1400d26d0], r13
movups xmmword [0x1400d26e8], xmm0
movsd qword [0x1400d2760], xmm9
movups xmmword [0x1400d2750], xmm1
call fcn.140001350
movss xmm15, dword [0x1400b34e4]
movabs r14, 0x431bde82d7b634db
movss xmm14, dword [0x1400b3550]
xorps xmm10, xmm10
mov rbx, qword [rbp + 0x20]
movabs rdi, 0x7ffffffffff0bdbf
movss xmm7, dword [0x1400b34b8]
mov esi, 0x8000
nop
cmp byte [0x1400cb2d8], r13b
je 0x140006a43
lea rcx, [rsp + 0x50]
call fcn.140001350
mov rax, qword [rsp + 0x50]
sub rax, qword [0x1400d26c0]
cmp rax, 0xef5f4c0
jl 0x140006952
mov byte [0x1400d27b8], 1
mov rcx, qword [0x1400d27a0]
add rcx, 0x1898
call fcn.140003980
test rax, rax
je 0x140006a43
cmp byte [0x1400cb2da], r13b
jne 0x14000698c
mov ecx, dword [0x1400cb2e4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x140006a43
cmp byte [0x1400d26c8], r13b
je 0x1400069af
lea rcx, [rbp - 0x78]
call fcn.140001350
mov byte [0x1400d26c8], r13b
mov rcx, qword [rax]
mov qword [0x1400d26e0], rcx
lea rcx, [rbp - 0x70]
call fcn.140001350
mov rcx, qword [rax]
mov rax, r14
mov qword [0x1400d26d8], rcx
sub rcx, qword [0x1400d26e0]
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, dword [0x1400cb2dc]
cmp rdx, rax
jl 0x140006a43
cmp byte [0x1400d27b8], r13b
je 0x140006a43
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
lea rcx, [rbp - 0x68]
mov byte [0x1400d26c8], 1
mov byte [0x1400d27b8], r13b
call fcn.140001350
mov rcx, qword [rax]
mov qword [0x1400d26c0], rcx
lea rcx, [rsp + 0x58]
call fcn.140001350
mov rax, qword [rsp + 0x58]
mov rcx, rax
sub rcx, rbx
cmp rcx, 0x4c4b40
jl 0x140006920
cmp qword [0x1400d27b0], r13
mov rbx, rax
je 0x140006eda
mov r12, qword [0x1400cb350]
mov rdi, qword [0x1400cb348]
mov dword [0x1400d2820], 0x7f7fffff
mov qword [0x1400d2818], r13
cmp rdi, r12
je 0x140007204
nop dword [rax]
mov rsi, qword [rdi]
mov rcx, rsi
call fcn.140004330
cmp byte [0x1400cb2c2], r13b
mov r14, rax
mov r15, qword [rdi + 0x18]
je 0x140006af1
lea rcx, [rax + 0x2e0]
call fcn.140007290
lea rcx, [r14 + 0x2e8]
movaps xmm6, xmm0
call fcn.140007290
addss xmm0, xmm7
comiss xmm0, xmm6
setae al
cmp byte [0x1400cb2c2], r13b
je 0x140006af1
test al, al
je 0x140006c0e
mov rcx, rsi
call fcn.140006340
test al, al
jne 0x140006c0e
cmp byte [0x1400cb2c5], r13b
je 0x140006b1a
mov rcx, rsi
call fcn.140006430
test al, al
jne 0x140006c0e
mov rcx, qword [rdi + 8]
add rcx, 0x1201
call fcn.140005320
cmp dword [0x1400d27a8], eax
je 0x140006c0e
cmp byte [0x1400cb2c0], r13b
je 0x140006c0e
mov r9d, WSAGetLastError
lea rdx, [rbp]
mov r8, r15
mov rcx, r14
call fcn.1400061f0
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x68]
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
movaps xmmword [rbp + 0x20], xmm0
movsd qword [rbp + 0x30], xmm1
call fcn.140005ed0
movss xmm0, dword [0x1400d2788]
movsd xmm2, qword [rsp + 0x70]
movsd xmm3, qword [rsp + 0x68]
mulss xmm0, xmm15
cvtps2pd xmm1, xmm0
movss xmm0, dword [0x1400d278c]
subsd xmm3, xmm1
mulss xmm0, xmm15
cvtps2pd xmm1, xmm0
mulsd xmm3, xmm3
xorps xmm0, xmm0
subsd xmm2, xmm1
mulsd xmm2, xmm2
addsd xmm2, xmm3
cvtpd2ps xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140006bcc
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x140006bd4
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
mov eax, dword [reloc.WS2_32.dll_ntohs]
lea ecx, [rax + rax*4]
add ecx, ecx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x140006c0e
movss xmm1, dword [0x1400d2820]
comiss xmm1, xmm0
jbe 0x140006c0e
movss dword [0x1400d2820], xmm0
mov qword [0x1400d2818], rsi
mov qword [0x1400d26d0], r15
add rdi, 0x60
cmp rdi, r12
jne 0x140006aa0
cmp qword [0x1400d2818], r13
je 0x140007204
mov ecx, dword [0x1400cb2d0]
test ecx, ecx
je 0x140006e50
sub ecx, 1
je 0x140006e25
sub ecx, 1
je 0x140006dfa
sub ecx, 1
je 0x140006dcf
cmp ecx, 1
jne 0x140006ec6
mov rdi, r13
nop dword [rax]
mov rcx, qword [0x1400d2818]
call fcn.140004330
mov r9d, dword [rbp + rdi*4 - 0x60]
lea rdx, [rbp + 0x20]
mov r8, qword [0x1400d26d0]
mov rcx, rax
call fcn.1400061f0
movups xmm6, xmmword [rbp + 0x20]
lea r8, [rsp + 0x30]
movsd xmm11, qword [rbp + 0x30]
lea rdx, [rsp + 0x78]
movaps xmmword [rsp + 0x30], xmm6
movsd qword [rsp + 0x40], xmm11
call fcn.140005ed0
movss xmm1, dword [0x1400d278c]
movss xmm0, dword [0x1400d2788]
movsd xmm12, qword [rbp - 0x80]
mulss xmm0, xmm15
mulss xmm1, xmm15
cvtps2pd xmm9, xmm0
cvtps2pd xmm8, xmm1
movaps xmm1, xmm14
movaps xmm0, xmm8
subsd xmm0, xmm12
cvtpd2ps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movsd xmm13, qword [rsp + 0x78]
movaps xmm7, xmm0
movaps xmm0, xmm9
movaps xmm1, xmm14
subsd xmm0, xmm13
cvtpd2ps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
addss xmm7, xmm0
xorps xmm1, xmm1
ucomiss xmm1, xmm7
ja 0x140006d1c
xorps xmm0, xmm0
sqrtss xmm0, xmm7
jmp 0x140006d24
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
subsd xmm8, qword [0x1400d26f0]
xorps xmm10, xmm10
movaps xmm1, xmm14
cvtss2sd xmm10, xmm0
cvtpd2ps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
subsd xmm9, qword [0x1400d26e8]
movaps xmm7, xmm0
movaps xmm1, xmm14
cvtpd2ps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
addss xmm7, xmm0
xorps xmm1, xmm1
ucomiss xmm1, xmm7
ja 0x140006d73
xorps xmm0, xmm0
sqrtss xmm0, xmm7
jmp 0x140006d7b
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvtss2sd xmm0, xmm0
comisd xmm0, xmm10
jbe 0x140006db5
movsd qword [0x1400d2750], xmm6
unpckhpd xmm6, xmm6
movsd qword [0x1400d2758], xmm6
movsd qword [0x1400d2760], xmm11
movsd qword [0x1400d26e8], xmm13
movsd qword [0x1400d26f0], xmm12
inc rdi
cmp rdi, 3
jl 0x140006c60
xorps xmm9, xmm9
xorps xmm10, xmm10
jmp 0x140006ec6
mov rcx, qword [0x1400d2818]
call fcn.140004330
mov r8, qword [0x1400d26d0]
lea rdx, [rbp + 0x20]
mov r9d, 2
mov rcx, rax
call fcn.1400061f0
lea rdx, [rbp - 0x50]
jmp 0x140006e79
mov rcx, qword [0x1400d2818]
call fcn.140004330
mov r8, qword [0x1400d26d0]
lea rdx, [rbp + 0x20]
mov r9d, 7
mov rcx, rax
call fcn.1400061f0
lea rdx, [rbp - 0x40]
jmp 0x140006e79
mov rcx, qword [0x1400d2818]
call fcn.140004330
mov r8, qword [0x1400d26d0]
lea rdx, [rbp + 0x20]
mov r9d, 0x43
mov rcx, rax
call fcn.1400061f0
lea rdx, [rbp - 0x30]
jmp 0x140006e79
mov rcx, qword [0x1400d2818]
call fcn.140004330
mov r8, qword [0x1400d26d0]
lea rdx, [rbp + 0x20]
mov r9d, WSAGetLastError
mov rcx, rax
call fcn.1400061f0
lea rdx, [rbp - 0x20]
movups xmm0, xmmword [rax]
lea r8, [rsp + 0x30]
movups xmmword [0x1400d2750], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [0x1400d2760], xmm1
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
movaps xmmword [rsp + 0x30], xmm0
movsd qword [rsp + 0x40], xmm1
call fcn.140005ed0
movsd xmm0, qword [rax]
movsd qword [0x1400d26e8], xmm0
movsd xmm1, qword [rax + 8]
movsd qword [0x1400d26f0], xmm1
movabs r14, 0x431bde82d7b634db
movabs rdi, 0x7ffffffffff0bdbf
cmp qword [0x1400d2818], r13
je 0x14000720e
cmp qword [0x1400d27b0], r13
je 0x14000720e
mov ecx, dword [0x1400cb2d4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14000720e
movsd xmm7, qword [0x1400d26e8]
ucomisd xmm7, xmm9
movsd xmm2, qword [0x1400d26f0]
jp 0x140006f2f
jne 0x140006f2f
ucomisd xmm2, xmm9
jp 0x140006f2f
je 0x14000720e
movss xmm1, dword [0x1400d278c]
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [0x1400cb2c8]
mov eax, r13d
mulss xmm1, xmm15
comiss xmm0, xmm1
xorps xmm1, xmm1
setae al
cvtsi2sd xmm1, eax
subsd xmm1, xmm2
cvtpd2ps xmm0, xmm1
movss xmm1, dword [0x1400b3550]
call fcn.14009e3e0
movss xmm1, dword [0x1400d2788]
movaps xmm6, xmm0
mulss xmm1, xmm15
cvtps2pd xmm2, xmm1
movaps xmm1, xmm14
subsd xmm2, xmm7
cvtpd2ps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movaps xmm1, xmm0
xorps xmm0, xmm0
addss xmm1, xmm6
ucomiss xmm0, xmm1
ja 0x140006fa8
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x140006fb0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
ucomiss xmm0, xmm10
jp 0x140006fbc
je 0x14000720e
mov rcx, qword [0x1400d27b0]
call fcn.140004240
movsd xmm0, qword [0x1400d2758]
movaps xmm1, xmm14
subsd xmm0, qword [0x1400cb298]
mov rdi, rax
cvtpd2ps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movaps xmm6, xmm0
movaps xmm1, xmm14
movsd xmm0, qword [0x1400d2750]
subsd xmm0, qword [0x1400cb290]
cvtpd2ps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movsd xmm1, qword [0x1400d2760]
addss xmm6, xmm0
subsd xmm1, qword [0x1400cb2a0]
cvtpd2ps xmm0, xmm1
movaps xmm1, xmm14
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
addss xmm6, xmm0
xorps xmm1, xmm1
ucomiss xmm1, xmm6
ja 0x14000703e
xorps xmm0, xmm0
sqrtss xmm0, xmm6
jmp 0x140007046
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
xorps xmm8, xmm8
lea rcx, [rdi + 0x1cc4]
cvtss2sd xmm8, xmm0
call fcn.140007290
lea rcx, [rdi + 0x1f34]
movaps xmm7, xmm0
call fcn.140007290
cmp byte [0x1400d2798], 1
movaps xmm6, xmm0
je 0x14000719c
ucomiss xmm7, xmm10
jp 0x140007086
je 0x14000719c
ucomiss xmm6, xmm10
jp 0x140007092
je 0x14000719c
test rdi, rdi
je 0x14000719c
cmp byte [0x1400cb2c1], r13b
je 0x14000719c
mov rcx, qword [0x1400d2818]
add rcx, 0x198
call fcn.140003980
lea rsi, [rbp + 0x118]
xorps xmm0, xmm0
mov rdi, qword [rsi]
lea rdx, [rbp + 0x20]
mov qword [rsi], r13
mov r8d, 0x18
lea rcx, [rax + 0x168]
movsd qword [rbp + 0x30], xmm9
movups xmmword [rbp + 0x20], xmm0
call fcn.1400016c0
mulss xmm6, dword [0x1400b36bc]
lea r8, [rsp + 0x30]
mov qword [rsi], rdi
lea rdx, [rbp - 0x10]
cvtpd2ps xmm0, xmm8
andps xmm6, xmmword [0x1400b3cf0]
divss xmm0, xmm7
mulss xmm6, xmm15
cvtps2pd xmm1, xmm0
mulss xmm0, xmm0
movaps xmm3, xmm1
movaps xmm2, xmm1
mulsd xmm1, qword [rbp + 0x30]
mulsd xmm3, qword [rbp + 0x20]
mulsd xmm2, qword [rbp + 0x28]
mulss xmm6, xmm0
xorps xmm0, xmm0
addsd xmm3, qword [0x1400d2750]
addsd xmm2, qword [0x1400d2758]
cvtss2sd xmm0, xmm6
addsd xmm0, xmm1
movaps xmm1, xmm3
unpcklpd xmm1, xmm2
movups xmmword [0x1400d2750], xmm1
movaps xmmword [rsp + 0x30], xmm1
addsd xmm0, qword [0x1400d2760]
movsd qword [rsp + 0x40], xmm0
movsd qword [rsp + 0x40], xmm0
movsd qword [0x1400d2760], xmm0
call fcn.140005ed0
movsd xmm0, qword [rax]
movsd qword [0x1400d26e8], xmm0
movsd xmm1, qword [rax + 8]
movsd qword [0x1400d26f0], xmm1
movsd xmm0, qword [0x1400d2750]
ucomisd xmm0, xmm9
jp 0x1400071ea
jne 0x1400071ea
movsd xmm0, qword [0x1400d2758]
ucomisd xmm0, xmm9
jp 0x1400071ea
jne 0x1400071ea
movsd xmm0, qword [0x1400d2760]
ucomisd xmm0, xmm9
jp 0x1400071ea
movss xmm7, dword [0x1400b34b8]
movabs rdi, 0x7ffffffffff0bdbf
mov esi, 0x8000
je 0x140006920
movups xmm0, xmmword [0x1400d26e8]
lea rcx, [rbp + 0x20]
movdqa xmmword [rbp + 0x20], xmm0
call fcn.140006520
jmp 0x140006908
movabs rdi, 0x7ffffffffff0bdbf
xorps xmm0, xmm0
movsd qword [rsp + 0x40], xmm9
lea rcx, [rsp + 0x60]
movsd qword [0x1400d2760], xmm9
movups xmmword [0x1400d2750], xmm0
mov qword [0x1400d2818], r13
movups xmmword [0x1400d26e8], xmm0
call fcn.140001350
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x20], rax
cmp rax, rdi
je 0x140007267
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x140007267
add rax, 0xf4240
jmp 0x140007271
movabs rax, 0x7fffffffffffffff
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x20], rax
call fcn.140003b50
movabs r14, 0x431bde82d7b634db
jmp 0x140006912