Function at 0x140016c30
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 0x140016cb3
cmp dword [0x14022d804], esi
je 0x140016cb3
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 0x140016cb3
mov rdx, qword [rbp - 0x29]
jmp 0x140016cba
mov rdx, rsi
mov qword [rbp - 0x29], rdx
test rcx, rcx
je 0x140016cea
cmp dword [0x14022d804], esi
je 0x140016cea
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 0x140016cea
mov rbx, qword [rbp - 0x39]
jmp 0x140016cf1
mov rbx, rsi
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x1400170fa
cmp byte [0x14022eba0], sil
je 0x1400170fa
mov eax, dword [0x14022ebb4]
test eax, eax
jne 0x140016d19
mov dword [0x14022da18], esi
jmp 0x140016d6c
cmp eax, 1
jne 0x140016d2a
mov dword [0x14022da18], 7
jmp 0x140016d6c
cmp eax, 2
jne 0x140016d3b
mov dword [0x14022da18], 6
jmp 0x140016d6c
cmp eax, 3
jne 0x140016d4c
mov dword [0x14022da18], 5
jmp 0x140016d6c
cmp eax, 4
jne 0x140016d5d
mov dword [0x14022da18], 3
jmp 0x140016d6c
cmp eax, 5
jne 0x140016d6c
mov dword [0x14022da18], 4
lea rcx, [0x14022e710]
call fcn.140016790
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 0x1400170fa
mov rcx, qword [0x14022d9b0]
test rcx, rcx
je 0x140016dd2
cmp dword [0x14022d804], esi
je 0x140016dd2
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 0x140016dd6
mov qword [rbp - 0x29], rsi
test rcx, rcx
je 0x140016e03
cmp dword [0x14022d804], esi
je 0x140016e03
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 0x140016e07
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 0x140016e4a
xorps xmm0, xmm0
sqrtss xmm0, xmm2
jmp 0x140016e52
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 0x1400170fa
mov r8d, dword [0x14022da18]
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000df40
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.140016560
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 [0x1400a92d0]
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 [0x1400a92d0]
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 0x140016f35
xorps xmm4, xmm4
sqrtss xmm4, xmm0
jmp 0x140016f3d
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 [0x1400a9a20]
ucomiss xmm8, xmm2
jp 0x140016f56
je 0x140016fab
movd xmm3, ebx
cvtdq2ps xmm3, xmm3
comiss xmm8, xmm3
jbe 0x140016f8c
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 0x140016f8c
xorps xmm7, xmm7
comiss xmm3, xmm8
jbe 0x140016fab
movaps xmm7, xmm8
subss xmm7, xmm3
divss xmm7, xmm10
addss xmm3, xmm7
comiss xmm2, xmm3
jbe 0x140016fab
xorps xmm7, xmm7
ucomiss xmm9, xmm2
jp 0x140016fb3
je 0x140017008
movd xmm3, edi
cvtdq2ps xmm3, xmm3
comiss xmm9, xmm3
jbe 0x140016fe9
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 0x140016fe9
xorps xmm6, xmm6
comiss xmm3, xmm9
jbe 0x140017008
movaps xmm6, xmm9
subss xmm6, xmm3
divss xmm6, xmm10
addss xmm3, xmm6
comiss xmm2, xmm3
jbe 0x140017008
xorps xmm6, xmm6
xorps xmm1, xmm1
cvtss2sd xmm1, xmm4
movd xmm0, dword [0x14022eba4]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x1400a92a8]
comisd xmm0, xmm1
jb 0x1400170fa
mov ecx, dword [0x14022ebb8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400170fa
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 0x14001708f
lea rdx, [0x1400a003c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ad60
nop
cmp byte [0x14022eba2], 0
je 0x1400170a7
cvttss2si edx, xmm6
cvttss2si ecx, xmm7
call fcn.14000eed0
jmp 0x1400170eb
cmp rbx, 0xffffffffffffffff
je 0x1400170eb
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 0x1400170fa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140099150
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