Function at 0x4eb051
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor ecx, ecx
mov cl, ah
mov dword [ebp - 0x44], ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor ecx, ecx
mov cl, ah
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0xb0]
cmp dword [eax + 0xc4], ecx
je 0x4eb10c
mov dword [ebp - 4], 1
jmp 0x4eb113
mov dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0
jne 0x4eb1d1
cmp dword [ebp - 4], 0
je 0x4eb1d1
mov eax, dword [ebp + 0xc]
add eax, 0xc4
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xb0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c8]
push eax
call fcn.004e9825
add esp, 0x10
cmp dword [ebp + 0x10], 0
jg 0x4eb163
cmp dword [ebp + 0x14], 0
jle 0x4eb19a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
add edi, 0xb0
add esi, 0xc4
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
add edi, 0xd8
add esi, 0xc4
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
jmp 0x4eb1cc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
add edi, 0xc4
add esi, 0xb0
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
add edi, 0xd8
add esi, 0xb0
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
jmp 0x4eb206
cmp dword [ebp - 0x44], 0
je 0x4eb206
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0xd8]
cmp dword [eax + 0xb0], ecx
jne 0x4eb1ff
mov dword [ebp - 0x34], 1
jmp 0x4eb206
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx + 0xb0]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx + 0xb4]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x10], 0
je 0x4eb68c
cmp dword [ebp + 0x14], 0
jne 0x4eb68c
cmp dword [ebp - 4], 0
je 0x4eb25a
cmp dword [ebp - 0x44], 0
je 0x4eb3fd
mov eax, dword [ebp + 0x10]
add dword [ebp - 0x38], eax
cmp dword [ebp - 0x40], 0
je 0x4eb381
cmp dword [ebp + 0x10], 0
jge 0x4eb2f5
mov eax, dword [ebp - 0x34]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x1c]
lea esi, [eax + ecx + 0xb0]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004eabb0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jl 0x4eb2cd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx]
cmp eax, 0xd
jne 0x4eb2cd
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x1c], eax
jle 0x4eb2e3
cmp dword [ebp - 0x48], 0
je 0x4eb2f0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0
jmp 0x4eb37c
mov eax, dword [ebp - 0x34]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x1c]
lea esi, [eax + ecx + 0xb0]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004eabb0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x4eb34f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx - 1]
cmp eax, 0xd
jne 0x4eb34f
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x1c], eax
jg 0x4eb36f
cmp dword [ebp - 0x44], 0
je 0x4eb36f
cmp dword [ebp - 0x48], 0
je 0x4eb37c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0
jmp 0x4eb3fd
cmp dword [ebp + 0x10], 0
jle 0x4eb3c7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
cmp dword [eax + 0xec], ecx
jle 0x4eb3c2
cmp dword [ebp - 0x38], 0
je 0x4eb3c2
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx - 1]
cmp eax, 0xd
jne 0x4eb3c2
mov dword [ebp - 0x48], 1
jmp 0x4eb3fd
cmp dword [ebp - 0x38], 0
jl 0x4eb3fd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
cmp dword [eax + 0xec], ecx
jle 0x4eb3fd
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx]
cmp eax, 0xd
jne 0x4eb3fd
mov dword [ebp - 0x48], 1
cmp dword [ebp - 0x38], 0
jge 0x4eb413
mov dword [ebp - 8], 1
jmp 0x4eb687
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x38]
cmp dword [eax + ecx + 0x24], edx
jle 0x4eb4a2
cmp dword [ebp - 0x28], 0
je 0x4eb496
dec dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [ebp - 0x28]
shl ecx, 4
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x24]
add eax, dword [ecx + edx + 0x2c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4eb491
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx - 1]
cmp eax, 0x20
je 0x4eb48e
cmp dword [ebp - 0x44], 0
je 0x4eb491
cmp dword [ebp - 0x48], 0
jne 0x4eb491
dec dword [ebp - 0x38]
jmp 0x4eb49d
mov dword [ebp - 8], 1
jmp 0x4eb687
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [ebp - 0x28]
shl ecx, 4
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x24]
add eax, dword [ecx + edx + 0x2c]
cmp eax, dword [ebp - 0x38]
jl 0x4eb537
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [ebp - 0x28]
shl ecx, 4
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x24]
add eax, dword [ecx + edx + 0x2c]
cmp eax, dword [ebp - 0x38]
jne 0x4eb5cd
cmp dword [ebp - 0x44], 0
je 0x4eb512
cmp dword [ebp - 0x34], 1
jne 0x4eb512
cmp dword [ebp + 0x10], 0
jg 0x4eb5cd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
cmp dword [eax + 0xec], ecx
jle 0x4eb537
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx]
cmp eax, 0xd
je 0x4eb5cd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf4]
dec eax
cmp eax, dword [ebp - 0x28]
jle 0x4eb598
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x44], 0
je 0x4eb593
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
cmp dword [eax + 0xec], ecx
jle 0x4eb593
cmp dword [ebp - 0x48], 0
jne 0x4eb593
cmp dword [ebp - 0x34], 1
jne 0x4eb593
inc dword [ebp - 0x38]
jmp 0x4eb5c8
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [ebp - 0x28]
shl ecx, 4
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x24]
add eax, dword [ecx + edx + 0x2c]
cmp eax, dword [ebp - 0x38]
jge 0x4eb5c8
mov dword [ebp - 8], 1
jmp 0x4eb687
cmp dword [ebp + 0x10], 0
jle 0x4eb631
mov eax, dword [ebp - 0x34]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx + 0xb8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx + 0x2c]
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
add eax, dword [ecx + edx + 0x30]
cmp eax, dword [ebp - 0x38]
jg 0x4eb62c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf0]
dec eax
cmp eax, dword [ebp - 0x4c]
jle 0x4eb62c
inc dword [ebp - 0x4c]
jmp 0x4eb687
cmp dword [ebp + 0x10], 0
jge 0x4eb687
mov eax, dword [ebp - 0x34]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx + 0xb8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx + 0x2c]
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov edx, dword [ebp - 0x3c]
add eax, dword [ecx + edx + 0x30]
cmp eax, dword [ebp - 0x38]
jle 0x4eb687
cmp dword [ebp - 0x4c], 0
je 0x4eb687
dec dword [ebp - 0x4c]
jmp 0x4eb7f7
cmp dword [ebp + 0x10], 0
jne 0x4eb766
cmp dword [ebp + 0x14], 0
je 0x4eb766
mov dword [ebp - 0x40], 0
jle 0x4eb6c8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf4]
dec eax
cmp eax, dword [ebp - 0x28]
jle 0x4eb6c8
inc dword [ebp - 0x28]
jmp 0x4eb6df
cmp dword [ebp + 0x14], 0
jge 0x4eb6df
cmp dword [ebp - 0x28], 0
je 0x4eb6df
dec dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx + 0xbc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xec]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf0]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1e0]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1cc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c8]
push eax
call fcn.004e7630
add esp, 0x30
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0xffffffff
jmp 0x4eb7f7
cmp dword [ebp + 0x14], 0
jle 0x4eb7ba
cmp dword [ebp + 0x10], 0
jle 0x4eb7a2
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [ebp - 0x28]
shl ecx, 4
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x24]
add eax, dword [ecx + edx + 0x2c]
mov dword [ebp - 0x38], eax
jmp 0x4eb7b5
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x38], eax
jmp 0x4eb7f0
cmp dword [ebp + 0x10], 0
jle 0x4eb7e2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xec]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf4]
dec eax
mov dword [ebp - 0x28], eax
jmp 0x4eb7f0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], 0
cmp dword [ebp - 8], 0
je 0x4eb806
jmp 0x4eb9e7
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
cmp dword [eax + ecx + 0x24], edx
jne 0x4eb837
mov dword [ebp - 0xc], 1
jmp 0x4eb83e
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x2c], 0
jge 0x4eb879
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
shl eax, 4
lea eax, [eax + eax*2]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e71d8
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x4eb87f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x40], 0
je 0x4eb8c2
cmp dword [ebp + 0x10], 0
jge 0x4eb8b0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004eabb0
add esp, 0xc
jmp 0x4eb8c2
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004eabb0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004e9511
add esp, 8
cmp dword [ebp - 0x44], 0
jne 0x4eb8ef
lea esi, [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
add edi, 0xd8
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp dword [eax + 0xd8], ecx
jne 0x4eb98d
cmp dword [ebp - 4], 0
je 0x4eb93d
cmp dword [ebp - 0x44], 0
je 0x4eb93d
mov eax, dword [ebp + 0xc]
add eax, 0xc4
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xb0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c8]
push eax
call fcn.004e9825
add esp, 0x10
lea esi, [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
add edi, 0xd8
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
add edi, 0xb0
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
add edi, 0xc4
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push 1
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004e958e
add esp, 0xc
jmp 0x4eb99f
push 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ea740
add esp, 0xc
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004eaa3a
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004ebe0b
add esp, 0x10
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c0], 0
je 0x4eb9e7
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004f0e37
add esp, 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
pop edi
pop esi
pop ebx
leave
ret