Function at 0x402600
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42d4d0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x224], ecx
mov dword [ebp - 8], 0
push 0x10
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx eax, ax
test eax, eax
jge 0x40264f
push 0x7b
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x40264f
mov edx, dword [ebp + 0x20]
mov dword [edx], 0xfffffffe
xor eax, eax
jmp 0x40303b
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp + 0x28]
cmp ecx, dword [eax + 0x14]
jb 0x402664
xor eax, eax
jmp 0x40303b
lea edx, [ebp - 4]
push edx
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test eax, eax
jne 0x40268d
xor eax, eax
jmp 0x40303b
push 0x42d644
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x4026bc
mov eax, dword [0x42d644]
cmp eax, dword [ebp + 0xc]
je 0x4026e4
push 0x42d644
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
xor eax, eax
jmp 0x40303b
push 0x42d644
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
mov edx, dword [ebp - 8]
add edx, 2
cmp edx, dword [ebp + 0xc]
jae 0x403039
mov eax, dword [ebp - 8]
mov dword [0x42d640], eax
push 0
push 1
push 0x42d640
mov ecx, dword [ebp + 0x2c]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.0040175d
mov dword [0x42d63c], eax
cmp dword [0x42d63c], 0
jne 0x40274d
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x402705
mov eax, dword [0x42d640]
add eax, 1
mov dword [0x42d640], eax
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x40286b
mov edx, dword [0x42d63c]
mov eax, dword [edx]
push eax
push 1
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax + 1]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx]
push eax
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx esi, al
push 1
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx + 1]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx]
push edx
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx edx, al
add esi, edx
push 1
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx + 1]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx]
push edx
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx edx, al
add esi, edx
push esi
mov eax, dword [ebp + 0x2c]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x420d20
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.msvcr80.dll_sprintf]
add esp, 0x1c
push 0
push 0x420d4c
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 0x420d50
mov eax, dword [0x42d63c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.msvcr80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40288c
xor eax, eax
jmp 0x40303b
mov edx, dword [0x42d63c]
mov eax, dword [edx + 8]
and eax, 0x1600
jne 0x4028bb
push 0x420d54
mov ecx, dword [0x42d63c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.msvcr80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x402f70
push 1
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx + 1]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx]
push edx
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx edx, al
test edx, edx
jle 0x402f70
mov dword [0x42d638], 0
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x228]
sub edx, 2
mov dword [ebp - 0x228], edx
cmp dword [ebp - 0x228], 0x45
ja case.0x40293f.1
mov eax, dword [ebp - 0x228]
movzx ecx, byte [eax + 0x403068]
jmp dword [ecx*4 + 0x40304c]
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
movsx eax, byte [edx]
mov dword [0x42d634], eax
mov ecx, dword [ebp + 8]
add ecx, dword [0x42d640]
mov edx, dword [0x42d634]
lea eax, [ecx + edx + 1]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x402ac7
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x402ac7
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
movzx eax, word [edx]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x402ac7
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov eax, dword [edx]
mov dword [0x42d634], eax
mov ecx, dword [ebp + 8]
add ecx, dword [0x42d640]
mov edx, dword [0x42d634]
lea eax, [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [0x42d638], 1
jmp 0x402ac7
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [0x42d638], 1
jmp 0x402ac7
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov eax, dword [edx + 1]
mov dword [0x42d630], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0x24], 0
je 0x402abc
mov edx, dword [ebp - 0x224]
mov eax, dword [0x42d630]
cmp eax, dword [edx + 4]
jb 0x402abc
mov ecx, dword [ebp - 0x224]
mov edx, dword [0x42d630]
cmp edx, dword [ecx + 8]
ja 0x402abc
lea eax, [ebp - 4]
push eax
push 4
push 4
mov ecx, dword [0x42d630]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test eax, eax
je 0x402abc
push 0x42d644
push 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x42d630]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x402a9b
cmp dword [0x42d644], 4
jne 0x402a9b
mov dword [0x42d638], 1
push 0x42d644
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [0x42d630]
push eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
jmp 0x402ac7
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x402be0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [0x42d63c]
mov edx, dword [ecx]
push edx
push 1
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx + 1]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx]
push edx
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx esi, al
push 1
mov edx, dword [0x42d63c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx + 1]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax]
push ecx
mov edx, dword [0x42d63c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx ecx, al
add esi, ecx
push 1
mov edx, dword [0x42d63c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx + 1]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax]
push ecx
mov edx, dword [0x42d63c]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx ecx, al
add esi, ecx
push esi
mov edx, dword [ebp + 0x2c]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x420d5c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcr80.dll_sprintf]
add esp, 0x20
push 0
push 0x420d8c
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 1
mov edx, dword [0x42d63c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx + 1]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax]
push ecx
mov edx, dword [0x42d63c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx esi, al
add esi, dword [0x42d640]
push 1
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax + 1]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx]
push eax
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 0x10]
push edx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx eax, al
add esi, eax
push 1
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax + 1]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx]
push eax
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 0x14]
push edx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx eax, al
add esi, eax
mov dword [ebp - 8], esi
push 0x420d90
mov ecx, dword [0x42d63c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.msvcr80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x402d10
mov eax, dword [ebp - 8]
mov dword [ebp - 0x214], eax
push 0
push 1
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
mov ecx, dword [ebp - 0x224]
call fcn.0040175d
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x402d02
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 8]
and ecx, 0x4000
jne 0x402d10
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x402705
mov dword [0x42d62c], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x402dad
cmp dword [0x42d638], 0
je 0x402dad
mov dword [0x42d628], 0
jmp 0x402d4a
mov ecx, dword [0x42d628]
add ecx, 1
mov dword [0x42d628], ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [0x42d628]
cmp eax, dword [edx + 0x1c]
jge 0x402dad
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov ecx, dword [0x42d628]
imul ecx, ecx, 0x248
mov eax, dword [ebp - 0x224]
add ecx, dword [eax + 0x18]
call fcn.004013de
test eax, eax
je 0x402dab
mov ecx, dword [ebp + 0x20]
mov edx, dword [0x42d628]
mov dword [ecx], edx
mov eax, 1
jmp 0x40303b
jmp 0x402d3b
cmp dword [0x42d62c], 0
je 0x402f6b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x224]
mov edx, dword [eax]
cmp edx, dword [ecx + 4]
jb 0x402f6b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x224]
mov edx, dword [eax]
cmp edx, dword [ecx + 8]
ja 0x402f6b
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx eax, ax
test eax, eax
jge 0x402e05
push 0
push 0x420d98
push 0x420d9c
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 8]
and edx, 0x1200
je 0x402f12
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 0x28]
add eax, 1
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x224]
call fcn.0040176c
test eax, eax
je 0x402e6c
mov eax, 1
jmp 0x40303b
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test eax, eax
je 0x402f09
push 0x42d644
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x402ebe
mov ecx, dword [0x42d644]
cmp ecx, dword [ebp + 0xc]
je 0x402ee6
push 0x42d644
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
xor eax, eax
jmp 0x40303b
push 0x42d644
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
jmp 0x402f10
xor eax, eax
jmp 0x40303b
jmp 0x402f6b
mov eax, dword [0x42d63c]
mov ecx, dword [eax + 8]
and ecx, 0x400
je 0x402f6b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x28]
add edx, 1
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.0040176c
jmp 0x40303b
jmp 0x403034
push 1
mov edx, dword [0x42d63c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x2c]
add ecx, dword [0x42d640]
mov dl, byte [ecx + 1]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax]
push ecx
mov edx, dword [0x42d63c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx esi, al
add esi, dword [0x42d640]
push 1
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax + 1]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx]
push eax
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 0x10]
push edx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx eax, al
add esi, eax
push 1
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x2c]
add eax, dword [0x42d640]
mov cl, byte [eax + 1]
push ecx
mov edx, dword [ebp + 0x2c]
add edx, dword [0x42d640]
mov al, byte [edx]
push eax
mov ecx, dword [0x42d63c]
mov edx, dword [ecx + 0x14]
push edx
mov ecx, dword [ebp - 0x224]
call fcn.004016d6
movzx eax, al
add esi, eax
mov dword [ebp - 8], esi
jmp 0x402705
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00419014
mov esp, ebp
pop ebp
ret 0x28