Function at 0x660e0833
Capabilities:
Get graphical window text
Get thread local storage value
Log keystrokes

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
cmp word [edi], 0xa
jne 0x660e0932
cmp dword [edi + 8], 0x80020004
jne 0x660e0932
or esi, 0xffffffff
xor ebp, ebp
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add eax, 0x50
cmp si, bp
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], 1
je 0x660e093b
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x23c]
call fcn.66024e0e
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
cmp word [ebx], 8
jne 0x660e0a9d
push dword [ebx + 8]
push ebp
call fcn.660e4c1e
mov esi, eax
cmp esi, ebp
jne 0x660e09e2
mov ecx, dword [ebx + 8]
cmp ecx, ebp
jne 0x660e094a
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
push ebp
push ebp
push eax
push ecx
push ebp
push ebp
call esi
mov ebp, eax
test ebp, ebp
jne 0x660e0954
and dword [esp + 0x10], eax
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
call ebx
push eax
call edi
mov esi, eax
test esi, esi
je 0x660e098a
cmp dword [esp + 0x10], 0
je 0x660e0986
lea eax, [esp + 0x34]
push 0x1ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x34]
push ebp
push eax
push dword [esp + 0x18]
call fcn.660e1e94
add esp, 0xc
test eax, eax
je 0x660e0986
push 2
push esi
jmp 0x660e08ef
xor ebp, ebp
xor esi, esi
jmp 0x660e0860
push edi
call fcn.660e318b
mov dword [esp + 0x18], eax
jmp 0x660e0887
mov eax, dword [ecx - 4]
shr eax, 1
jmp 0x660e08ca
push ebp
call fcn.6600fd50
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x660e08e4
mov ebx, dword [ebx + 8]
cmp ebx, ecx
jne 0x660e097f
xor eax, eax
push ecx
push ecx
push ebp
push dword [esp + 0x1c]
push eax
push ebx
push ecx
push ecx
call esi
jmp 0x660e08e4
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x660e096d
test esi, esi
jne 0x660e09d0
push 5
call ebx
push eax
call edi
mov esi, eax
test esi, esi
je 0x660e09d0
cmp dword [esp + 0x10], 0
je 0x660e09e0
lea eax, [esp + 0x34]
push 0x1ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebp
jl 0x660e09cb
lea eax, [esp + eax + 0x34]
push ebp
sub eax, ebp
push eax
push dword [esp + 0x18]
call fcn.660e1e94
add esp, 0xc
test eax, eax
je 0x660e09d0
push 2
push esi
jmp 0x660e098f
cmp dword [esp + 0x10], 0
je 0x660e09e0
push dword [esp + 0x10]
call fcn.660175eb
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
call sym.MSVBVM60.DLL___vbaFreeVar
cmp esi, ebp
jne 0x660e09f6
push 5
call fcn.66024fdc
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x660e0a0c
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x660e0a4f
push ebp
push esi
call edi
mov ebx, eax
cmp ebx, ebp
je 0x660e0a46
push 4
push ebx
call edi
cmp eax, esi
jne 0x660e0a3d
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x660e0a35
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x660e0a42
push ebp
push ebx
mov esi, ebx
call edi
mov ebx, eax
push 2
push ebx
jmp 0x660e0a0e
cmp ebx, ebp
jne 0x660e0a4d
push 5
call fcn.66024fdc
mov esi, ebx
cmp word [esp + 0x18], bp
je 0x660e0a5b
call fcn.6607cc73
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x20]
push 1
push eax
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
push ebp
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [esp + 0x20]
push ebp
push eax
push esi
call ebx
push eax
push ebp
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret 8
push ebx
call fcn.660243e5
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
mov dword [esp + 0x14], eax
call ebx
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x660e0af3
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jne 0x660e0ae6
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x660e0ae6
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x660e0aeb
push 2
push esi
jmp 0x660e0ab2
cmp esi, ebp
jne 0x660e09e2
push 5
call ebx
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x660e09e2
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
je 0x660e09e2
push 2
push esi
jmp 0x660e0af8