Function at 0x4b0660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
and ecx, 7
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], 5
jae 0x4b0685
xor eax, eax
jmp 0x4b091e
mov edx, dword [ebp + 0x10]
add edx, 5
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx - 4]
mov dword [ebp - 0x20], eax
jmp 0x4b06b6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jae 0x4b06d6
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
and ecx, 0xfe
cmp ecx, 0xe8
jne 0x4b06d4
jmp 0x4b06d6
jmp 0x4b06ad
mov edx, dword [ebp - 8]
sub edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jb 0x4b06ec
jmp 0x4b08ea
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 3
jbe 0x4b0704
mov dword [ebp - 0x10], 0
jmp 0x4b0775
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov edx, dword [ebp - 0x10]
shl edx, cl
and edx, 7
mov dword [ebp - 0x10], edx
je 0x4b0775
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x4f24e4]
mov edx, 4
sub edx, ecx
mov eax, dword [ebp - 8]
mov cl, byte [eax + edx]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x4f24dc]
test eax, eax
je 0x4b0753
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4b0753
movzx edx, byte [ebp - 1]
cmp edx, 0xff
jne 0x4b0775
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
and ecx, 7
or ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4b0695
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x4b07a8
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xff
jne 0x4b08ce
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
shl eax, 0x18
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx]
shl edx, 0x10
or eax, edx
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp - 8]
movzx ecx, byte [edx + ecx]
shl ecx, 8
or eax, ecx
mov edx, 1
shl edx, 0
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx]
or eax, edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x18], 0
je 0x4b0809
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x4b0817
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
sub edx, ecx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x10], 0
jne 0x4b081f
jmp 0x4b086f
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x4f24e4]
shl ecx, 3
mov dword [ebp - 0x24], ecx
mov ecx, 0x18
sub ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
shr edx, cl
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
test eax, eax
je 0x4b0855
movzx ecx, byte [ebp - 2]
cmp ecx, 0xff
je 0x4b0855
jmp 0x4b086f
mov ecx, 0x20
sub ecx, dword [ebp - 0x24]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x4b07f5
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 1
sub eax, 1
not eax
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 8]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x18]
shr edx, 8
mov eax, 1
shl eax, 1
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 0x18]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0xc]
add edx, 5
mov dword [ebp - 0xc], edx
jmp 0x4b08e5
mov eax, dword [ebp - 0x10]
shl eax, 1
and eax, 7
or eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x4b0695
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 3
jbe 0x4b0902
mov dword [ebp - 0x28], 0
jmp 0x4b0913
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov eax, dword [ebp - 0x10]
shl eax, cl
and eax, 7
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret