Function at 0x409500
Capabilities:
Create process on windows
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [edx + 0x90]
mov dword [ebp - 0x10], ecx
test ebx, ebx
je 0x409562
mov esi, eax
test byte [ebx + 0x18], 0x10
je 0x409570
mov eax, dword [ebx + 0x10]
mov edi, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409598
mov eax, dword [ebx + 0x44]
cmp eax, 0x2e
je 0x409562
mov ecx, dword [esi + 0x94]
cmp eax, 0x2e002e
je 0x409610
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4096c0
test ecx, ecx
je 0x40955b
mov edx, ecx
mov eax, edi
call fcn.004025e0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4095e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x12
call dword [sym.imp.user32.dll_GetKeyState]
mov edx, dword [esi]
sub esp, 4
test ax, ax
mov eax, ebx
js 0x409600
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00405320
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, ebx
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub esp, 0x10
mov dword [esp], eax
mov eax, esi
call fcn.004070e0
mov eax, dword [ebx + 0x44]
cmp eax, 0x2e
jne 0x409532
jmp 0x409562
mov eax, edi
xor edx, edx
call fcn.004069e0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00401480
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00403370
cmp word [ebx + 0x48], 0
jne 0x409543
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x40962c
lea eax, [esi + 4]
mov edx, ebx
call fcn.004025e0
mov edx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x18]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x18f
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x186
mov eax, dword [esi + 4]
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, ebx
sub esp, 0x10
mov dword [esp], eax
mov eax, esi
call fcn.00407280
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x409562
jmp 0x4095e0
test ecx, ecx
je 0x4096e5
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4096e5
mov edx, dword [ecx + 4]
test edx, edx
je 0x4096e5
cmp dword [edx + 0x44], 0x2e
je 0x409788
test byte [edx + 0x18], 0x10
mov dword [ebp - 0x18], edx
jne 0x409700
mov edx, dword [edi + 0x84]
test edx, edx
jne 0x40955b
jmp 0x40962c
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1c]
lea edx, [esi + 4]
sub esp, 0x10
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0xc], 1
xor ecx, ecx
mov dword [esp + 4], eax
lea eax, [esi + 4]
mov dword [esp], 0x1f
call fcn.004026b0
mov ecx, dword [esi + 0x160]
test ecx, ecx
jne 0x4096e5
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.004069e0
test eax, eax
je 0x4096e5
mov eax, dword [ebp - 0x1c]
call fcn.00401480
mov dword [esi + 0x160], 1
jmp 0x4096e5
mov eax, dword [edx]
test eax, eax
je 0x4096dc
cmp dword [eax + 0x44], 0x2e002e
mov edx, eax
jne 0x4096dc
cmp word [eax + 0x48], 0
jne 0x4096dc
mov edx, dword [eax]
test edx, edx
cmove edx, eax
jmp 0x4096dc