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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x982d3d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x982fc8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040954c
mov eax, dword [ebp - 8]
mov edx, 0x982fe4
call fcn.0040a67c
jne 0x982dc0
push 0
push 0
push 0
push 0x20
call sub.user32.dll_MapVirtualKeyW
push eax
push 0x20
call sub.user32.dll_keybd_event
mov eax, dword [0xa403fc]
mov eax, dword [eax]
call fcn.00548840
push 0
push 2
push 0
push 0x20
call sub.user32.dll_MapVirtualKeyW
push eax
push 0x20
call sub.user32.dll_keybd_event
mov eax, dword [0xa403fc]
mov eax, dword [eax]
call fcn.00548840
jmp 0x982f90
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, 0x982ff4
mov eax, dword [ebp - 4]
call fcn.0097f92c
mov eax, dword [ebp - 0x18]
mov edx, 0x98301c
call fcn.0040a67c
sete byte [ebp - 0x13]
mov ebx, 1
jmp 0x982f77
cmp byte [ebp - 0x13], 0
je 0x982e1a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
movzx edx, word [edx + ebx*2 - 2]
call fcn.0040a2a0
mov eax, dword [ebp - 0x1c]
call fcn.00982b60
jmp 0x982f68
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
movzx edx, word [edx + ebx*2 - 2]
mov ecx, 0
call fcn.004098b8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0040a350
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, word [edx + ebx*2 - 2]
call fcn.0040a2a0
mov edx, dword [ebp - 0x28]
pop eax
call fcn.0040a67c
je 0x982e76
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
movzx edx, word [edx + ebx*2 - 2]
call fcn.0040a2a0
mov eax, dword [ebp - 0x2c]
call fcn.00982b60
jmp 0x982f68
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2 - 2]
push eax
call sub.user32.dll_VkKeyScanW
mov word [ebp - 0x12], ax
cmp word [ebp - 0x12], 0xffff
jne 0x982ea4
push ebp
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2 - 2]
call fcn.00982a64
pop ecx
jmp 0x982f68
movzx eax, byte [ebp - 0x12]
mov word [ebp - 0x10], ax
movzx eax, word [0x983020]
mov word [ebp - 0xe], ax
mov si, pe_nt_image_headers32
mov edi, 3
test word [ebp - 0x12], si
je 0x982eef
mov eax, esi
sub ax, 0x100
je 0x982edc
sub ax, 0x100
je 0x982ee3
sub ax, 0x200
je 0x982eea
jmp 0x982eef
or word [ebp - 0xe], 1
jmp 0x982eef
or word [ebp - 0xe], 4
jmp 0x982eef
or word [ebp - 0xe], 2
add esi, esi
dec edi
jne 0x982ec0
cmp byte [ebp + 0x10], 0
je 0x982f55
push 0x14
call sub.user32.dll_GetKeyState
and ax, 0xff
cmp ax, 1
jne 0x982f55
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2 - 2]
cmp ax, 0x41
jb 0x982f27
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2 - 2]
cmp ax, 0x5a
jbe 0x982f43
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2 - 2]
cmp ax, 0x61
jb 0x982f55
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2 - 2]
cmp ax, 0x7a
ja 0x982f55
test byte [ebp - 0xe], 1
je 0x982f50
and word [ebp - 0xe], 0xfffe
jmp 0x982f55
or word [ebp - 0xe], 1
push 0
push 0
xor ecx, ecx
movzx edx, word [ebp - 0xe]
movzx eax, word [ebp - 0x10]
call fcn.0094ae44
inc ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0097d35c
mov eax, dword [ebp - 8]
call fcn.0040961c
cmp ebx, eax
jg 0x982f90
cmp byte [0xa4a778], 0
je 0x982df7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x982fcf
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00409184
lea eax, [ebp - 0x24]
call fcn.00409148
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00409184
lea eax, [ebp - 8]
call fcn.00409124
ret