Function at 0x660e1d02
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 0x660e1e01
cmp dword [edi + 8], 0x80020004
jne 0x660e1e01
or esi, 0xffffffff
xor ebp, ebp
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add eax, 0x50
cmp si, bp
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], 1
je 0x660e1e0a
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x23c]
call fcn.660253c4
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
cmp word [ebx], 8
jne 0x660e1f6c
push dword [ebx + 8]
push ebp
call fcn.660e60de
mov esi, eax
cmp esi, ebp
jne 0x660e1eb1
mov ecx, dword [ebx + 8]
cmp ecx, ebp
jne 0x660e1e19
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 0x660e1e23
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 0x660e1e59
cmp dword [esp + 0x10], 0
je 0x660e1e55
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.660e3363
add esp, 0xc
test eax, eax
je 0x660e1e55
push 2
push esi
jmp 0x660e1dbe
xor ebp, ebp
xor esi, esi
jmp 0x660e1d2f
push edi
call fcn.660e464b
mov dword [esp + 0x18], eax
jmp 0x660e1d56
mov eax, dword [ecx - 4]
shr eax, 1
jmp 0x660e1d99
push ebp
call fcn.6600fdd3
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x660e1db3
mov ebx, dword [ebx + 8]
cmp ebx, ecx
jne 0x660e1e4e
xor eax, eax
push ecx
push ecx
push ebp
push dword [esp + 0x1c]
push eax
push ebx
push ecx
push ecx
call esi
jmp 0x660e1db3
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x660e1e3c
test esi, esi
jne 0x660e1e9f
push 5
call ebx
push eax
call edi
mov esi, eax
test esi, esi
je 0x660e1e9f
cmp dword [esp + 0x10], 0
je 0x660e1eaf
lea eax, [esp + 0x34]
push 0x1ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebp
jl 0x660e1e9a
lea eax, [esp + eax + 0x34]
push ebp
sub eax, ebp
push eax
push dword [esp + 0x18]
call fcn.660e3363
add esp, 0xc
test eax, eax
je 0x660e1e9f
push 2
push esi
jmp 0x660e1e5e
cmp dword [esp + 0x10], 0
je 0x660e1eaf
push dword [esp + 0x10]
call fcn.660177d3
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
call sym.MSVBVM60.DLL___vbaFreeVar
cmp esi, ebp
jne 0x660e1ec5
push 5
call fcn.66025592
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x660e1edb
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x660e1f1e
push ebp
push esi
call edi
mov ebx, eax
cmp ebx, ebp
je 0x660e1f15
push 4
push ebx
call edi
cmp eax, esi
jne 0x660e1f0c
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x660e1f04
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x660e1f11
push ebp
push ebx
mov esi, ebx
call edi
mov ebx, eax
push 2
push ebx
jmp 0x660e1edd
cmp ebx, ebp
jne 0x660e1f1c
push 5
call fcn.66025592
mov esi, ebx
cmp word [esp + 0x18], bp
je 0x660e1f2a
call fcn.6607d8b3
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.6602499b
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 0x660e1fc2
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 0x660e1fb5
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x660e1fb5
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x660e1fba
push 2
push esi
jmp 0x660e1f81
cmp esi, ebp
jne 0x660e1eb1
push 5
call ebx
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x660e1eb1
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 0x660e1eb1
push 2
push esi
jmp 0x660e1fc7