Function at 0x100089b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov ebx, eax
xor eax, eax
push 0xff
xor esi, esi
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov byte [ebp - 3], al
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x117]
push esi
push eax
mov byte [ebp - 0xc], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebx + 4], 0x100
mov dword [ebp - 0x14], esi
jne 0x10008bd7
push edi
mov edi, dword [ebx + 0xc]
test edi, 0x2000000
jne 0x10008bd6
mov eax, dword [ebx]
or edi, 0x2000000
mov dword [ebx + 0xc], edi
call fcn.100088f0
mov eax, dword [0x1001fdbc]
mov ecx, dword [0x1001fcb4]
inc eax
mov dword [0x1001fdbc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x10008a6b
mov dword [ebp - 0x10], esi
test eax, eax
je 0x10008a66
lea esi, [eax + 0x13]
and esi, 0xfffffff0
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10008a66
push esi
mov ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, dword [ebp - 0x10]
jmp 0x10008aa4
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10008aa4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add edx, 0x1003
and edx, 0xfffff000
push edx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov dword [0x1001fcb4], esi
test esi, esi
je 0x10008bd6
mov bl, byte [ebx + 8]
movsx eax, bl
add eax, 0xfffffff8
mov byte [ebp - 0xc], bl
cmp eax, 0x9b
ja case.0x10008ad0.10
movzx ecx, byte [eax + 0x10008bfc]
jmp dword [ecx*4 + 0x10008be0]
mov edx, dword [str._bks_]
mov ax, word [0x1001c148]
mov dword [ebp - 0xc], edx
mov word [ebp - 8], ax
jmp 0x10008b7b
mov ecx, dword [str._ret_]
mov dx, word [0x1001c150]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
jmp 0x10008b7b
mov eax, dword [str._tab_]
mov cx, word [0x1001c158]
mov dword [ebp - 0xc], eax
mov word [ebp - 8], cx
jmp 0x10008b7b
mov edx, dword [str._del_]
mov ax, word [0x1001c160]
mov dword [ebp - 0xc], edx
mov word [ebp - 8], ax
jmp 0x10008b7b
mov ecx, dword [str._ins_]
mov dx, word [0x1001c168]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
jmp 0x10008b7b
mov byte [ebp - 0xc], 0
jmp 0x10008b7b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x10008b7b
movsx eax, byte [ebp - 0xc]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x118]
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_ToAscii]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xc], cl
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008b81
sub eax, edx
je 0x10008bd6
movsx edx, byte [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x10008bd6
lea eax, [ebp - 0xc]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008ba3
mov edi, dword [0x1001fcb4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10008bb3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10008600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret