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

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x140
mov dword [ebp - 0x11c], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov byte [ebp - 0x120], bl
mov word [ebp - 0x124], ax
mov eax, ecx
mov byte [ebp - 0x128], al
mov eax, edx
mov byte [ebp - 0x12c], al
mov word [ebp - 0xa], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xc], 0
cmp byte [ebp - 0x120], 0x90
jne 0x401a63
mov eax, dword [sym.imp.KERNEL32.dll_GetVersion]
call eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xa], 1
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp - 0x124]
ja 0x401b37
cmp byte [ebp - 0x12c], 0
je 0x401910
mov eax, dword [ebp - 0x11c]
mov ecx, eax
call method.CSendKeys.CarryDelay__
mov eax, dword [ebp - 0x10]
test eax, eax
js 0x401974
movzx eax, byte [ebp - 0x120]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x45
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_keybd_event]
call eax
sub esp, 0x10
movzx eax, byte [ebp - 0x120]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x45
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_keybd_event]
call eax
sub esp, 0x10
jmp 0x401a53
mov eax, dword [ebp - 0x10]
shr ax, 8
cmp al, 9
jbe 0x4019f4
lea edx, [ebp - 0x110]
mov eax, 0
mov ecx, 0xe
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xf4], 1
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x110], eax
movzx eax, byte [ebp - 0x120]
mov word [ebp - 0xf0], ax
movzx eax, word [ebp - 0xf0]
mov word [ebp - 0x10c], ax
mov dword [ebp - 0xec], 2
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 2
mov eax, dword [sym.imp.USER32.dll_SendInput]
call eax
sub esp, 0xc
jmp 0x401a53
mov dword [esp], 0x90
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
call eax
sub esp, 4
cwde
and eax, 1
test eax, eax
setne al
mov byte [ebp - 0xc], al
lea eax, [ebp - 0x110]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetKeyboardState]
call eax
sub esp, 4
cmp byte [ebp - 0xc], 0
je 0x401a36
movzx eax, byte [ebp - 0x80]
and eax, 0xfffffffe
mov byte [ebp - 0x80], al
jmp 0x401a40
movzx eax, byte [ebp - 0x80]
or eax, 1
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x110]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetKeyboardState]
call eax
sub esp, 4
movzx eax, word [ebp - 0xa]
add eax, 1
mov word [ebp - 0xa], ax
jmp 0x4018e9
movzx eax, byte [ebp - 0x120]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MapVirtualKeyA]
call eax
sub esp, 8
mov byte [ebp - 0xb], al
mov word [ebp - 0xa], 1
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp - 0x124]
ja 0x401b38
cmp byte [ebp - 0x12c], 0
je 0x401aaf
mov eax, dword [ebp - 0x11c]
mov ecx, eax
call method.CSendKeys.CarryDelay__
movzx eax, byte [ebp - 0x120]
mov dword [esp], eax
call method.CSendKeys.IsVkExtended_unsigned_char_
test al, al
je 0x401ac9
mov ebx, 1
jmp 0x401ace
mov ebx, 0
movzx ecx, byte [ebp - 0xb]
movzx edx, byte [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call method.CSendKeys.KeyboardEvent_unsigned_char__unsigned_char__long_
sub esp, 0xc
cmp byte [ebp - 0x128], 0
je 0x401b27
movzx ecx, byte [ebp - 0xb]
movzx edx, byte [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], 3
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call method.CSendKeys.KeyboardEvent_unsigned_char__unsigned_char__long_
sub esp, 0xc
movzx eax, word [ebp - 0xa]
add eax, 1
mov word [ebp - 0xa], ax
jmp 0x401a88
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10