Function at 0x40b410
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d6356
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
test ah, 0x80
je 0x40b44a
mov ecx, ebx
call fcn.0040bd00
jmp 0x40b95d
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.user32.dll_SendMessageA]
xor ebp, ebp
push ebp
push ebp
push 0x1032
push eax
call edi
mov esi, eax
cmp esi, 1
jl 0x40b95d
jne 0x40b74a
push 0x80
mov dword [esp + 0x1c], 0x4d86f4
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x1f
mov dword [esp + 0x2c], pe_nt_image_headers32
mov ecx, ebx
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x28], 1
call fcn.00412510
mov ecx, dword [ebx + 0xc]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
mov esi, eax
mov dword [esp + 0x24], ebp
call edi
mov ebp, eax
mov eax, dword [0x4fb828]
test eax, eax
mov dword [esp + 0x54], ebp
je 0x40b5f6
mov ecx, esi
call fcn.0041df00
test eax, eax
jne 0x40b5f6
mov edx, dword [ebx + 0xc]
push eax
push eax
push 0x1004
push edx
call edi
mov edi, eax
xor esi, esi
test edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], esi
jle 0x40b6c2
push esi
mov ecx, ebx
call fcn.004124c0
test eax, eax
je 0x40b5e4
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jl 0x40b5e4
cmp esi, ebp
jne 0x40b532
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x68]
lea edx, [ebx + 0x20c]
push eax
lea eax, [esp + 0x60]
push edx
push eax
call fcn.00442e30
lea ecx, [esp + 0x68]
push ecx
call fcn.00442c90
add esp, 0x10
mov dword [esp + 0x58], eax
test eax, eax
je 0x40b5e4
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 1]
cmp dword [esp + 0x20], edx
jne 0x40b5d0
mov eax, dword [esp + 0x2c]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004c7e90
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebp, eax
lea ecx, [edx*4 + 4]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c7e56
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
add esp, 8
add eax, edx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
inc esi
cmp esi, edi
mov dword [esp + 0x10], esi
jl 0x40b50b
jmp 0x40b6c2
push ebp
mov ecx, ebx
call fcn.004124c0
mov esi, eax
test esi, esi
je 0x40b6c2
mov eax, dword [esi + 0x3c]
test eax, eax
jge 0x40b61e
mov ecx, esi
call fcn.0041df00
test eax, eax
je 0x40b6c2
mov esi, dword [esi + 0x68]
lea eax, [ebx + 0x20c]
push esi
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00442e30
lea edx, [esp + 0x68]
push edx
call fcn.00442c90
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x40b6c2
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x40b6ae
mov eax, dword [esp + 0x2c]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004c7e90
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebp, eax
lea ecx, [edx*4 + 4]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c7e56
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add esp, 8
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x40b6f7
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x200]
push eax
mov eax, dword [0x4ee054]
push eax
push 0x207
push ecx
push edx
call fcn.00443680
add esp, 0x14
mov eax, dword [esp + 0x28]
mov dword [esp + 0x16c], 0xffffffff
test eax, eax
mov dword [esp + 0x18], 0x4d86f4
je 0x40b741
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x40b741
cmp esi, eax
jge 0x40b72d
test esi, esi
jl 0x40b72d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
jmp 0x40b72f
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x24]
add esp, 4
inc esi
cmp esi, eax
jl 0x40b720
mov ecx, dword [esp + 0x1c]
jmp 0x40b954
push 0x80
mov dword [esp + 0x3c], 0x4d86f4
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 0x1f
mov dword [esp + 0x4c], pe_nt_image_headers32
mov eax, 1
mov dword [esp + 0x10], ebp
mov dword [esp + 0x16c], eax
mov dword [esp + 0x48], eax
or eax, 0xffffffff
cmp esi, ebp
jle 0x40b8e7
mov dword [esp + 0x14], esi
jmp 0x40b7a0
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0xc]
push 2
push eax
push 0x100c
push edx
call edi
mov esi, eax
mov eax, dword [ebx + 0xc]
push 1
push esi
push 0x102c
push eax
mov dword [esp + 0x44], esi
call edi
test eax, eax
je 0x40b7ce
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
push esi
mov ecx, ebx
call fcn.004124c0
mov esi, eax
cmp esi, ebp
je 0x40b8a4
cmp dword [esi + 0x3c], ebp
jge 0x40b7f4
mov ecx, esi
call fcn.0041df00
test eax, eax
je 0x40b8a4
mov esi, dword [esi + 0x68]
lea edx, [ebx + 0x20c]
push esi
lea eax, [esp + 0x60]
push edx
push eax
call fcn.00442e30
lea ecx, [esp + 0x68]
push ecx
call fcn.00442c90
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x54], eax
je 0x40b8a4
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x40b890
mov eax, dword [esp + 0x4c]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004c7e90
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov ebp, eax
lea ecx, [edx*4 + 4]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004c7e56
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.user32.dll_SendMessageA]
add eax, edx
add esp, 8
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
xor ebp, ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x40b79c
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x40b8e7
mov ecx, dword [esp + 0x10]
dec eax
cmp ecx, eax
jne 0x40b8c8
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
push ebp
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x40b906
push 0xffffffffffffffff
call dword [sym.imp.user32.dll_MessageBeep]
jmp 0x40b906
mov eax, dword [0x4ee054]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x200]
push ebp
push eax
push 0x208
push ecx
push edx
call fcn.00443680
add esp, 0x14
mov eax, dword [esp + 0x48]
mov dword [esp + 0x16c], 0xffffffff
cmp eax, ebp
mov dword [esp + 0x38], 0x4d86f4
je 0x40b950
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, ebp
jle 0x40b950
cmp esi, eax
jge 0x40b93c
cmp esi, ebp
jl 0x40b93c
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + esi*4]
jmp 0x40b93e
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x44]
add esp, 4
inc esi
cmp esi, eax
jl 0x40b92f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004c7e56
add esp, 4
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret