Function at 0x140006cf0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [r11 + 0x10], rsi
xor esi, esi
cmp byte [0x140077ccd], sil
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
je 0x140006e4e
mov rcx, qword [0x140077e00]
xorps xmm0, xmm0
movss xmm6, dword [0x140077ed8]
test rcx, rcx
js 0x140006d48
cvtsi2ss xmm0, rcx
jmp 0x140006d5d
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
movss xmm1, dword [0x14006a0b8]
addss xmm0, xmm6
xor eax, eax
addss xmm0, dword [0x14006a004]
comiss xmm0, xmm1
jb 0x140006d8e
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140006d8e
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttss2si rcx, xmm0
add rcx, rax
call fcn.14000d290
cmp dword [0x140077ec4], 1
movaps xmm7, xmm0
jbe 0x140006e3e
movss xmm4, dword [0x140077eb0]
lea rdx, [rbp - 0x21]
xorps xmm2, xmm2
mov qword [rbp - 0x21], rsi
movaps xmm1, xmm0
mov dword [rbp - 0x11], esi
subss xmm1, dword [0x140077b28]
movaps xmm0, xmm6
mov qword [rbp - 9], rsi
subss xmm0, dword [0x140077b2c]
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 [0x14006a0f8]
mulsd xmm1, qword [0x14006a0f8]
addsd xmm2, xmm2
addsd xmm1, xmm1
divsd xmm2, xmm4
divsd xmm1, xmm4
divsd xmm2, qword [0x14006a0e8]
divsd xmm1, qword [0x140069fb0]
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 [0x140077b28], xmm7
movss dword [0x140077b2c], xmm6
cmp byte [0x140077cc9], sil
xorps xmm6, xmm6
mov qword [rsp + 0xe0], rbx
je 0x140006f58
movss xmm0, dword [0x140077d8c]
comiss xmm0, xmm6
jbe 0x140006f58
mov rbx, qword [0x140077e00]
lea rax, [rbp - 0x29]
mov rcx, qword [0x140077c90]
lea r8, [rbp - 0x3d]
mov r9d, 4
mov dword [rbp - 0x3d], esi
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x1348]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140006f04
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.14000cbc0
lea rdx, [0x140002590]
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
lea rdx, [rbx + 0x1348]
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.14000cbc0
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 0x140006f48
cmp qword [rbp - 0x29], 4
je 0x140006f58
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.14000cbc0
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.14000cbc0
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, [0x14000cf50]
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 [0x140077cce], sil
je 0x140006fb8
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140006fb8
mov rcx, qword [0x140077f00]
lea rdx, [rbp - 0x41]
add rcx, 0x17ba530
mov dword [rbp - 0x41], 0x10001
call fcn.14000d5c0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140077f00]
lea rdx, [rbp - 0x41]
add rcx, 0x17ba530
mov dword [rbp - 0x41], 0x100
call fcn.14000d5c0
cmp byte [0x14007439d], sil
je 0x140006fc6
call fcn.140004840
cmp byte [0x1400743a0], sil
je 0x140006fd4
call fcn.1400053b0
cmp byte [0x140077ccc], sil
je 0x140006fe2
call fcn.140005c80
cmp byte [0x140077ccf], sil
mov qword [rsp + 0xf0], rdi
je 0x1400070c3
cmp byte [0x140077b30], sil
je 0x1400070c3
mov rax, qword [0x140077b40]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x4bd0]
mov rcx, qword [rcx]
call fcn.140016690
lea rcx, [0x140074268]
mov rbx, rax
call fcn.140011dd0
mov edi, eax
mov rax, qword [0x140077b40]
movss xmm0, dword [rax + 0x10]
mulss xmm0, dword [0x140069f64]
movss dword [rbp - 0x49], xmm0
movss xmm0, dword [rax + 0x14]
mulss xmm0, dword [0x140069f64]
movss dword [rbp - 0x45], xmm0
test edi, 0xff000000
je 0x1400070ca
movss xmm0, dword [0x14006a014]
lea rdx, [rbp - 0x49]
movss xmm2, dword [0x14006a020]
xorps xmm3, xmm3
mov dword [rsp + 0x28], 0x63
mov rcx, rbx
movss dword [rsp + 0x20], xmm0
call fcn.140038770
movss xmm0, dword [0x140069fc0]
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.140036dc0
mov dword [rbx + 0x50], esi
mov rax, qword [0x140077b40]
cmp byte [0x140077cba], 0
mov rsi, qword [rsp + 0xe8]
je 0x1400071f1
mov rax, qword [rax + 0x4bd0]
lea r8, str.Foreground
movups xmm0, xmmword [0x1400741d8]
mov edx, 1
movaps xmmword [rsp + 0xa0], xmm8
mov rcx, qword [rax]
movaps xmmword [rsp + 0x90], xmm9
movss xmm9, dword [0x1400741e8]
movdqa xmmword [rbp - 0x39], xmm0
call fcn.140016690
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.140011dd0
movss xmm6, dword [0x140069fa4]
lea rdx, [rbp - 0x29]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x49]
mov rcx, rdi
mov ebx, eax
call fcn.1400390b0
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.1400390b0
movaps xmm9, xmmword [rsp + 0x90]
movaps xmm8, xmmword [rsp + 0xa0]
cmp byte [0x140077ccf], 0
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0xc0]
mov rdi, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe0]
je 0x140007239
cmp byte [0x14007439b], 0
je 0x140007234
mov ecx, dword [0x140074278]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140007239
call fcn.140003d10
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14005e130
add rsp, 0xd0
pop rbp
ret