Function at 0x4087f7
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
pop ebx
xor esi, esi
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [eax]
call fcn.0040a51c
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp dword [ebp + 0x14], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
movsx eax, ax
mov dword [ebp + 8], eax
je 0x408856
mov eax, dword [esi]
push 0
push 0x11
and byte [eax], 0
mov eax, dword [esi]
mov byte [eax + 1], bl
mov eax, dword [esi]
mov byte [eax + 2], 0x11
call edi
mov ecx, dword [esi]
mov dword [ebp - 4], ebx
mov byte [ecx + 3], al
add dword [esi], 4
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x408887
cmp dword [ebp + 0x14], ebx
mov eax, dword [esi]
je 0x408868
and byte [eax], bl
jmp 0x40886b
mov byte [eax], 4
mov eax, dword [esi]
push ebx
push 0x12
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x12
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
cmp dword [ebp + 0x18], ebx
jne 0x408896
mov eax, dword [ebp + 8]
shr eax, 8
test al, 1
je 0x4088c8
cmp dword [ebp + 0x14], ebx
jne 0x4088a7
cmp dword [ebp + 0x10], ebx
je 0x4088a7
mov eax, dword [esi]
mov byte [eax], 4
jmp 0x4088ac
mov eax, dword [esi]
and byte [eax], 0
mov eax, dword [esi]
push ebx
push 0x10
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x10
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
movzx ebx, byte [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x4088df
cmp dword [ebp + 0x10], eax
je 0x4088df
mov ecx, dword [esi]
mov byte [ecx], 4
jmp 0x4088e4
mov ecx, dword [esi]
and byte [ecx], 0
mov ecx, dword [esi]
push eax
push ebx
mov byte [ecx + 1], 1
mov ecx, dword [esi]
mov byte [ecx + 2], bl
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jne 0x408911
cmp dword [ebp + 0x10], ecx
je 0x408911
mov byte [eax], 5
jmp 0x408914
mov byte [eax], 1
mov eax, dword [esi]
push ecx
push ebx
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], bl
call edi
mov ecx, dword [esi]
xor ebx, ebx
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
cmp dword [ebp + 0x18], ebx
mov eax, dword [esi]
jne 0x408942
mov ecx, dword [ebp + 8]
shr ecx, 8
test cl, 1
je 0x408972
cmp dword [ebp + 0x14], ebx
jne 0x408951
cmp dword [ebp + 0x10], ebx
je 0x408951
mov byte [eax], 5
jmp 0x408954
mov byte [eax], 1
mov eax, dword [esi]
push ebx
push 0x10
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x10
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
mov eax, dword [esi]
inc dword [ebp - 4]
cmp dword [ebp + 0x10], ebx
je 0x408998
mov byte [eax], 1
mov eax, dword [esi]
push ebx
push 0x12
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x12
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
mov eax, dword [esi]
inc dword [ebp - 4]
cmp dword [ebp + 0x14], ebx
je 0x4089bc
mov byte [eax], 1
mov eax, dword [esi]
push ebx
push 0x11
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x11
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret