Function at 0x660a8ba2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov ecx, 0x6610f470
mov dword [ebp - 4], edi
call fcn.6600381b
test eax, eax
jne 0x660a8bcd
mov eax, 0x800a0005
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x660a8c06
cmp dword [esi + 0x38], edi
je 0x660a8c06
cmp dword [ebp + 0x10], edi
jne 0x660a8c33
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x660a8c33
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x404]
cmp ecx, esi
jne 0x660a8c0a
mov ecx, dword [ebp + 0xc]
add eax, 0x400
cmp ecx, dword [eax]
jbe 0x660a8c06
mov dword [eax], ecx
xor eax, eax
jmp 0x660a8bc6
cmp ecx, edi
je 0x660a8c1f
push 1
push dword [eax + 0x400]
push ecx
call fcn.660a8ba2
mov eax, dword [ebp - 8]
mov dword [eax + 0x404], esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x400], eax
jmp 0x660a8c06
mov eax, dword [ebp - 8]
add eax, 0x404
cmp esi, dword [eax]
jne 0x660a8c52
mov dword [eax], edi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x400]
cmp dword [ebp + 0xc], eax
jae 0x660a8c52
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jne 0x660a8c74
test byte [esi + 0x70], 0x20
je 0x660a8c6d
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0xe8]
and eax, 0x30
cmp al, 0x20
jne 0x660a8c74
mov dword [ebp + 0xc], 1
mov edi, dword [esi + 0x70]
mov ebx, dword [esi + 0x70]
or byte [esi + 0x71], 0xc1
mov eax, dword [esi + 0x70]
shl edi, 0x17
shl ebx, 0x11
sar edi, 0x1f
sar ebx, 0x1f
cmp dword [ebp + 0xc], 0
jne 0x660a8cb6
shl eax, 0x1c
sar eax, 0x1f
test al, al
je 0x660a8ca9
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x660a8cc7
mov dword [ebp + 0xc], 1
cmp dword [esi + 0xc0], 0
je 0x660a8d64
or byte [esi + 0x71], 8
mov ecx, dword [esi + 0x70]
and edi, 1
and ebx, 1
shl edi, 8
mov dword [ebp + 8], ebx
mov eax, edi
shl dword [ebp + 8], 0xe
mov ebx, 0xffffbeff
and ah, 0xbf
and ecx, ebx
or eax, ecx
or eax, dword [ebp + 8]
test ah, 8
mov dword [esi + 0x70], eax
jne 0x660a8d40
cmp dword [ebp - 4], 0
jge 0x660a8d40
mov ecx, eax
shl ecx, 0x1c
sar ecx, 0x1f
test cl, cl
je 0x660a8d2a
mov ecx, dword [esi + 8]
or ah, 0x41
mov dword [esi + 0x70], eax
lea eax, [esi + 8]
push 0
push eax
call dword [ecx + 0x28]
mov eax, dword [esi + 0x70]
and edi, 0xffffbfff
and eax, ebx
or edi, eax
or edi, dword [ebp + 8]
mov dword [esi + 0x70], edi
cmp dword [ebp + 0xc], 0
je 0x660a8d40
cmp dword [esi + 0x48], 0
je 0x660a8d40
mov ecx, dword [esi + 8]
lea eax, [esi + 8]
push eax
call dword [ecx + 0x2c]
and byte [esi + 0x71], 0x7f
mov eax, dword [esi + 0x70]
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x660a8d5c
test al, 4
jne 0x660a8d5c
push 0
push 0
push esi
call fcn.66021f14
mov eax, dword [ebp - 4]
jmp 0x660a8bc6
cmp dword [ebp + 0xc], 1
jne 0x660a8d8b
mov eax, dword [esi + 0x48]
test eax, eax
je 0x660a8d7a
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x660a8cc7
mov dword [ebp + 0xc], 2
mov eax, dword [esi + 0x70]
shl eax, 0x16
sar eax, 0x1f
test al, al
je 0x660a8da9
push 1
push 0
push dword [esi + 0x38]
call dword [sym.imp.ole32.dll_OleLockRunning]
and byte [esi + 0x71], 0xfd
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x660a8db8
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp + 0xc]
dec eax
dec eax
je 0x660a8dd9
dec eax
jne 0x660a8cc7
mov eax, dword [esi + 0x38]
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 4], eax
jmp 0x660a8cc7
mov eax, dword [esi + 0x38]
push 0
mov ecx, dword [eax]
jmp 0x660a8dcd