Function at 0x180001960
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.1800012e0
mov rdi, rax
call fcn.180040b60
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov r8, rdi
call fcn.180040bf0
call fcn.180040b60
movsd xmm0, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x30]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], ecx
call fcn.180040d30
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movss xmm6, dword [rsp + 0x34]
mov ecx, 1
sub eax, 5
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cvtps2pd xmm6, xmm6
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movsd xmm8, qword [0x18004d448]
sub eax, 5
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm6, xmm1
movaps xmm1, xmm8
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm6, xmm0
movd xmm1, ebx
movss xmm0, dword [rsp + 0x30]
cvtdq2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
subsd xmm0, xmm1
movaps xmm1, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm6, xmm0
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm6
ucomiss xmm1, xmm0
ja 0x180001a58
xorps xmm6, xmm6
sqrtss xmm6, xmm0
jmp 0x180001a60
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movaps xmm6, xmm0
mov rcx, qword [0x1800aced8]
lea rdx, [rdi + 0x90]
xor ebx, ebx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0xc]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x1800ace98]
lea r9d, [rbx + 0xc]
mov rcx, qword [0x1800aced8]
lea r8, [rsp + 0x50]
add rdx, 0x90
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsd xmm0, qword [str.33333]
xorps xmm1, xmm1
cvtss2sd xmm1, xmm6
comisd xmm0, xmm1
jb 0x180001b8d
movss xmm0, dword [rsp + 0x54]
movaps xmm1, xmm8
movss xmm2, dword [rsp + 0x50]
subss xmm0, dword [rsp + 0x64]
subss xmm2, dword [rsp + 0x60]
movaps xmmword [rsp + 0x90], xmm7
cvtps2pd xmm6, xmm0
cvtps2pd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm7, xmm0
movaps xmm1, xmm8
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
movaps xmm1, xmm8
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
xorps xmm1, xmm1
ucomisd xmm1, xmm7
ja 0x180001b2a
xorps xmm0, xmm0
sqrtsd xmm0, xmm7
jmp 0x180001b32
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
mulsd xmm0, qword [0x18004d428]
movsd xmm1, qword [0x18004d470]
movaps xmm7, xmmword [rsp + 0x90]
comisd xmm1, xmm0
jb 0x180001bc8
mov ecx, 2
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180001bc8
xor edx, edx
mov byte [0x1800ac478], 1
xor r9d, r9d
mov qword [0x1800abc80], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov byte [0x1800ac478], 1
jmp 0x180001bc8
cmp byte [0x1800ac478], bl
je 0x180001bc8
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180001bbb
xor edx, edx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [0x1800abc80], rbx
mov byte [0x1800ac478], bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180040ff0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rdi
ret