Function at 0x405190
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c378
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x48b088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
sub esp, 0x10
mov eax, dword [esi]
mov ecx, esp
mov edx, dword [edi]
push edi
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
call dword [edx + 0x38]
test eax, eax
js 0x405608
test byte [ebp - 0x34], 4
jne 0x405608
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
mov edx, dword [edi]
push eax
mov eax, dword [esi]
sub esp, 0x10
mov ecx, esp
push edi
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
call dword [edx + 0x2c]
test eax, eax
js 0x4055ff
push 2
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetAncestor]
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.00403f00
mov ecx, eax
test ecx, ecx
jne 0x405276
push 0x80004005
call fcn.00408540
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov ebx, 0x48ba38
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
lea ecx, [ecx]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edx, eax
call fcn.00405a70
add esp, 4
or ecx, 0xffffffff
test eax, eax
jne 0x4052c2
add ebx, 0x14
mov dword [ebp - 0x18], ebx
cmp ebx, 0x48ba4c
jne 0x405290
jmp 0x4055e6
call fcn.00403f00
mov ecx, eax
test ecx, ecx
jne 0x4052d7
push 0x80004005
call fcn.00408540
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
call fcn.004084a0
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
push dword [eax + 4]
mov edx, dword [ebx - 0xc]
call fcn.00405a70
add esp, 4
test eax, eax
jne 0x40534a
mov esi, dword [ebp - 0x10]
push dword [esi]
push 0x1f4
push dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
or ecx, 0xffffffff
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
mov eax, ecx
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4055e6
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4055e3
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
call fcn.00405650
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004062e0
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40538b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4053a6
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ecx + 0x10], 2
jne 0x4053cf
push 0
push 0
push 0x1f
push esi
call ebx
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push 0
push 6
push esi
call ebx
mov ebx, dword [ebp + 0xc]
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ecx, esp
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0xc]
push esi
mov dword [ecx + 0xc], eax
call dword [edx + 0x64]
mov edi, dword [ebp - 0x1c]
test eax, eax
js 0x4055c4
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x10], 2
jne 0x405545
mov eax, dword [ebx]
sub esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, esp
mov edx, dword [edx]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [edx + 0x58]
test eax, eax
js 0x4055c4
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar ecx, 1
add ecx, dword [ebp - 0x24]
mov edx, 0x5f
sar eax, 1
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp + 8]
push eax
call fcn.00405d70
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [eax]
call fcn.00408a50
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp + 8]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4054b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x4055c4
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x24
call ebx
mov ecx, dword [ebp - 0x10]
movzx esi, al
shl esi, 0x10
mov eax, esi
or eax, 1
push eax
push 0x24
push 0x100
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
or esi, 0xc0000001
push esi
push 0x24
push 0x101
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x2e
call ebx
movzx esi, al
shl esi, 0x10
mov eax, esi
or eax, 1
push eax
mov eax, dword [ebp - 0x10]
push 0x2e
push 0x100
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
or esi, 0xc0000001
push esi
push 0x2e
push 0x101
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xd
call ebx
jmp 0x40558e
test edi, edi
jne 0x405626
xor esi, esi
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
push esi
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov eax, dword [ebx]
push dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0xc], eax
call dword [edx + 0x6c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
push 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, dword [ebp - 0x10]
movzx esi, al
shl esi, 0x10
mov eax, esi
or eax, 1
push eax
push 0xd
push 0x100
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
or esi, 0xc0000001
push esi
push 0xd
push 0x101
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
push dword [eax]
mov dword [eax + 8], 1
push 0x64
push dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
or ecx, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4055ff
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
jne 0x405552
push 0x8007000e
call fcn.00408540
int3