Function at 0x4ae860
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x69c144
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
jne 0x4ae88f
xor eax, eax
jmp 0x4af1a3
mov al, byte [esi + 0x118]
test al, al
je 0x4ae8f8
mov cl, byte [esi + 0x119]
cmp cl, 0xff
je 0x4ae8f8
mov dl, byte [0x21ea818]
test dl, dl
je 0x4ae8f8
cmp al, byte [0x21ea819]
jne 0x4ae8be
cmp cl, byte [0x21ea81a]
je 0x4ae8ce
cmp al, byte [0x21ea81b]
jne 0x4ae8f8
cmp cl, byte [0x21ea81c]
jne 0x4ae8f8
mov eax, dword [esp + 0x138]
cmp eax, ebx
mov byte [esi + 0x118], 0
mov byte [esi + 0x119], 0xff
je 0x4ae8ee
mov byte [eax + 0xdc], 0xff
mov eax, 1
jmp 0x4af1a3
mov byte [0x21ea818], 0
mov ecx, dword [esi + 0x54]
cmp ecx, ebx
push edi
je 0x4ae934
call fcn.004bc660
test eax, eax
je 0x4ae92a
mov edi, dword [esi + 0x54]
cmp edi, ebx
je 0x4ae92a
mov ecx, edi
call fcn.004bcf70
push edi
call fcn.005b806d
add esp, 4
mov dword [esi + 0x54], ebx
mov eax, 1
jmp 0x4af1a2
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
je 0x4ae96a
call fcn.00425730
mov edi, eax
cmp edi, ebx
je 0x4ae960
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
je 0x4ae956
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x58], ebx
cmp edi, ebx
jle 0x4ae960
mov dword [esi + 0x114], edi
mov eax, 1
jmp 0x4af1a2
push ebp
mov ebp, dword [esp + 0x140]
xor bl, bl
test ebp, ebp
mov byte [esp + 0x13], 0xff
je 0x4ae997
mov eax, dword [ebp + 0xd8]
test eax, eax
jne 0x4ae98d
mov bl, byte [ebp + 0xdd]
mov cl, byte [ebp + 0xdc]
mov byte [esp + 0x13], cl
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x4aeab8
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0
call fcn.00502160
test eax, eax
je 0x4aeaae
cmp eax, 2
jne 0x4aea90
mov eax, dword [esp + 0x18]
cmp eax, dword [0x84f770]
jbe 0x4aea32
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4aea90
push 0xa40
call fcn.005b8072
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x138], 0
je 0x4aea05
push 0x12f
jmp 0x4aea67
xor eax, eax
push 0
push 0x447a0000
push 0x21f1d38
push 0x6aa4c0
mov ecx, 0x21efa50
mov dword [esp + 0x148], 0xffffffff
mov dword [esi + 0x54], eax
call fcn.00529cb0
jmp 0x4aea90
cmp eax, 0xee6b2800
jbe 0x4aea8d
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4aea90
push 0xa40
call fcn.005b8072
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x138], 1
je 0x4aea05
push 0x1bf3
call fcn.0041b230
add esp, 4
push eax
push 0xff
push 0xff
push 0xff
push 0
mov ecx, edi
call fcn.004bc830
jmp 0x4aea07
mov dword [esi + 0x5c], eax
mov edi, dword [esi + 0x50]
test edi, edi
je 0x4aeaae
mov ecx, edi
call fcn.00503650
push edi
call fcn.005b806d
add esp, 4
mov dword [esi + 0x50], 0
mov eax, 1
jmp 0x4af1a1
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
lea ecx, [esi + 0x5f0]
call fcn.00516c20
test eax, eax
jne 0x4af19c
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
lea ecx, [esi + 0xac4]
call fcn.00516c20
test eax, eax
jne 0x4af19c
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
lea ecx, [esi + 0x11c]
call fcn.00516c20
test eax, eax
je 0x4aecac
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], al
mov ecx, 0x40
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esi + 0x4c], ecx
mov ebx, 2
je 0x4aeb95
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + 8]
test eax, eax
je 0x4aeb86
mov cl, byte [eax + 0x128]
cmp cl, 1
jne 0x4aeb64
push 0xc
add eax, 0x20
push eax
lea edx, [esp + 0x24]
push edx
call fcn.005b87f0
mov byte [esp + 0x34], 0
jmp 0x4aeb83
cmp cl, bl
jne 0x4aeb86
add eax, 0x20
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x34]
push eax
call fcn.005b87f0
mov byte [esp + 0x138], 0
add esp, 0xc
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
mov dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x44]
cmp ecx, eax
jne 0x4aeb38
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aeba0
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x4aebe7
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4aebe0
push 0xa40
call fcn.005b8072
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x138], ebx
je 0x4aebdb
push 0x1bed
jmp 0x4aec2d
xor eax, eax
mov dword [esi + 0x54], eax
xor eax, eax
jmp 0x4af1a1
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aebf0
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x4aec58
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4aebe0
push 0xa40
call fcn.005b8072
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x138], 3
je 0x4aebdb
push 0x1bee
call fcn.0041b230
add esp, 4
push eax
push 0xff
push 0xff
push 0xff
push 0
mov ecx, edi
call fcn.004bc830
mov dword [esi + 0x54], eax
xor eax, eax
jmp 0x4af1a1
mov al, byte [esi + 0x118]
test al, al
mov byte [esp + 0x18], 3
je 0x4aec74
cmp byte [esi + 0x119], 0xff
je 0x4aec74
mov byte [esp + 0x18], bl
xor edx, edx
mov dl, byte [esi + 0x114]
xor ecx, ecx
mov cl, byte [esi + 0x119]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esi + 0x5c]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.0058ba20
add esp, 0x1c
mov eax, 0xb
jmp 0x4af1a1
mov eax, dword [0x703c18]
test eax, eax
mov edi, dword [0x21ebef8]
je 0x4aecd0
mov eax, dword [0x703b9c]
push eax
mov ecx, edi
call fcn.004256f0
test al, al
jne 0x4af19c
push 0x1c
mov ecx, edi
call fcn.004256f0
test al, al
je 0x4aed34
mov ecx, 0x21ec34c
call fcn.00520ff0
cmp ax, 0x12
je 0x4aecfb
mov ecx, 0x21ec34c
call fcn.00521ef0
test al, al
jne 0x4aed34
push 0xd
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esi + 0x4c], ecx
je 0x4aed34
nop
mov ecx, dword [esi + 0x4c]
mov edi, dword [ecx + 8]
mov eax, dword [edi + 0x124]
test eax, eax
jne 0x4aeeee
mov eax, ecx
mov edx, dword [eax]
mov dword [esi + 0x4c], edx
mov eax, dword [esi + 0x44]
mov ecx, edx
cmp ecx, eax
jne 0x4aed10
mov eax, dword [0x21ebf00]
cmp eax, 1
jne 0x4aefd3
mov eax, dword [0x21ebf04]
test eax, eax
jne 0x4af18d
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esi + 0x4c], ecx
je 0x4aedc9
jmp 0x4aed60
mov eax, dword [esi + 0x4c]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x124]
test eax, eax
je 0x4aedba
xor ebx, ebx
mov dword [0x703c18], ebx
mov ecx, 0x21ec34c
mov dword [edi + 0x124], ebx
call fcn.00520fb0
push ebx
mov ecx, 0x21ec34c
call fcn.00521a50
lea ebp, [edi + 0x20]
xor eax, eax
mov ecx, 0x41
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x21ec34c
call fcn.00522220
push eax
push 0x6a9d2c
push ebp
call fcn.005b8b8d
add esp, 0xc
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
mov dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x44]
cmp ecx, eax
jne 0x4aed60
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, eax
mov dword [esi + 0x4c], ecx
mov ebp, 1
je 0x4aee68
mov edx, dword [esi + 0x4c]
mov edi, dword [edx + 8]
mov eax, dword [esi + 4]
mov edx, dword [edi + 8]
mov ecx, dword [0x706454]
add edx, eax
cmp ecx, edx
jl 0x4aee54
mov edx, dword [edi + 0x10]
add edx, eax
cmp ecx, edx
jg 0x4aee54
mov eax, dword [esi + 8]
mov edx, dword [edi + 0xc]
mov ecx, dword [0x706458]
add edx, eax
cmp ecx, edx
jl 0x4aee54
mov edx, dword [edi + 0x14]
add edx, eax
cmp ecx, edx
jg 0x4aee54
mov dword [0x84efa8], ebx
mov dword [0x703c18], ebp
mov ecx, 0x21ec34c
mov dword [edi + 0x124], ebp
call fcn.00523c40
push ebp
mov ecx, 0x21ec34c
call fcn.00521a50
add edi, 0x20
push edi
push 0x21ec34c
call fcn.00523d10
add esp, 8
mov eax, dword [esi + 0x4c]
mov eax, dword [eax]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x44]
cmp dword [esi + 0x4c], eax
jne 0x4aede0
mov eax, dword [esi + 4]
mov edx, dword [0x706454]
lea ecx, [eax + 0xb0]
cmp edx, ecx
jl 0x4aef73
add eax, 0x150
cmp edx, eax
jg 0x4aef73
mov eax, dword [esi + 8]
mov ecx, dword [0x706458]
lea edi, [eax + 0x70]
cmp ecx, edi
jl 0x4aef79
add eax, 0x7f
cmp ecx, eax
jg 0x4aef79
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x4aeec5
mov ecx, edi
call fcn.00503650
push edi
call fcn.005b806d
add esp, 4
mov dword [esi + 0x50], ebx
push 0xefc
call fcn.005b8072
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x138], 4
je 0x4aef42
mov ecx, eax
call fcn.005033b0
jmp 0x4aef44
xor esi, esi
mov dword [0x703c18], esi
mov ecx, 0x21ec34c
mov dword [edi + 0x124], esi
call fcn.00520fb0
push esi
mov ecx, 0x21ec34c
call fcn.00521a50
lea esi, [edi + 0x20]
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x21ec34c
call fcn.00522220
push eax
push 0x6a9d2c
push esi
call fcn.005b8b8d
add esp, 0xc
mov eax, 1
jmp 0x4af1a1
xor eax, eax
mov edx, dword [esi + 4]
mov dword [esi + 0x50], eax
add edx, 0x32
mov dword [eax + 0xef4], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x50]
add eax, 0x32
mov dword [ecx + 0xef8], eax
mov edx, dword [0x706454]
mov dword [esp + 0x138], 0xffffffff
mov ecx, dword [0x706458]
mov al, byte [esi + 0x118]
test al, al
je 0x4af18d
cmp byte [esi + 0x119], 0xff
je 0x4af18d
mov eax, dword [esi + 4]
lea edi, [eax + 0x2f]
cmp edx, edi
jl 0x4af18d
add eax, 0x4f
cmp edx, eax
jg 0x4af18d
mov eax, dword [esi + 8]
lea edx, [eax + 0x4f]
cmp ecx, edx
jl 0x4af18d
add eax, 0x6f
cmp ecx, eax
jg 0x4af18d
mov dword [esi + 0x110], ebp
mov eax, ebp
jmp 0x4af1a1
cmp eax, 2
jne 0x4af18d
mov eax, dword [esi + 4]
mov ecx, dword [0x706454]
lea edx, [eax + 0x2f]
cmp ecx, edx
jl 0x4af14c
add eax, 0x4f
cmp ecx, eax
jg 0x4af14c
mov eax, dword [esi + 8]
mov ecx, dword [0x706458]
lea edx, [eax + 0x4f]
cmp ecx, edx
jl 0x4af14c
add eax, 0x6f
cmp ecx, eax
jg 0x4af14c
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x4af13b
test bl, bl
je 0x4af12f
mov cl, byte [esp + 0x13]
cmp cl, 0xff
je 0x4af12f
movzx eax, bl
movzx ecx, cl
lea eax, [eax + eax*2]
lea edi, [ecx + eax*8]
imul edi, edi, 0x22
xor edx, edx
mov dl, byte [edi + 0x8507fa]
xor eax, eax
mov al, byte [edi + 0x8507f9]
mov ecx, 0x856fcc
push edx
push eax
call fcn.0045f2c0
test eax, eax
je 0x4af0b2
mov cl, byte [eax + 0x24]
test cl, cl
je 0x4af0b2
test ebp, ebp
je 0x4af07e
mov byte [ebp + 0xdc], 0xff
push 0
push 0x447a0000
push 0x21f1d38
push 0x6aa4c0
mov ecx, 0x21efa50
call fcn.00529cb0
push 0x1bb
push 0x11
call fcn.0041d9a0
add esp, 8
mov eax, 1
jmp 0x4af1a1
mov cl, byte [esp + 0x13]
mov byte [esi + 0x118], bl
mov byte [esi + 0x119], cl
mov dword [esi + 0x114], 1
mov bl, byte [edi + 0x8507fb]
cmp bl, 1
jbe 0x4af11d
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4af0eb
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x58], 0
push 0x1860
call fcn.005b8072
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x138], 5
je 0x4af118
movzx ecx, bl
push ecx
mov ecx, eax
call fcn.00425ae0
jmp 0x4af11a
xor eax, eax
mov dword [esi + 0x58], eax
test ebp, ebp
je 0x4af128
mov byte [ebp + 0xdc], 0xff
mov eax, 1
jmp 0x4af1a1
test eax, eax
jne 0x4af13b
test bl, bl
je 0x4af11d
test eax, eax
je 0x4af128
mov dword [esi + 0x110], 0
mov eax, 1
jmp 0x4af1a1
mov eax, dword [esi + 0x110]
xor edi, edi
cmp eax, edi
je 0x4af179
mov byte [esi + 0x118], 0
mov byte [esi + 0x119], 0xff
mov dword [esi + 0x114], edi
mov dword [esi + 0x110], edi
mov eax, 1
jmp 0x4af1a1
push ebp
mov ecx, esi
call fcn.004ae150
test eax, eax
jne 0x4aebe0
cmp ebp, edi
jmp 0x4af11f
mov ecx, esi
call fcn.005166e0
neg eax
sbb eax, eax
neg eax
jmp 0x4af1a1
mov eax, 3
pop ebp
pop edi
mov ecx, dword [esp + 0x128]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 4