Function at 0x412364
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 4]
cmp eax, 0x200
je 0x4123ed
cmp eax, 0x100
jne 0x4123ed
lea eax, [edi + 0x2c]
lea ecx, [edi + 0x30]
neg eax
sbb eax, eax
push ebx
and eax, ecx
mov ebx, dword [eax]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
pop ebx
jne 0x4123ed
mov eax, dword [esi + 8]
cmp eax, 0xd
jne 0x4123cc
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x4123ed
push dword [esi + 0xc]
call fcn.00463824
cmp al, 1
pop ecx
jne 0x4123ed
push 0
push 0x6f
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4123e8
cmp eax, 0x1b
jne 0x4123ed
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x4123ed
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
pop eax
jmp 0x4123ef
xor eax, eax
pop edi
pop esi
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 4], 0x208
jne 0x41241b
call fcn.00412588
test eax, eax
jne 0x412569
cmp dword [edi + 4], 0x100
jne 0x41256e
mov eax, dword [esi + 0xec]
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp + 8], eax
call ebx
cmp eax, dword [ebp + 8]
mov eax, dword [edi + 8]
jne 0x41251f
cmp eax, 0xd
jne 0x4124fc
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x41256e
push dword [edi + 0xc]
call fcn.00463824
cmp al, 1
pop ecx
jne 0x41256e
and word [ebp - 0x808], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x806]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x808]
push 0x400
push eax
push dword [esi + 0xec]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x4124c5
push dword [esi + 4]
lea ecx, [ebp - 0x808]
push ecx
push 0xd22
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x412569
lea eax, [ebp - 0x808]
push 0
push eax
lea ecx, [ebp - 8]
call fcn.0045ec58
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, esi
push dword [eax]
call fcn.0040f49e
mov ecx, esi
call fcn.0041024d
lea ecx, [ebp - 8]
call fcn.0045e710
jmp 0x412569
cmp eax, 0x1b
jne 0x41256e
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x41256e
mov ecx, esi
call fcn.0041024d
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x412569
cmp eax, 0x73
jne 0x41256e
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41256e
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41256e
mov eax, dword [esi + 0xec]
mov dword [ebp + 8], eax
call ebx
cmp eax, dword [ebp + 8]
je 0x41255f
push dword [edi + 0xc]
call fcn.00463824
cmp al, 1
pop ecx
jne 0x41255f
push dword [esi + 0x38]
mov ecx, esi
call fcn.0040ffb1
mov dword [esi + 0x104], 0x73
push 1
pop eax
jmp 0x412581
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x41257f
push edi
mov ecx, esi
call fcn.00412364
jmp 0x412581
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4