Function at 0x10015180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100690c2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
cmp dword [ebp + 0xc], eax
jl 0x10015690
mov esi, dword [ebp + 0x10]
cmp esi, edx
jl 0x10015690
add eax, 0x22
cmp dword [ebp + 0xc], eax
jg 0x10015690
lea eax, [edx + 0x22]
cmp esi, eax
jg 0x10015690
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1001523b
sub eax, 2
jne 0x100156d1
cmp dword [ecx + 0x34], 1
jne 0x10015213
mov dword [ecx + 0x34], 6
mov al, 1
mov dword [0x71c5e8], 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x71c5e8], 6
jne 0x100156d1
mov dword [ecx + 0x34], 6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x14], 0
je 0x100152bc
cmp dword [0x5cedcc], 0
je 0x100152a1
mov dword [ecx + 0x34], 1
mov dword [0x71c5e8], 1
mov dword [0x71c5c4], 0xffff
mov dword [0x71c5c0], 0xa
mov dword [0x71c5bc], 0
mov eax, dword [0x5cedcc]
mov dword [0x71c624], eax
mov eax, dword [0x5cedd0]
mov dword [0x71c628], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov dword [ecx + 0x34], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x100156d1
mov dword [ecx + 0x34], 0
mov dword [0x71c5e8], 0
cmp eax, 1
jne 0x100154ac
cmp byte [0x10086079], 0
je 0x100153ed
push 7
push dword [0x5cedcc]
mov eax, 0x4d1c40
call eax
add esp, 8
test eax, eax
jne 0x100156d1
push 0x10
call fcn.10042cf2
mov esi, eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 4], 0
push 0x3bec
mov dword [esi + 8], 1
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.10042d35
mov dword [esi + 0xc], eax
add esp, 8
mov dword [0x100860a4], esi
mov ecx, dword [esi + 4]
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x10015364
mov eax, dword [esi + 0xc]
mov byte [ecx + eax], 0x82
inc dword [esi + 4]
inc dword [esi]
mov esi, dword [0x100860a4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffff
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x10], 0
call fcn.10015110
mov edx, dword [0x100860a4]
mov esi, dword [edx + 4]
lea eax, [esi + 2]
cmp eax, 0x3bea
jae 0x100153b1
mov ecx, dword [edx + 0xc]
mov ax, word [0x5cedcc]
mov word [esi + ecx], ax
add dword [edx + 4], 2
add dword [edx], 2
mov edx, dword [0x100860a4]
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x100153d0
mov eax, dword [edx + 0xc]
mov byte [ecx + eax], 0
inc dword [edx + 4]
inc dword [edx]
mov edx, dword [0x100860a4]
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x10015676
mov eax, dword [edx + 0xc]
mov byte [ecx + eax], 0
jmp 0x1001566b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xd
jae 0x100154ac
push 0x10
call fcn.10042cf2
mov esi, eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 4], 1
push 0x3bec
mov dword [esi + 8], 1
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.10042d35
mov dword [esi + 0xc], eax
add esp, 8
mov dword [0x100860a4], esi
mov ecx, dword [esi + 4]
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x1001545c
mov eax, dword [esi + 0xc]
mov byte [ecx + eax], 0x8c
inc dword [esi + 4]
inc dword [esi]
mov esi, dword [0x100860a4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffff
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x10], 0
call fcn.10015110
mov edx, dword [0x100860a4]
mov esi, dword [edx + 4]
lea eax, [esi + 2]
cmp eax, 0x3bea
jae 0x100153d0
mov ecx, dword [edx + 0xc]
mov ax, word [0x71c624]
mov word [esi + ecx], ax
add dword [edx + 4], 2
add dword [edx], 2
jmp 0x100153ca
cmp dword [0x71c628], 1
jbe 0x10015562
cmp byte [0x10086079], 0
jne 0x10015562
mov dword [0x71c5b8], 0xffff
mov eax, 0x480cd0
mov dword [0x71c5b4], 0xa
mov dword [0x71c5b0], 0
call eax
mov esi, eax
test esi, esi
je 0x1001553f
mov eax, dword [0x10086168]
mov ecx, dword [esi + 0x1c]
cdq
sub eax, edx
shr ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [0x10086164]
cdq
sub eax, edx
shr ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, 0x71c5e8
mov dword [esi + 0x18], eax
mov eax, 0xa
mov dword [0x5d16ac], esi
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, 0x71c5e8
mov dword [0x5d16ac], esi
xor eax, eax
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x10
call fcn.10042cf2
mov esi, eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 4], 2
push 0x3bec
mov dword [esi + 8], 1
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.10042d35
mov dword [esi + 0xc], eax
add esp, 8
mov dword [0x100860a4], esi
mov ecx, dword [esi + 4]
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x100155be
mov eax, dword [esi + 0xc]
mov byte [ecx + eax], 0x78
inc dword [esi + 4]
inc dword [esi]
mov esi, dword [0x100860a4]
mov eax, dword [0x71c5c4]
mov ecx, esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x71c5c0]
mov dword [ebp - 0x14], eax
mov eax, dword [0x71c5bc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10015110
mov edx, dword [0x100860a4]
mov esi, dword [edx + 4]
lea eax, [esi + 2]
cmp eax, 0x3bea
jae 0x1001560e
mov ecx, dword [edx + 0xc]
mov ax, word [0x71c624]
mov word [esi + ecx], ax
add dword [edx + 4], 2
add dword [edx], 2
mov edx, dword [0x100860a4]
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x1001562d
mov eax, dword [edx + 0xc]
mov byte [ecx + eax], 0
inc dword [edx + 4]
inc dword [edx]
mov edx, dword [0x100860a4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffff
push eax
mov ecx, edx
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x10], 0
call fcn.10015110
mov edx, dword [0x100860a4]
mov esi, dword [edx + 4]
lea eax, [esi + 1]
cmp eax, 0x3bea
jae 0x10015676
mov ecx, dword [edx + 0xc]
mov al, byte [0x71c628]
mov byte [esi + ecx], al
inc dword [edx + 4]
inc dword [edx]
mov edx, dword [0x100860a4]
push edx
call fcn.1001f120
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
sub eax, 0
je 0x100156be
sub eax, 2
jne 0x100156d1
cmp dword [ecx + 0x34], 6
jne 0x100156d1
mov dword [ecx + 0x34], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x14], 0
jne 0x100156d1
cmp dword [ecx + 0x34], 0
je 0x100156d1
mov dword [ecx + 0x34], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14