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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
call dword [sym.imp.User32.dll_GetForegroundWindow]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4013c0
push 6
call fcn.004055f5
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.User32.dll_GetWindowThreadProcessId]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4013e8
push 6
call fcn.004055f5
add esp, 4
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x5c
call fcn.004055ef
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
fld qword [ebp - 0x2c]
call fcn.0040134e
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40143e
push 6
call fcn.004055f5
add esp, 4
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x1c]
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 1
mov ebx, 0x5c
call fcn.004055ef
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
fld qword [ebp - 0x2c]
call fcn.0040134e
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push 1
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.User32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40149f
push 6
call fcn.004055f5
add esp, 4
mov dword [ebp - 0x18], esp
call dword [sym.imp.User32.dll_GetFocus]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4014be
push 6
call fcn.004055f5
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004055ef
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4014f6
push ebx
call fcn.004055e3
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0x100
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.User32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x401524
push 6
call fcn.004055f5
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x401537
mov eax, 0x40a1b3
push eax
push 1
mov ebx, 0x170
call fcn.004055ef
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401563
push ebx
call fcn.004055e3
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004055ef
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40159e
push ebx
call fcn.004055e3
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0x100
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.User32.dll_GetClassNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4015cc
push 6
call fcn.004055f5
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4015df
mov eax, 0x40a1b3
push eax
push 1
mov ebx, 0x170
call fcn.004055ef
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40160b
push ebx
call fcn.004055e3
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
jmp 0x401619
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40162a
push ebx
call fcn.004055e3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10