Function at 0x140016980
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
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
mov rax, qword [0x1400ba040]
xor rax, rsp
mov qword [rbp - 9], rax
xor esi, esi
mov rcx, qword [0x14022d9b0]
test rcx, rcx
je 0x140016a03
cmp dword [0x14022d804], esi
je 0x140016a03
mov qword [rsp + 0x20], rsi
mov r9d, 8
lea r8, [rbp - 0x29]
mov rdx, qword [0x14022e7b0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x14022d9b0]
test eax, eax
je 0x140016a03
mov rdx, qword [rbp - 0x29]
jmp 0x140016a0a
mov rdx, rsi
mov qword [rbp - 0x29], rdx
test rcx, rcx
je 0x140016a3a
cmp dword [0x14022d804], esi
je 0x140016a3a
add rdx, 8
mov qword [rsp + 0x20], rsi
mov r9d, 8
lea r8, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140016a3a
mov rbx, qword [rbp - 0x39]
jmp 0x140016a41
mov rbx, rsi
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140016e4a
cmp byte [0x14022eba0], sil
je 0x140016e4a
mov eax, dword [0x14022ebb4]
test eax, eax
jne 0x140016a69
mov dword [0x14022da18], esi
jmp 0x140016abc
cmp eax, 1
jne 0x140016a7a
mov dword [0x14022da18], 7
jmp 0x140016abc
cmp eax, 2
jne 0x140016a8b
mov dword [0x14022da18], 6
jmp 0x140016abc
cmp eax, 3
jne 0x140016a9c
mov dword [0x14022da18], 5
jmp 0x140016abc
cmp eax, 4
jne 0x140016aad
mov dword [0x14022da18], 3
jmp 0x140016abc
cmp eax, 5
jne 0x140016abc
mov dword [0x14022da18], 4
lea rcx, [0x14022e710]
call fcn.140016510
mov rdi, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test rdi, rdi
je 0x140016e4a
mov rcx, qword [0x14022d9b0]
test rcx, rcx
je 0x140016b22
cmp dword [0x14022d804], esi
je 0x140016b22
lea rdx, [rbx + 0x90]
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x14022d9b0]
test eax, eax
jne 0x140016b26
mov qword [rbp - 0x29], rsi
test rcx, rcx
je 0x140016b53
cmp dword [0x14022d804], esi
je 0x140016b53
lea rdx, [rdi + 0x90]
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140016b57
mov qword [rbp - 0x19], rsi
movss xmm1, dword [rbp - 0x21]
subss xmm1, dword [rbp - 0x11]
movss xmm0, dword [rbp - 0x25]
subss xmm0, dword [rbp - 0x15]
movss xmm2, dword [rbp - 0x29]
subss xmm2, dword [rbp - 0x19]
mulss xmm2, xmm2
mulss xmm0, xmm0
addss xmm2, xmm0
mulss xmm1, xmm1
addss xmm2, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm2
ja 0x140016b9a
xorps xmm0, xmm0
sqrtss xmm0, xmm2
jmp 0x140016ba2
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
movd xmm0, dword [0x14022ebac]
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jb 0x140016e4a
mov r8d, dword [0x14022da18]
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000dcc0
movsd xmm0, qword [rbp - 0x39]
movsd qword [rbp - 0x49], xmm0
mov eax, dword [rbp - 0x31]
mov dword [rbp - 0x41], eax
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x39]
lea rcx, [0x14022e710]
call fcn.1400162e0
movss xmm10, dword [0x14022eba8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov edi, eax
movss xmm9, dword [rbp - 0x35]
cvtps2pd xmm0, xmm9
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm0, xmm1
movsd xmm1, qword [0x1400a9290]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm7, xmm0
movss xmm8, dword [rbp - 0x39]
cvtps2pd xmm0, xmm8
movd xmm2, ebx
cvtdq2pd xmm2, xmm2
subsd xmm0, xmm2
movsd xmm1, qword [0x1400a9290]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm7
xorps xmm1, xmm1
ucomiss xmm1, xmm0
ja 0x140016c85
xorps xmm4, xmm4
sqrtss xmm4, xmm0
jmp 0x140016c8d
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movaps xmm4, xmm0
xorps xmm2, xmm2
xorps xmm7, xmm7
xorps xmm6, xmm6
movss xmm5, dword [0x1400a99c0]
ucomiss xmm8, xmm2
jp 0x140016ca6
je 0x140016cfb
movd xmm3, ebx
cvtdq2ps xmm3, xmm3
comiss xmm8, xmm3
jbe 0x140016cdc
movaps xmm7, xmm3
subss xmm7, xmm8
xorps xmm7, xmm5
divss xmm7, xmm10
movaps xmm1, xmm3
addss xmm1, xmm7
lea eax, [rbx + rbx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x140016cdc
xorps xmm7, xmm7
comiss xmm3, xmm8
jbe 0x140016cfb
movaps xmm7, xmm8
subss xmm7, xmm3
divss xmm7, xmm10
addss xmm3, xmm7
comiss xmm2, xmm3
jbe 0x140016cfb
xorps xmm7, xmm7
ucomiss xmm9, xmm2
jp 0x140016d03
je 0x140016d58
movd xmm3, edi
cvtdq2ps xmm3, xmm3
comiss xmm9, xmm3
jbe 0x140016d39
movaps xmm6, xmm3
subss xmm6, xmm9
xorps xmm6, xmm5
divss xmm6, xmm10
movaps xmm1, xmm3
addss xmm1, xmm6
lea eax, [rdi + rdi]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x140016d39
xorps xmm6, xmm6
comiss xmm3, xmm9
jbe 0x140016d58
movaps xmm6, xmm9
subss xmm6, xmm3
divss xmm6, xmm10
addss xmm3, xmm6
comiss xmm2, xmm3
jbe 0x140016d58
xorps xmm6, xmm6
xorps xmm1, xmm1
cvtss2sd xmm1, xmm4
movd xmm0, dword [0x14022eba4]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x1400a9268]
comisd xmm0, xmm1
jb 0x140016e4a
mov ecx, dword [0x14022ebb8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140016e4a
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
lea rcx, str..Oykyo
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp - 0x39], rax
cmp rax, 0xffffffffffffffff
jne 0x140016ddf
lea rdx, [0x14009fffc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ab20
nop
cmp byte [0x14022eba2], 0
je 0x140016df7
cvttss2si edx, xmm6
cvttss2si ecx, xmm7
call fcn.14000ec50
jmp 0x140016e3b
cmp rbx, 0xffffffffffffffff
je 0x140016e3b
cvttss2si eax, xmm7
mov dword [rbp - 0x39], eax
cvttss2si eax, xmm6
mov dword [rbp - 0x35], eax
mov word [rbp - 0x31], si
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2676d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
cmp rbx, 0xffffffffffffffff
je 0x140016e4a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140098d20
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop rbp
ret