Function at 0x42711b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
and dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
and eax, 7
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 5
jae 0x42713e
xor eax, eax
jmp 0x427362
mov eax, dword [ebp + 0x10]
add eax, 5
mov dword [ebp + 0x10], eax
or dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax - 4]
mov dword [ebp - 0x14], eax
jmp 0x42716a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jae 0x427188
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
and eax, 0xfe
cmp eax, 0xe8
jne 0x427186
jmp 0x427188
jmp 0x427163
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x42719e
jmp 0x427337
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jbe 0x4271b3
and dword [ebp - 4], 0
jmp 0x42721d
mov ecx, dword [ebp - 0xc]
dec ecx
mov eax, dword [ebp - 4]
shl eax, cl
and eax, 7
mov dword [ebp - 4], eax
je 0x42721d
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x405978]
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax + ecx]
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x405970]
test eax, eax
je 0x4271fd
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x4271fd
movzx eax, byte [ebp - 0x15]
cmp eax, 0xff
jne 0x42721d
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
shl eax, 1
and eax, 7
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
jmp 0x42714b
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 4]
test eax, eax
je 0x427240
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 4]
cmp eax, 0xff
jne 0x42731d
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 4]
shl eax, 0x18
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 3]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 2]
shl ecx, 8
or eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 1]
or eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x18], 0
je 0x427282
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x427290
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 4], 0
jne 0x427298
jmp 0x4272df
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x405978]
shl eax, 3
mov dword [ebp - 0x24], eax
push 0x18
pop ecx
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
shr eax, cl
mov byte [ebp - 0x25], al
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x4272cb
movzx eax, byte [ebp - 0x25]
cmp eax, 0xff
je 0x4272cb
jmp 0x4272df
push 0x20
pop ecx
sub ecx, dword [ebp - 0x24]
xor eax, eax
inc eax
shl eax, cl
dec eax
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x42726e
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
and eax, 1
dec eax
not eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 4], al
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 3], al
mov eax, dword [ebp - 0x1c]
shr eax, 8
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 1], cl
mov eax, dword [ebp - 8]
add eax, 5
mov dword [ebp - 8], eax
jmp 0x427332
mov eax, dword [ebp - 4]
shl eax, 1
and eax, 7
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
jmp 0x42714b
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
push 3
pop eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
dec ecx
mov esi, dword [ebp - 4]
shl esi, cl
and esi, 7
cmp eax, edx
sbb eax, eax
not eax
and eax, esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret 0x14