Function at 0x423031
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
push ebx
shr eax, 0x18
push esi
push edi
test al, 1
mov esi, ecx
je 0x423077
mov eax, dword [ebp + 0xc]
sub eax, 0xd
je 0x423070
sub eax, 4
je 0x423067
dec eax
jne 0x423077
mov dword [ebp + 0xc], 0xa5
jmp 0x423077
mov dword [ebp + 0xc], 0xa3
jmp 0x423077
mov dword [ebp + 0xc], 0x1234
xor eax, eax
mov ecx, 0x461ec8
mov edx, dword [ecx]
cmp edx, dword [ebp + 0xc]
je 0x4231d0
add ecx, 8
inc eax
cmp ecx, 0x462120
jb 0x42307e
lea ebx, [esi + 8]
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_GetKeyboardState]
push dword [esi]
lea edi, [esi + 4]
push 0
push edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_ToAsciiEx]
push 0
push dword [ebp + 0xc]
call ebx
test byte [esi + 0x1a], 0x80
mov dword [ebp + 0x10], eax
je 0x42315d
test byte [esi + 0x19], 0x80
je 0x42315d
cmp eax, 1
jl 0x42315d
mov al, byte [edi]
cmp al, 0x20
jb 0x4230e2
cmp al, 0x7e
jbe 0x4230ea
cmp al, 0xa0
jb 0x42315d
cmp al, 0xff
ja 0x42315d
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x423101
mov dword [ebp - 0xc], 1
push 0xa4
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x423115
or dword [ebp - 0xc], 4
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x423129
or dword [ebp - 0xc], 8
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jne 0x423137
mov dword [ebp - 0xc], 0xd
mov edx, dword [ebp + 0x10]
cmp edx, ecx
jle 0x42315d
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edx
movzx edx, byte [edi + ecx]
mov dword [eax], edx
add eax, 4
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x423144
cmp dword [ebp + 0x10], 0
jne 0x42325b
push dword [esi]
and byte [esi + 0xab], 0
and byte [esi + 0xaa], 0
and byte [esi + 0x19], 0
push 0
push edi
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
call ebx
mov ebx, eax
test ebx, ebx
jge 0x423238
movzx eax, byte [edi]
sub eax, 0x27
je 0x42322a
sub eax, 0x37
je 0x423221
dec eax
dec eax
je 0x423218
sub eax, 0x1e
je 0x42320f
sub eax, 0x2a
jne 0x423238
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ah, 0x80
je 0x4231c7
push 0x12
call esi
test ah, 0x80
jne 0x42320f
mov dword [ebp - 0x1c], 0xfe57
jmp 0x423231
mov edi, dword [eax*8 + 0x461ecc]
mov esi, 0xffe9
push 1
cmp edi, esi
mov dword [ebp - 0x1c], edi
pop ebx
je 0x4231ee
cmp edi, 0xffea
jne 0x42325e
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x42325e
xor eax, eax
cmp edi, esi
setne al
add eax, 0xffe7
mov dword [ebp - 0x1c], eax
jmp 0x42325e
mov dword [ebp - 0x1c], 0xfe53
jmp 0x423231
mov dword [ebp - 0x1c], 0xfe50
jmp 0x423231
mov dword [ebp - 0x1c], 0xfe52
jmp 0x423231
mov dword [ebp - 0x1c], 0xfe51
mov dword [ebp - 4], 1
cmp ebx, 1
jl 0x42325b
xor ecx, ecx
test ebx, ebx
jle 0x42325b
mov eax, dword [ebp - 4]
add dword [ebp - 4], ebx
lea eax, [ebp + eax*4 - 0x1c]
movzx edx, byte [edi + ecx]
mov dword [eax], edx
add eax, 4
inc ecx
cmp ecx, ebx
jl 0x42324d
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push 5
pop ecx
lea esi, [ebp - 0x1c]
mov edi, eax
mov dword [ebp + ebx*4 - 0x1c], 0xffffff
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret 0xc