Function at 0x4cbdc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x28], edx
cmp dword [ebp + 8], 0
js 0x4cbeba
mov esi, ecx
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 2]
xor edx, edx
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, 0x8a
mov ecx, 7
cmove ecx, eax
mov dword [ebp - 0x14], ecx
setne dl
add edx, 3
mov dword [ebp - 0x18], edx
xor edi, edi
dec edi
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x10], esi
jmp 0x4cbf5c
mov dword [ebp - 0x1c], eax
movzx edi, word [esi + 0xb0e]
mov eax, 0x10
movzx edx, word [esi + 0xb0c]
mov dword [ebp - 0x18], edx
mov ecx, ebx
shl edx, cl
mov dword [ebp - 0x14], edi
sub eax, edi
or dx, word [esi + 0x170c]
cmp ebx, eax
jg 0x4cbe40
add ebx, dword [ebp - 0x14]
jmp 0x4cbe95
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [esi + 0x1710]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [esi + 0x1710], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffd
cmp ebx, 0xf
jge 0x4cbec2
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
add ebx, 2
jmp 0x4cbf1e
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edi, ax
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x170c], di
add ebx, 0xfffffff2
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x1710], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4cbf93
xor ecx, ecx
cmp edx, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x18], eax
xor ecx, 7
mov dword [ebp - 0x14], ecx
mov edi, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + 1]
cmp edx, ecx
mov edx, eax
je 0x4cbeba
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
movzx eax, word [eax + edx*4 + 6]
mov edx, ebx
mov ebx, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jge 0x4cbf7f
cmp edx, eax
je 0x4cbf49
cmp ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
jge 0x4cc037
mov ecx, dword [esi + 0x1710]
jmp 0x4cbfff
mov dword [ebp - 0x14], 0x8a
mov dword [ebp - 0x18], 3
jmp 0x4cbf47
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], bl
mov al, byte [esi + 0x170d]
mov byte [ebp - 0x14], al
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea eax, [ebx + 1]
mov dword [esi + 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [ecx + ebx], al
mov eax, dword [esi + 0x1710]
mov cl, 0x10
sub cl, al
shr edx, cl
mov word [esi + 0x170c], dx
lea ecx, [edi + eax]
add ecx, 0xfffffff0
mov dword [esi + 0x1710], ecx
mov ebx, dword [ebp - 0x1c]
dec ebx
mov edx, dword [ebp - 0x20]
je 0x4cbf27
mov dword [ebp - 0x1c], ebx
movzx edi, word [esi + edx*4 + 0xace]
mov eax, 0x10
sub eax, edi
movzx edx, word [esi + edx*4 + 0xacc]
mov ebx, edx
shl ebx, cl
or bx, word [esi + 0x170c]
mov word [esi + 0x170c], bx
cmp ecx, eax
jg 0x4cbfa3
add ecx, edi
jmp 0x4cbfec
mov eax, ebx
mov ebx, dword [esi + 0x1710]
test edx, edx
je 0x4cc0d5
cmp edx, edi
je 0x4cbe0e
movzx ecx, word [esi + edx*4 + 0xace]
mov eax, esi
mov esi, 0x10
mov dword [ebp - 0x14], ecx
sub esi, ecx
movzx edi, word [eax + edx*4 + 0xacc]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [eax + 0x170c]
mov word [eax + 0x170c], dx
cmp ebx, esi
jg 0x4cc088
add ebx, dword [ebp - 0x14]
jmp 0x4cc0c8
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0x14]
lea esi, [ecx + 1]
mov dword [eax + 0x14], esi
mov byte [ebx + ecx], dl
mov bl, byte [eax + 0x170d]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x14]
lea esi, [edx + 1]
mov dword [eax + 0x14], esi
mov byte [ecx + edx], bl
mov edx, dword [eax + 0x1710]
mov cl, 0x10
sub cl, dl
shr edi, cl
mov word [eax + 0x170c], di
mov ecx, dword [ebp - 0x14]
lea ebx, [ecx + edx]
add ebx, 0xfffffff0
ret
invalid
mov esi, eax
mov dword [eax + 0x1710], ebx
jmp 0x4cbe11
movzx edx, word [esi + 0x170c]
cmp dword [ebp - 0x1c], 9
jle 0x4cc1f2
movzx edi, word [esi + 0xb16]
movzx eax, word [esi + 0xb14]
mov dword [ebp - 0x18], eax
mov ecx, ebx
shl eax, cl
or edx, eax
mov eax, 0x10
mov dword [ebp - 0x14], edi
sub eax, edi
cmp ebx, eax
jg 0x4cc110
add ebx, dword [ebp - 0x14]
jmp 0x4cc165
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea ebx, [esi + 1]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov byte [ecx + esi], dl
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x1710]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
mov edi, edx
mov dword [esi + 0x1710], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfff6
cmp ebx, 0xa
jge 0x4cc18f
mov ecx, ebx
shl eax, cl
or edi, eax
mov word [esi + 0x170c], di
add ebx, 7
jmp 0x4cbf1e
movzx edx, ax
mov ecx, ebx
shl eax, cl
mov ebx, edi
or ebx, eax
mov word [esi + 0x170c], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x170c], dx
add ebx, 0xfffffff7
jmp 0x4cbf1e
movzx edi, word [esi + 0xb12]
movzx eax, word [esi + 0xb10]
mov dword [ebp - 0x18], eax
mov ecx, ebx
shl eax, cl
or edx, eax
mov eax, 0x10
mov dword [ebp - 0x14], edi
sub eax, edi
cmp ebx, eax
jg 0x4cc21c
add ebx, dword [ebp - 0x14]
jmp 0x4cc271
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea ebx, [esi + 1]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov byte [ecx + esi], dl
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x1710]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
mov edi, edx
mov dword [esi + 0x1710], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffe
cmp ebx, 0xe
jge 0x4cc29b
mov ecx, ebx
shl eax, cl
or edi, eax
mov word [esi + 0x170c], di
add ebx, 3
jmp 0x4cbf1e
movzx edx, ax
mov ecx, ebx
shl eax, cl
mov ebx, edi
or ebx, eax
mov word [esi + 0x170c], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x170c], dx
add ebx, 0xfffffff3
jmp 0x4cbf1e