Function at 0x410880
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x124
push ebx
push ebp
mov bl, dl
mov dword [esp + 0x14], edx
push esi
mov esi, dword [esp + 0x134]
movzx eax, bl
or ax, si
push edi
mov edi, ecx
je 0x410e90
mov eax, dword [esp + 0x144]
mov ecx, 0xffc3d44d
test eax, eax
cmove eax, ecx
mov dword [esp + 0x144], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4afad8]
sete bh
cmp dword [0x4afb34], 0
je 0x4108de
mov byte [esp + 0x18], 1
test bh, bh
je 0x4108e3
mov byte [esp + 0x18], 0
cmp dword [0x4afb34], 1
je 0x4108f0
test bh, bh
je 0x4108f8
mov byte [esp + 0x140], 0
test bl, bl
jne 0x41090b
mov ecx, esi
call fcn.00413d90
mov bl, al
mov byte [esp + 0x1c], bl
jmp 0x41091c
test si, si
jne 0x41091c
xor dl, dl
mov cl, bl
call fcn.00413a80
movzx esi, ax
mov eax, esi
xor ecx, ecx
shr eax, 8
test al, al
setne cl
cmp dword [0x4afb34], 2
mov dword [esp + 0x28], ecx
jne case.default.0x410942
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x410942
jmp dword [eax*4 + 0x410e9c]
mov bl, 0x11
jmp 0x410953
mov bl, 0x10
jmp 0x410953
mov bl, 0x12
mov byte [esp + 0x1c], bl
mov ebp, dword [esp + 0x13c]
test ebp, ebp
je 0x410a89
push 0
mov edx, esi
mov cl, bl
call fcn.00412d50
add esp, 4
test al, al
je 0x410a25
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test edi, edi
jne 0x410995
movzx eax, bl
or byte [esp + eax + 0x30], 0x80
jmp 0x4109a2
cmp edi, 1
jne 0x4109a2
movzx eax, bl
and byte [esp + eax + 0x30], 0x7f
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x4109af
jmp dword [eax*4 + 0x410eb4]
test byte [esp + 0xd2], 0x80
jne 0x4109d1
test byte [esp + 0xd3], 0x80
jne 0x4109d1
and byte [esp + 0x41], 0x7f
jmp case.default.0x4109af
or byte [esp + 0x41], 0x80
jmp case.default.0x4109af
test byte [esp + 0xd0], 0x80
jne 0x4109f3
test byte [esp + 0xd1], 0x80
jne 0x4109f3
and byte [esp + 0x40], 0x7f
jmp case.default.0x4109af
or byte [esp + 0x40], 0x80
jmp case.default.0x4109af
test byte [esp + 0xd4], 0x80
jne 0x410a15
test byte [esp + 0xd5], 0x80
jne 0x410a15
and byte [esp + 0x42], 0x7f
jmp case.default.0x4109af
or byte [esp + 0x42], 0x80
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx esi, si
shl esi, 0x10
cmp edi, 1
je 0x410a46
mov eax, esi
or eax, 1
push eax
movzx eax, bl
push eax
push 0x100
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [esp + 0x140], 0
je 0x410a65
cmp edi, 2
jne 0x410a65
mov ecx, dword [0x4ac1d8]
mov ecx, dword [ecx + 0x64]
call fcn.004122c0
jmp 0x410a6d
test edi, edi
je 0x410e54
or esi, 0xc0000001
movzx eax, bl
push esi
push eax
push 0x101
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x410e54
cmp byte [0x4af0fc], 0
mov dword [0x4b11f8], edi
mov byte [0x4afb3e], bl
je 0x410af8
cmp bl, 0x12
je 0x410aad
cmp bl, 0xa4
je 0x410aad
cmp bl, 0xa5
jne 0x410af8
test bh, bh
jne 0x410af8
mov eax, dword [0x4b25d0]
mov byte [esp + 0x1a], 1
test al, 1
jne 0x410ae2
or dword [0x4b25d0], 1
push 0x49ec80
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b25d4], eax
mov eax, dword [0x4b25d4]
test eax, eax
je 0x410aef
push 0
call eax
mov byte [0x4af0fc], 0
jmp 0x410afd
mov byte [esp + 0x1a], 0
test bh, bh
lea ebp, [esp + 0x2c]
mov eax, 0x4b1200
cmove ebp, eax
mov al, byte [esp + 0x18]
cmp bl, 0xa5
jne 0x410ba2
test al, al
jne 0x410ba2
cmp dword [0x4af0c8], 0
je 0x410ba2
mov al, 1
mov byte [esp + 0x19], al
mov byte [esp + 0x17], al
test bh, bh
jne 0x410b42
mov eax, dword [0x4b11fc]
mov dword [esp + 0x20], eax
jmp 0x410b5f
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, eax
call fcn.004130e0
xor edx, edx
mov dword [esp + 0x20], eax
mov ecx, eax
call fcn.00413130
mov dword [ebp], eax
cmp dword [ebp], 0
je 0x410b74
mov cl, byte [esp + 0x15]
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], cl
jmp 0x410bea
push 0xa2
mov byte [esp + 0x1a], 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, ax
mov eax, dword [esp + 0x144]
shr ecx, 0xf
and ecx, 0xffffff01
mov dword [0x4af9bc], eax
mov dword [esp + 0x24], ecx
jmp 0x410bf2
mov byte [esp + 0x19], 0
mov byte [esp + 0x17], 0
test al, al
je 0x410bda
push 0
mov edx, esi
mov cl, bl
call fcn.00412d50
mov ecx, dword [esp + 0x2c]
mov dh, al
mov al, byte [esp + 0x19]
add esp, 4
mov dword [esp + 0x20], ecx
mov cl, byte [esp + 0x15]
mov byte [esp + 0x16], cl
mov dword [esp + 0x24], eax
jmp 0x410bf4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x15]
mov byte [esp + 0x16], al
mov al, byte [esp + 0x15]
mov dword [esp + 0x24], eax
xor dh, dh
mov byte [esp + 0x1b], dh
test bh, bh
jne 0x410c1b
mov eax, dword [0x4afb34]
cmp eax, 2
je 0x410c1b
cmp dword [0x4af0c8], 0
je 0x410c14
cmp eax, 1
jne 0x410c1b
mov byte [esp + 0x15], 1
jmp 0x410c20
mov byte [esp + 0x15], 0
mov bh, byte [esp + 0x18]
cmp edi, 1
je 0x410cf6
test bh, bh
je 0x410c4e
push dword [esp + 0x144]
mov dl, bl
mov cl, dh
push dword [esp + 0x2c]
push esi
call fcn.00411d90
add esp, 0xc
jmp 0x410ce2
cmp byte [esp + 0x19], 0
je 0x410c6b
mov eax, dword [0x4af9b8]
cmp dword [ebp], 3
cmove eax, dword [esp + 0x144]
mov dword [0x4af9b8], eax
push dword [esp + 0x144]
push dword [esp + 0x2c]
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x17], 0
mov dword [0x4af9b8], 0
je 0x410ce2
cmp dword [0x4af9bc], 0
mov byte [esp + 0x17], 0
je 0x410cb1
mov dword [0x4af9bc], 0
mov edx, 4
jmp 0x410cd6
cmp byte [esp + 0x24], 0
jne 0x410ce2
movzx eax, byte [esp + 0x16]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
and ax, cx
movzx edx, ax
neg edx
sbb edx, edx
add edx, 4
mov ecx, dword [esp + 0x20]
call fcn.00413130
mov dword [ebp], eax
cmp byte [esp + 0x15], 0
je 0x410cf6
push esi
mov dl, bl
xor cl, cl
call fcn.00412380
add esp, 4
cmp byte [esp + 0x140], 0
je 0x410d26
cmp edi, 2
jne 0x410d26
mov eax, dword [0x4ac1d8]
cmp dword [0x4afb34], edi
jne 0x410d1c
mov ecx, dword [eax + 0x68]
call fcn.004122c0
jmp 0x410d2e
mov ecx, dword [eax + 0x64]
call fcn.004122c0
jmp 0x410d2e
test edi, edi
je 0x410e0d
mov ecx, dword [esp + 0x28]
or ecx, 2
test bh, bh
je 0x410d55
push dword [esp + 0x144]
mov dl, bl
push ecx
mov cl, byte [esp + 0x23]
push esi
call fcn.00411d90
add esp, 0xc
jmp 0x410de2
cmp byte [esp + 0x19], 0
je 0x410d72
mov eax, dword [0x4af9b4]
cmp dword [ebp], 3
cmove eax, dword [esp + 0x144]
mov dword [0x4af9b4], eax
push dword [esp + 0x144]
push ecx
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x17], 0
mov dword [0x4af9b4], 0
je 0x410de2
cmp dword [0x4af9bc], 0
je 0x410db0
mov dword [0x4af9bc], 0
mov edx, 4
jmp 0x410dd6
cmp byte [esp + 0x24], 0
je 0x410de2
movzx eax, byte [esp + 0x16]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
mov edx, 0
test cx, ax
setne dl
add edx, 3
mov ecx, dword [esp + 0x20]
call fcn.00413130
mov dword [ebp], eax
cmp dword [ebp], 0
je 0x410df9
mov eax, 0x138
cmp si, ax
jne 0x410df9
and byte [0x4b11f7], 0xfe
cmp byte [esp + 0x15], 0
je 0x410e0d
push esi
mov dl, bl
mov cl, 1
call fcn.00412380
add esp, 4
cmp byte [esp + 0x1a], 0
je 0x410e54
mov eax, dword [0x4b25d0]
test al, 1
jne 0x410e40
or dword [0x4b25d0], 1
push 0x49ec80
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b25d4], eax
mov eax, dword [0x4b25d4]
test eax, eax
je 0x410e4d
push 1
call eax
mov byte [0x4af0fc], 1
cmp byte [esp + 0x140], 0
je 0x410e90
cmp dword [0x4afb34], 2
mov eax, dword [0x4ac1d8]
jne 0x410e7e
mov ecx, dword [eax + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
jmp fcn.004122c0
mov ecx, dword [eax + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
jmp fcn.004122c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret