Function at 0x4ebc34
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
call fcn.00405a50
lea eax, [ebp - 0x4c]
mov edx, dword [0x4def00]
call fcn.00405a70
xor eax, eax
push ebp
push 0x4ec302
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x4ebc95
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004ebb38
jmp 0x4ec2b4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ea0ec
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4ec2b4
cmp dword [ebp + 0xc], 0
je 0x4ebd1e
cmp dword [ebp + 0x14], 0
jge 0x4ebcc5
xor eax, eax
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x4ebcd2
mov dword [ebp + 0x10], 1
add dword [ebp + 0x10], 1
jno 0x4ebcdd
call fcn.00403c1c
cmp dword [ebp + 0x14], 0
jne 0x4ebcf2
mov eax, dword [0x57438c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x2c]
call fcn.00560ac0
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0x6b0
push eax
push 0
mov ecx, 0x20000
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00501578
jmp 0x4ec2b4
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0053392c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004f97e8
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4ebd5c
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4ebd64
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x4ebdbd
cmp dword [ebp + 0x14], 0
jle 0x4ebdaa
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x20000
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004eafc4
mov dword [ebp - 0x30], eax
jmp 0x4ebe13
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x30], eax
jmp 0x4ebe13
cmp dword [ebp + 0x14], 0
jle 0x4ebde0
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x20000
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004eafc4
mov dword [ebp - 0x30], eax
jmp 0x4ebe13
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4ebe13
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_AttachThreadInput
cmp dword [ebp - 0x34], 0
je 0x4ebe28
mov eax, dword [0x57438c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.00560ac0
cmp dword [ebp - 0x30], 0
je 0x4ec2b4
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004e6fa4
mov edx, dword [ebp - 0x18]
mov eax, 0x4ec314
call fcn.004059bc
test eax, eax
jle 0x4ebee4
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x4ec334
mov edx, 0x4ec33c
mov eax, dword [ebp - 0xc]
call fcn.004af81c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.00405514
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4ec334
mov edx, 0x4ec344
mov eax, dword [ebp - 0xc]
call fcn.004af81c
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0xc]
call fcn.00405514
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, 0x4ec334
mov edx, 0x4ec34c
mov eax, dword [ebp - 0xc]
call fcn.004af81c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0xc]
call fcn.00405514
xor eax, eax
mov dword [ebp + 0x10], eax
push 0x60006
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004ecc20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0053392c
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0053392c
mov eax, dword [0x574604]
cmp byte [eax], 0
je 0x4ec080
cmp dword [ebp + 0x10], 0
jne 0x4ec04f
push 0x14
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
cmp byte [ebp + 8], 0
je 0x4ebfc1
push 0
xor ecx, ecx
mov edx, 0x23
mov eax, dword [ebp - 4]
call fcn.004f9aec
push 0xa
call sub.kernel32.dll_Sleep_1
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.0053392c
push 0
mov ecx, 1
mov edx, 0x10
mov eax, dword [ebp - 4]
call fcn.004f9aec
push 0xa
call sub.kernel32.dll_Sleep_1
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.0053392c
push 0
xor ecx, ecx
mov edx, 0x24
mov eax, dword [ebp - 4]
call fcn.004f9aec
push 0xa
call sub.kernel32.dll_Sleep_1
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.0053392c
push 0
mov ecx, 2
mov edx, 0x10
mov eax, dword [ebp - 4]
call fcn.004f9aec
push 0x50
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x4ec354
mov edx, 0x4ec35c
mov eax, dword [ebp - 0xc]
call fcn.004af81c
mov eax, dword [ebp - 0x1c]
call fcn.0040569c
test eax, eax
jle 0x4ec23c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], 1
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
dec eax
test edx, edx
je 0x4ec005
cmp eax, dword [edx - 4]
jb 0x4ec00a
call fcn.00403c14
inc eax
movzx eax, word [edx + eax*2 - 2]
push eax
push 0x102
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageW
mov eax, dword [ebp - 0x10]
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
jne 0x4ec042
push 0xa
call sub.kernel32.dll_Sleep_1
mov edx, 0xa
mov eax, dword [ebp - 4]
call fcn.0053392c
inc dword [ebp - 0x10]
dec dword [ebp - 0x38]
jne 0x4ebff3
jmp 0x4ec23c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00405514
lea eax, [ebp - 0x28]
push eax
push 0x3e8
push 2
mov eax, dword [ebp - 0x1c]
call fcn.0040568c
push eax
push 0
push 0xc
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_SendMessageTimeoutW
jmp 0x4ec23c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404f2c
cmp dword [ebp + 0x10], 0
jne 0x4ec21b
push 0x14
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
push 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x4ec36c
mov edx, 0x4ec378
mov eax, dword [ebp - 0x14]
call fcn.004af7d0
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
call fcn.00404d20
mov dword [ebp - 0x10], 1
jmp 0x4ec1fb
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0040f308
cmp al, 1
jne 0x4ec162
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4ec0f9
cmp eax, dword [edx - 4]
jb 0x4ec0fe
call fcn.00403c14
inc eax
movzx eax, byte [edx + eax - 1]
mov edx, pe_nt_image_headers32
mul edx
jno 0x4ec112
call fcn.00403c1c
mov edx, dword [ebp - 0x10]
add edx, 1
jno 0x4ec11f
call fcn.00403c1c
mov ecx, dword [ebp - 0x14]
dec edx
test ecx, ecx
je 0x4ec12c
cmp edx, dword [ecx - 4]
jb 0x4ec131
call fcn.00403c14
inc edx
movzx edx, byte [ecx + edx - 1]
add eax, edx
jno 0x4ec140
call fcn.00403c1c
movzx eax, ax
push eax
push 0x286
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
add dword [ebp - 0x10], 1
jno 0x4ec15d
call fcn.00403c1c
jmp 0x4ec1f0
mov eax, dword [0x5743fc]
cmp byte [eax], 0
je 0x4ec19a
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4ec17e
cmp eax, dword [edx - 4]
jb 0x4ec183
call fcn.00403c14
inc eax
movzx eax, byte [edx + eax - 1]
push eax
push 0x286
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4ec1c6
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4ec1ac
cmp eax, dword [edx - 4]
jb 0x4ec1b1
call fcn.00403c14
inc eax
movzx eax, byte [edx + eax - 1]
push eax
push 0x102
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4ec1d6
cmp eax, dword [edx - 4]
jb 0x4ec1db
call fcn.00403c14
inc eax
cmp byte [edx + eax - 1], 0xd
jne 0x4ec1f0
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0053392c
add dword [ebp - 0x10], 1
jno 0x4ec1fb
call fcn.00403c1c
mov eax, dword [ebp - 0x14]
call fcn.00404f64
cmp eax, dword [ebp - 0x10]
jge 0x4ec0d8
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0053392c
jmp 0x4ec23c
lea eax, [ebp - 0x28]
push eax
push 0x3e8
push 2
mov eax, dword [ebp - 0x14]
call fcn.00405168
push eax
push 0
push 0xc
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_SendMessageTimeoutA
push 0
push 0xffffffffffffffff
push 0xb9
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 0x2c]
jne 0x4ec26a
push 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004ecd44
jmp 0x4ec294
push 0x752f752f
push 0
push 0x201
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
push 0x752f752f
push 0
push 0x202
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0053392c
cmp dword [ebp + 0x10], 0
jne 0x4ec2b4
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0053392c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec309
lea eax, [ebp - 0x5c]
call fcn.00404c88
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.004054c8
lea eax, [ebp - 0x4c]
mov edx, dword [0x4def00]
call fcn.00405b40
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004054c8
lea eax, [ebp - 0x14]
call fcn.00404c88
lea eax, [ebp - 0xc]
call fcn.004054b0
ret