Function at 0x1400065b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [r11 + 0x10], rsi
xor esi, esi
cmp byte [0x14008be5b], sil
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
je 0x14000670e
mov rcx, qword [0x14008bf90]
xorps xmm0, xmm0
movss xmm6, dword [0x14008c068]
test rcx, rcx
js 0x140006608
cvtsi2ss xmm0, rcx
jmp 0x14000661d
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
movss xmm1, dword [0x14007b588]
addss xmm0, xmm6
xor eax, eax
addss xmm0, dword [0x14007b4d4]
comiss xmm0, xmm1
jb 0x14000664e
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14000664e
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttss2si rcx, xmm0
add rcx, rax
call fcn.1400124e0
cmp dword [0x14008c054], 1
movaps xmm7, xmm0
jbe 0x1400066fe
movss xmm4, dword [0x14008c040]
lea rdx, [rbp - 0x21]
xorps xmm2, xmm2
mov qword [rbp - 0x21], rsi
movaps xmm1, xmm0
mov dword [rbp - 0x11], esi
subss xmm1, dword [0x14008bcc8]
movaps xmm0, xmm6
mov qword [rbp - 9], rsi
subss xmm0, dword [0x14008bccc]
cvtps2pd xmm4, xmm4
mov r8d, 0x28
mov dword [rbp - 0xd], 1
mov qword [rbp - 1], rsi
lea ecx, [r8 - 0x27]
cvtss2sd xmm2, xmm1
cvtps2pd xmm1, xmm0
mulsd xmm2, qword [0x14007b5c8]
mulsd xmm1, qword [0x14007b5c8]
addsd xmm2, xmm2
addsd xmm1, xmm1
divsd xmm2, xmm4
divsd xmm1, xmm4
divsd xmm2, qword [0x14007b5b8]
divsd xmm1, qword [0x14007b480]
cvttsd2si eax, xmm2
mov dword [rbp - 0x19], eax
cvttsd2si eax, xmm1
mov dword [rbp - 0x15], eax
call qword [sym.imp.USER32.dll_SendInput]
movss dword [0x14008bcc8], xmm7
movss dword [0x14008bccc], xmm6
cmp byte [0x14008be59], sil
xorps xmm6, xmm6
mov qword [rsp + 0xe0], rbx
je 0x140006817
movss xmm0, dword [0x14008bf1c]
comiss xmm0, xmm6
jbe 0x140006817
movsxd rbx, dword [0x140088104]
lea rax, [rbp - 0x29]
add rbx, qword [0x14008bf90]
lea r8, [rbp - 0x3d]
mov rcx, qword [0x14008be10]
mov rdx, rbx
mov r9d, 4
mov dword [rbp - 0x3d], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400067c3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Could_not_write_memory_at_address
call fcn.140011e10
lea rdx, [0x1400024b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str.._Error:
call fcn.140011e10
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
jmp 0x140006807
cmp qword [rbp - 0x29], 4
je 0x140006817
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Unexpected_number_of_bytes_written._Expected:
call fcn.140011e10
mov edx, 4
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str.__Actual:
call fcn.140011e10
mov rdx, qword [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x1400121a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp byte [0x14008be5c], sil
je 0x140006877
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140006877
movsxd rcx, dword [0x14008811c]
lea rdx, [rbp - 0x41]
add rcx, qword [0x14008c098]
mov dword [rbp - 0x41], 0x10001
call fcn.140012810
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rcx, dword [0x14008811c]
lea rdx, [rbp - 0x41]
add rcx, qword [0x14008c098]
mov dword [rbp - 0x41], pe_nt_image_headers64
call fcn.140012810
cmp byte [0x1400883ef], sil
je 0x140006885
call fcn.1400040e0
cmp byte [0x1400883f2], sil
je 0x140006893
call fcn.140004c50
cmp byte [0x14008be5a], sil
je 0x1400068a1
call fcn.140005530
cmp byte [0x14008be5d], sil
mov qword [rsp + 0xf0], rdi
je 0x140006982
cmp byte [0x14008bcd0], sil
je 0x140006982
mov rax, qword [0x14008bce0]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x4bd0]
mov rcx, qword [rcx]
call fcn.140025bb0
lea rcx, [0x140088318]
mov rbx, rax
call fcn.1400212f0
mov edi, eax
mov rax, qword [0x14008bce0]
movss xmm0, dword [rax + 0x10]
mulss xmm0, dword [0x14007b434]
movss dword [rbp - 0x49], xmm0
movss xmm0, dword [rax + 0x14]
mulss xmm0, dword [0x14007b434]
movss dword [rbp - 0x45], xmm0
test edi, 0xff000000
je 0x140006989
movss xmm0, dword [0x14007b4e4]
lea rdx, [rbp - 0x49]
movss xmm2, dword [0x14007b4f0]
xorps xmm3, xmm3
mov dword [rsp + 0x28], 0x63
mov rcx, rbx
movss dword [rsp + 0x20], xmm0
call fcn.140047c90
movss xmm0, dword [0x14007b490]
mov r9d, edi
mov r8d, dword [rbx + 0x50]
mov rcx, rbx
mov rdx, qword [rbx + 0x58]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
call fcn.1400462e0
mov dword [rbx + 0x50], esi
mov rax, qword [0x14008bce0]
cmp byte [0x14008be42], 0
mov rsi, qword [rsp + 0xe8]
je 0x140006ab0
mov rax, qword [rax + 0x4bd0]
lea r8, str.Foreground
movups xmm0, xmmword [0x140088298]
mov edx, 1
movaps xmmword [rsp + 0xa0], xmm8
mov rcx, qword [rax]
movaps xmmword [rsp + 0x90], xmm9
movss xmm9, dword [0x14008820c]
movdqa xmmword [rbp - 0x39], xmm0
call fcn.140025bb0
mov ecx, 1
mov rdi, rax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
movd xmm8, eax
cvtdq2ps xmm8, xmm8
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea rcx, [rbp - 0x39]
movss dword [rbp - 0x45], xmm8
cdq
movss dword [rbp - 0x25], xmm8
sub eax, edx
sar eax, 1
movd xmm7, eax
cvtdq2ps xmm7, xmm7
movaps xmm0, xmm7
movaps xmm1, xmm7
addss xmm0, xmm9
subss xmm1, xmm9
movss dword [rbp - 0x49], xmm0
movss dword [rbp - 0x29], xmm1
call fcn.1400212f0
movss xmm6, dword [0x14007b474]
lea rdx, [rbp - 0x29]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x49]
mov rcx, rdi
mov ebx, eax
call fcn.1400485d0
movaps xmm0, xmm8
movss dword [rbp - 0x49], xmm7
addss xmm0, xmm9
movss dword [rbp - 0x29], xmm7
subss xmm8, xmm9
movss dword [rsp + 0x20], xmm6
mov r9d, ebx
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x29]
mov rcx, rdi
movss dword [rbp - 0x45], xmm0
movss dword [rbp - 0x25], xmm8
call fcn.1400485d0
movaps xmm9, xmmword [rsp + 0x90]
movaps xmm8, xmmword [rsp + 0xa0]
cmp byte [0x14008be5d], 0
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0xc0]
mov rdi, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe0]
je 0x140006af8
cmp byte [0x1400883ed], 0
je 0x140006af3
mov ecx, dword [0x140088300]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140006af8
call fcn.1400035a0
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14006d620
add rsp, 0xd0
pop rbp
ret