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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov word [ebp - 6], cx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x672535
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.user32.dll_IsWindow
test eax, eax
je 0x672519
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
movzx esi, ax
shl esi, 0x10
or esi, 1
cmp byte [ebp + 8], 0
je 0x672306
or esi, 0x1000000
mov eax, 0x200
call fcn.00406e90
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x672512
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
add eax, 0x100
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004079b4
movzx eax, word [0x672548]
cmp ax, word [ebp - 6]
je 0x672367
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_AttachThreadInput
test byte [ebp - 6], 1
je 0x672374
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 0x80
test byte [ebp - 6], 2
je 0x672387
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x12], 0x80
or esi, 0x20000000
test byte [ebp - 6], 4
je 0x672394
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x11], 0x80
test byte [ebp - 6], 8
je 0x6723a1
mov eax, dword [ebp - 0xc]
mov byte [eax + 1], 0x80
test byte [ebp - 6], 0x10
je 0x6723ae
mov eax, dword [ebp - 0xc]
mov byte [eax + 2], 0x80
test byte [ebp - 6], 0x20
je 0x6723bb
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 0x80
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetKeyboardState
test byte [ebp - 6], 2
je 0x67240a
push esi
movzx eax, di
push eax
push 0x104
push ebx
call sub.user32.dll_PostMessageW
mov edx, 0x32
mov eax, 0x14
call fcn.0043f094
push eax
call sub.kernel32.dll_Sleep
or esi, 0xc0000000
push esi
movzx eax, di
push eax
push 0x105
push ebx
call sub.user32.dll_PostMessageW
jmp 0x6724b7
mov eax, dword [0x6a38f0]
mov eax, dword [eax]
mov edx, 0x672558
call fcn.0040aea8
jne 0x672443
push ebp
mov edx, pe_nt_image_headers32
xor eax, eax
call fcn.00672210
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x672437
sub eax, 4
mov eax, dword [eax]
push 0x1c
mov edx, dword [ebp - 4]
push edx
push eax
call sub.user32.dll_SendInput
push esi
movzx eax, di
push eax
push pe_nt_image_headers32
push ebx
call sub.user32.dll_PostMessageW
mov edx, 0x32
mov eax, 0x14
call fcn.0043f094
push eax
call sub.kernel32.dll_Sleep
or esi, 0xc0000000
push esi
movzx eax, di
push eax
push 0x101
push ebx
call sub.user32.dll_PostMessageW
mov eax, dword [0x6a38f0]
mov eax, dword [eax]
mov edx, 0x672558
call fcn.0040aea8
jne 0x6724b7
push ebp
mov eax, edi
mov edx, 0x103
call fcn.00672210
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x6724ab
sub eax, 4
mov eax, dword [eax]
push 0x1c
mov edx, dword [ebp - 4]
push edx
push eax
call sub.user32.dll_SendInput
movzx eax, word [0x672548]
cmp ax, word [ebp - 6]
je 0x6724ea
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 0xc]
add eax, 0x100
push eax
call sub.user32.dll_SetKeyboardState
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_AttachThreadInput
mov eax, dword [0x6a3b00]
mov eax, dword [eax]
call fcn.00620db0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x672519
cmp dword [ebp - 0xc], 0
je 0x672511
mov eax, dword [ebp - 0xc]
call fcn.00406eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67253c
lea eax, [ebp - 4]
mov edx, dword [0x6721e8]
call fcn.0040cfc0
ret