Function at 0x4cfe30
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
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
js 0x4d03cb
mov eax, dword [ebp - 0x28]
movzx esi, word [eax + 2]
xor eax, eax
test esi, esi
mov edx, 0x8a
mov ecx, 7
cmove ecx, edx
setne al
add eax, 3
mov dword [ebp - 0x14], eax
xor edi, edi
dec edi
xor edx, edx
xor ebx, ebx
mov eax, esi
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
movzx esi, word [esi + edx*4 + 6]
mov edx, ebx
inc ebx
cmp ebx, ecx
mov dword [ebp - 0x20], esi
jge 0x4cfea1
cmp eax, esi
jne 0x4cfea1
mov edx, dword [ebp - 0x2c]
lea esi, [edx + 1]
cmp edx, dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x20]
jne 0x4cfe71
jmp 0x4d03cb
mov dword [ebp - 0x1c], eax
cmp ebx, dword [ebp - 0x14]
jge 0x4cff52
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x170c]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edi + edx*4 + 0xace]
mov esi, 0x10
sub esi, eax
movzx edx, word [edi + edx*4 + 0xacc]
mov dword [ebp - 0x14], edx
shl edx, cl
or dx, word [edi + 0x1708]
mov word [edi + 0x1708], dx
cmp ecx, esi
jg 0x4cff01
add ecx, eax
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x170c], ecx
dec ebx
je 0x4d0016
jmp 0x4cfeb9
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x18], ecx
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], dl
mov cl, byte [edi + 0x1709]
mov byte [ebp - 0x18], cl
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov cl, byte [ebp - 0x18]
mov byte [edx + esi], cl
mov edx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, dl
mov esi, dword [ebp - 0x14]
shr esi, cl
mov word [edi + 0x1708], si
lea ecx, [eax + edx]
add ecx, 0xfffffff0
jmp 0x4cfeec
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4d0045
cmp ecx, edi
je 0x4d035a
mov eax, dword [ebp - 0x10]
movzx edi, word [eax + ecx*4 + 0xace]
mov esi, dword [eax + 0x170c]
mov dword [ebp - 0x14], esi
mov esi, 0x10
mov dword [ebp - 0x18], edi
sub esi, edi
movzx edi, word [eax + ecx*4 + 0xacc]
mov ebx, edi
mov ecx, dword [ebp - 0x14]
shl ebx, cl
mov ecx, dword [ebp - 0x14]
or bx, word [eax + 0x1708]
mov word [eax + 0x1708], bx
cmp ecx, esi
jg 0x4d017e
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x170c], ecx
movzx edi, word [eax + 0xb0e]
mov esi, 0x10
movzx ebx, word [eax + 0xb0c]
mov dword [ebp - 0x14], ebx
shl ebx, cl
sub esi, edi
or bx, word [eax + 0x1708]
mov eax, ebx
cmp ecx, esi
jg 0x4d0125
add ecx, edi
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x170c], ecx
add edx, 0xfffd
cmp ecx, 0xf
mov esi, dword [ebp - 0x20]
jge 0x4d02e4
shl edx, cl
or eax, edx
mov word [edi + 0x1708], ax
add ecx, 2
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x170c], ecx
xor ebx, ebx
test esi, esi
je 0x4d0037
xor ecx, ecx
cmp edx, esi
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x14], eax
xor ecx, 7
mov edi, edx
jmp 0x4cfe8c
mov ecx, 0x8a
mov dword [ebp - 0x14], 3
jmp 0x4d0030
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x170c]
movzx ecx, word [edi + 0x1708]
mov dword [ebp - 0x14], ecx
mov ebx, edx
cmp edx, 9
jg 0x4d00c3
movzx ecx, word [edi + 0xb12]
mov dword [ebp - 0x18], ecx
movzx edi, word [edi + 0xb10]
mov esi, edi
mov ecx, eax
shl esi, cl
or dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov ecx, 0x10
sub ecx, esi
cmp eax, ecx
jg 0x4d0232
mov ecx, eax
add ecx, esi
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x170c], ecx
add ebx, 0xfffe
cmp ecx, 0xe
jge 0x4d036a
shl ebx, cl
or eax, ebx
mov word [edi + 0x1708], ax
add ecx, 3
jmp 0x4d0010
movzx ecx, word [edi + 0xb16]
mov dword [ebp - 0x18], ecx
movzx esi, word [edi + 0xb14]
mov dword [ebp - 0x24], esi
mov ecx, eax
shl esi, cl
or dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov ecx, 0x10
sub ecx, esi
cmp eax, ecx
jg 0x4d028e
mov ecx, eax
add ecx, esi
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x170c], ecx
add ebx, 0xfff6
cmp ecx, 0xa
jge 0x4d01d1
shl ebx, cl
or eax, ebx
mov word [edi + 0x1708], ax
add ecx, 7
jmp 0x4d0010
mov esi, dword [ebp - 0x10]
mov word [esi + 0x1708], ax
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18], ecx
mov ebx, eax
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], bl
mov bl, byte [esi + 0x1709]
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
mov eax, dword [esi + 0x170c]
mov cl, 0x10
sub cl, al
add eax, edi
add eax, 0xfffffff0
mov esi, dword [ebp - 0x14]
shr esi, cl
mov ecx, eax
mov eax, esi
jmp 0x4cffe4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14], ecx
mov esi, dword [eax + 0x14]
lea ecx, [esi + 1]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + esi], bl
mov cl, byte [eax + 0x1709]
mov byte [ebp - 0x14], cl
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0x14]
lea ecx, [ebx + 1]
mov dword [eax + 0x14], ecx
mov cl, byte [ebp - 0x14]
mov byte [esi + ebx], cl
mov ebx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [eax + 0x1708], di
mov ecx, dword [ebp - 0x18]
add ecx, ebx
add ecx, 0xfffffff0
jmp 0x4cffb1
movzx esi, bx
mov dword [ebp - 0x14], esi
shl ebx, cl
or eax, ebx
mov word [edi + 0x1708], ax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea esi, [edx + 1]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], al
mov cl, byte [edi + 0x1709]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], cl
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x14]
shr eax, cl
mov ecx, ebx
mov word [edi + 0x1708], ax
add ecx, 0xfffffff7
jmp 0x4d0010
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov word [edi + 0x1708], ax
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ebx, [esi + 1]
mov dword [edi + 0x14], ebx
mov byte [ecx + esi], al
mov al, byte [edi + 0x1709]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov byte [esi + ebx], al
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x18]
add eax, ebx
add eax, 0xfffffff0
mov ebx, edx
mov edx, dword [ebp - 0x24]
shr edx, cl
mov ecx, eax
mov eax, edx
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x4d009b
mov eax, dword [ebp - 0x14]
mov word [edi + 0x1708], ax
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ebx, [esi + 1]
mov dword [edi + 0x14], ebx
mov byte [ecx + esi], al
mov al, byte [edi + 0x1709]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov byte [esi + ebx], al
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x18]
add eax, ebx
add eax, 0xfffffff0
mov ebx, edx
mov edx, dword [ebp - 0x24]
shr edx, cl
mov ecx, eax
mov eax, edx
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x4d00fd
movzx edi, dx
shl edx, cl
or eax, edx
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], ax
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 byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
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 - 0x20]
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x170c]
mov cl, 0x10
sub cl, al
shr edi, cl
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], di
mov edi, dword [ebp - 0x10]
add ecx, 0xfffffff2
jmp 0x4d0010
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x170c]
mov edx, ebx
jmp 0x4cffb7
movzx esi, bx
mov dword [ebp - 0x14], esi
shl ebx, cl
or eax, ebx
mov word [edi + 0x1708], ax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea esi, [edx + 1]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], al
mov cl, byte [edi + 0x1709]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], cl
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x14]
shr eax, cl
mov ecx, ebx
mov word [edi + 0x1708], ax
add ecx, 0xfffffff3
jmp 0x4d0010
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret