Function at 0x100861e6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [edi + 0x28], 0
jne 0x10086202
mov eax, dword [edx]
mov dword [edi + 0x28], eax
mov ecx, dword [edi + 4]
mov eax, dword [edx + 0xc]
mov esi, dword [edi + 8]
mov dword [ebp - 0x24], eax
and esi, 0x7fffffff
add eax, eax
mov dword [ebp - 0x30], esi
lea ebx, [ecx + 7]
mov dword [ebp - 0x34], eax
shr ebx, 3
dec ebx
mov eax, ebx
mov dword [ebp - 0x18], ebx
shl eax, 3
sub ecx, eax
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x24], esi
jae 0x1008650f
cmp dword [edi + 0x10], 0
je 0x10086256
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0x4d928
push eax
call fcn.10085a51
xor dword [edi + 0x44], eax
mov edx, dword [ebp + 8]
cmp dword [edi + 0x44], 0
je 0x10086270
mov ecx, dword [edi + 0x24]
lea eax, [ecx - 1]
push eax
push ecx
mov ecx, edx
call fcn.100851b7
jmp 0x100864e2
cmp dword [edi + 0x24], 1
jbe 0x100863e0
mov edx, dword [edi + 0x28]
mov eax, edx
sub eax, dword [ebp - 0x34]
sub edx, dword [ebp - 0x24]
and dword [ebp - 0x2c], 0
movzx esi, byte [eax]
movzx ecx, byte [edx]
shl esi, 6
inc eax
mov dword [ebp - 0x28], eax
inc edx
mov eax, esi
mov dword [ebp - 0x20], esi
and eax, 0xf800
mov dword [ebp - 8], eax
mov eax, ecx
and eax, 0x7f0
or dword [ebp - 8], eax
test ebx, ebx
jle 0x1008635e
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
shl ebx, 2
shl ecx, 8
movzx eax, byte [esi]
or ebx, eax
mov byte [ebp - 1], 0
movzx eax, byte [edx]
shl ebx, 6
or ecx, eax
mov eax, dword [ebp - 8]
inc esi
push 7
mov dword [ebp - 0x28], esi
inc edx
pop esi
mov dword [ebp - 0x20], ebx
mov edi, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.10085a51
mov ecx, esi
mov dl, al
shl dl, cl
mov esi, ebx
or byte [ebp - 1], dl
mov edx, edi
mov ecx, dword [ebp - 0x1c]
shr esi, cl
shr edx, cl
and esi, 0x800
mov ecx, dword [ebp - 8]
and edx, 0x10
and ecx, 0x7bf7
or esi, edx
add ecx, ecx
or esi, ecx
or eax, esi
mov esi, dword [ebp - 0x1c]
sub esi, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esi
jns 0x100862ec
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ebp - 1]
mov ebx, dword [ebp - 0x18]
mov eax, dword [edi + 0x28]
mov byte [ecx + eax], dl
inc ecx
mov edx, dword [ebp - 0x38]
cmp ecx, ebx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0xc]
jl 0x100862b6
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
shl ecx, 8
mov dword [ebp - 0xc], ecx
xor cl, cl
shl esi, 8
cmp dword [ebp - 0x10], 0
mov byte [ebp - 1], cl
jle 0x100864d9
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], 7
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.10085a51
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
mov dl, bl
mov eax, edi
shl dl, cl
or byte [ebp - 1], dl
mov edx, esi
push 7
pop ecx
sub ecx, dword [ebp - 0x20]
shr eax, cl
and eax, 0x10
shr edx, cl
mov ecx, dword [ebp - 0x20]
and edx, 0x800
or edx, eax
mov eax, dword [ebp - 8]
and eax, 0x7bf7
add eax, eax
or eax, edx
or eax, ebx
inc ecx
dec dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x10]
jl 0x10086387
jmp 0x100864d0
mov ecx, dword [edi + 0x28]
sub ecx, dword [ebp - 0x24]
test byte [edi + 0x24], 1
mov dword [ebp - 0x20], ecx
je 0x100863f8
movzx esi, byte [ecx]
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x100863fa
xor esi, esi
and dword [ebp - 0x2c], 0
mov eax, esi
and eax, 0x7f0
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x10086478
test byte [edi + 0x24], 1
je 0x1008641e
movzx eax, byte [ecx]
shl esi, 8
or esi, eax
inc ecx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp - 0x1c]
push 7
mov byte [ebp - 1], 0
pop edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ebx*8]
push eax
call fcn.10085a51
mov ecx, edi
mov dl, al
shl dl, cl
and ebx, 0x7bf7
or byte [ebp - 1], dl
add ebx, ebx
mov edx, esi
shr edx, cl
and edx, 0x10
or ebx, edx
or ebx, eax
sub edi, 1
jns 0x10086428
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov cl, byte [ebp - 1]
mov dword [ebp - 0x1c], ebx
mov eax, dword [edi + 0x28]
mov ebx, dword [ebp - 0x18]
mov byte [edx + eax], cl
inc edx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
cmp edx, ebx
jl 0x1008640c
and dword [ebp - 0x38], 0
shl esi, 8
cmp dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
jle 0x100864d6
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x20], 7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ebx*8]
push eax
call fcn.10085a51
mov ecx, dword [ebp - 0x20]
mov dl, al
shl dl, cl
and ebx, 0x7bf7
or byte [ebp - 1], dl
add ebx, ebx
push 7
pop ecx
sub ecx, edi
mov edx, esi
shr edx, cl
and edx, 0x10
or ebx, edx
or ebx, eax
inc edi
dec dword [ebp - 0x20]
cmp edi, dword [ebp - 0x10]
jl 0x10086496
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov cl, byte [ebp - 1]
mov eax, dword [edi + 0x28]
mov esi, dword [ebp - 0x30]
mov byte [ebx + eax], cl
mov eax, dword [ebp - 0x24]
add dword [edi + 0x28], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100864f8
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x10086508
inc dword [edi + 0x24]
cmp dword [edi + 0x24], esi
jae 0x1008650f
mov edx, dword [ebp + 8]
jmp 0x10086239
inc dword [edi + 0x24]
push 3
jmp 0x10086511
push 4
pop eax
mov dword [edi + 0x30], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10