Function at 0x10086cdf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
cmp dword [esi + 0x28], 0
jne 0x10086cfb
mov eax, dword [edx]
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 4]
mov ebx, dword [edx + 0xc]
mov dword [ebp - 0x30], ebx
lea edi, [ecx + 7]
shr edi, 3
dec edi
mov eax, edi
mov dword [ebp - 0x10], edi
shl eax, 3
sub ecx, eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x18], ecx
cmp eax, dword [esi + 8]
jae 0x10087001
cmp dword [esi + 0x10], 0
je 0x10086d41
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0x3ca8
push eax
call fcn.10085a51
xor dword [esi + 0x44], eax
mov edx, dword [ebp + 8]
cmp dword [esi + 0x44], 0
je 0x10086d5b
mov ecx, dword [esi + 0x24]
lea eax, [ecx - 1]
push eax
push ecx
mov ecx, edx
call fcn.100851b7
jmp 0x10086fd4
cmp dword [esi + 0x24], 1
jbe 0x10086ed9
mov eax, dword [esi + 0x28]
lea ecx, [ebx + ebx]
and dword [ebp - 0x2c], 0
mov edx, eax
sub edx, ecx
sub eax, ebx
movzx ecx, byte [edx]
shl ecx, 4
inc edx
mov dword [ebp - 0x24], edx
movzx edx, byte [eax]
inc eax
mov dword [ebp - 0x28], eax
mov ebx, edx
shr ebx, 1
mov eax, ecx
and ebx, 0x1f8
and eax, 0x1e00
or ebx, eax
mov dword [ebp - 0x14], ebx
test edi, edi
jle 0x10086e4f
mov esi, dword [ebp - 0x24]
shl ecx, 4
shl edx, 8
mov dword [ebp - 0x20], 7
movzx eax, byte [esi]
or ecx, eax
shl ecx, 4
inc esi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x24], esi
movzx eax, byte [ecx]
or edx, eax
inc ecx
mov dword [ebp - 0xc], edx
xor dl, dl
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ebx*8]
push eax
call fcn.10085a51
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dl, bl
shl dl, cl
or byte [ebp - 1], dl
mov edx, esi
lea ecx, [eax + 1]
mov eax, edi
shr edx, cl
mov ecx, dword [ebp - 0x20]
and edx, 8
shr eax, cl
and eax, 0x200
or edx, eax
mov eax, dword [ebp - 0x14]
and eax, 0xefb
add eax, eax
or edx, eax
or ebx, edx
sub ecx, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ecx
jns 0x10086ddd
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ebp - 1]
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x28]
mov byte [ecx + eax], dl
inc ecx
mov edx, dword [ebp - 0xc]
cmp ecx, edi
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 8]
jl 0x10086da4
and dword [ebp - 0x20], 0
shl ecx, 8
mov dword [ebp - 8], ecx
xor cl, cl
shl edx, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0xc], edx
mov byte [ebp - 1], cl
jle 0x10086fcb
mov edi, dword [ebp - 8]
mov esi, edx
mov dword [ebp - 0x24], 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 - 0x24]
mov ebx, eax
mov dl, bl
mov eax, esi
shl dl, cl
or byte [ebp - 1], dl
mov edx, edi
push 7
pop ecx
sub ecx, dword [ebp - 0x20]
shr edx, cl
push 8
pop ecx
sub ecx, dword [ebp - 0x20]
and edx, 0x200
shr eax, cl
and eax, 8
or edx, eax
mov eax, dword [ebp - 0x14]
and eax, 0xefb
add eax, eax
or edx, eax
mov eax, dword [ebp - 0x20]
or ebx, edx
inc eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x18]
jl 0x10086e7a
jmp 0x10086fc2
mov ecx, dword [esi + 0x28]
sub ecx, ebx
test byte [esi + 0x24], 1
mov dword [ebp - 0x24], ecx
je 0x10086ef0
movzx edi, byte [ecx]
inc ecx
mov dword [ebp - 0x24], ecx
jmp 0x10086ef2
xor edi, edi
and dword [ebp - 0x2c], 0
mov ebx, edi
shr ebx, 1
and ebx, 0x1f8
cmp dword [ebp - 0x10], 0
jle 0x10086f6d
test byte [esi + 0x24], 1
je 0x10086f18
movzx eax, byte [ecx]
shl edi, 8
or edi, eax
inc ecx
mov dword [ebp - 0x24], ecx
push 7
mov byte [ebp - 1], 0
pop esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ebx*8]
push eax
call fcn.10085a51
mov ecx, esi
mov dl, al
shl dl, cl
and ebx, 0xefb
or byte [ebp - 1], dl
lea ecx, [esi + 1]
mov edx, edi
add ebx, ebx
shr edx, cl
and edx, 8
or ebx, edx
or ebx, eax
sub esi, 1
jns 0x10086f1f
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov cl, byte [ebp - 1]
mov eax, dword [esi + 0x28]
mov byte [edx + eax], cl
inc edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebp - 0x10]
jl 0x10086f06
and dword [ebp - 0x2c], 0
shl edi, 8
cmp dword [ebp - 0x18], 0
mov byte [ebp - 1], 0
jle 0x10086fc5
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], 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 - 0x24]
mov dl, al
shl dl, cl
and ebx, 0xefb
or byte [ebp - 1], dl
add ebx, ebx
push 8
pop ecx
sub ecx, esi
mov edx, edi
shr edx, cl
and edx, 8
or ebx, edx
or ebx, eax
inc esi
dec dword [ebp - 0x24]
cmp esi, dword [ebp - 0x18]
jl 0x10086f88
mov esi, dword [ebp - 0x1c]
mov cl, byte [ebp - 1]
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x28]
mov ebx, dword [ebp - 0x30]
mov byte [edi + eax], cl
add dword [esi + 0x28], ebx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10086fe7
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x10086ffa
inc dword [esi + 0x24]
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 8]
jae 0x10087001
mov edx, dword [ebp + 8]
jmp 0x10086d24
inc dword [esi + 0x24]
push 3
jmp 0x10087003
push 4
pop eax
pop edi
mov dword [esi + 0x30], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10