Function at 0x100014d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10086e50
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x48]
mov edx, 1
mov esi, dword [esp + 0x3c]
mov ecx, ebp
shl edx, cl
mov ecx, edx
mov dword [esp + 0x14], edx
shr ecx, 1
test ebp, ebp
lea eax, [esi + 4]
mov ebp, edx
mov dword [esp + 0x24], eax
lea ebx, [edx - 1]
mov eax, 1
mov dword [esp + 0x20], ebx
cmovne eax, ecx
mov ecx, edx
shr ecx, 3
xor edx, edx
add ecx, 3
shr ebp, 1
add ebp, ecx
mov ecx, dword [esp + 0x4c]
lea eax, [esi + eax*4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], eax
xor esi, esi
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x10], eax
mov edi, ebx
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x44]
cmovae edx, ecx
add eax, 2
add eax, ecx
adc esi, edx
shrd eax, esi, 1
shr esi, 1
add eax, 2
adc esi, 0
shld esi, eax, 2
shl eax, 2
test esi, esi
jb 0x10086f09
ja 0x10086efc
cmp eax, dword [esp + 0x50]
jbe 0x10086f09
pop edi
pop esi
pop ebp
mov eax, 0xffffffd4
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
mov word [eax], cx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov word [eax - 2], cx
xor ecx, ecx
mov eax, dword [esp + 0x4c]
mov word [eax], cx
mov ecx, 1
cmp esi, ecx
jb 0x10086f8c
mov edx, dword [esp + 0x40]
mov ebx, esi
sub eax, edx
mov ebp, eax
movzx eax, word [edx]
movzx esi, word [edx + ebp]
mov dword [esp + 0x3c], eax
cmp ax, 0xffff
jne 0x10086f6a
lea eax, [esi + 1]
mov esi, dword [esp + 0x4c]
mov word [esi + ecx*2], ax
lea eax, [ecx - 1]
mov esi, dword [esp + 0x18]
mov byte [edi + esi + 2], al
dec edi
jmp 0x10086f78
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, dword [esp + 0x4c]
mov word [esi + ecx*2], ax
inc ecx
add edx, 2
cmp ecx, ebx
jbe 0x10086f40
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
movzx eax, ax
mov ecx, eax
inc eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov word [ecx], ax
xor eax, eax
cmp edi, ebx
jne 0x1008707c
mov edi, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
lea esi, [edi + 2]
add esi, ecx
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x10], eax
jbe 0x10087030
mov edx, dword [esp + 0x34]
xor ebx, ebx
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
movsx ecx, word [ecx + eax*2]
mov dword [esp + 0x50], ecx
mov dword [esi + ebx], ebp
mov dword [esi + ebx + 4], edx
cmp ecx, 8
jle 0x1008700f
add ecx, 0xfffffff7
mov dword [esi + ebx + 8], ebp
lea edi, [esi + ebx]
shr ecx, 2
and ecx, 0x3ffffffe
mov dword [edi + 0xc], edx
lea esi, [edi + 8]
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x3c]
add ebx, ecx
inc eax
add ebp, 0x1010101
adc edx, 0x1010101
cmp eax, dword [esp + 0x10]
jb 0x10086fd1
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
xor edx, edx
xor esi, esi
test edi, edi
je 0x100870b6
nop dword [eax]
mov eax, dword [esp + 0x3c]
mov ecx, edx
mov edi, dword [esp + 0x18]
and ecx, ebx
movzx eax, byte [eax + esi]
mov byte [ecx + edi + 2], al
lea ecx, [edx + ebp]
mov eax, dword [esp + 0x3c]
lea edx, [edx + ebp*2]
and ecx, ebx
and edx, ebx
movzx eax, byte [eax + esi + 1]
add esi, 2
mov byte [ecx + edi + 2], al
cmp esi, dword [esp + 0x14]
jb 0x10087040
mov ebp, dword [esp + 0x14]
xor esi, esi
jmp 0x100870c0
xor edx, edx
test esi, esi
je 0x100870b6
mov ecx, dword [esp + 0x40]
movsx ecx, word [ecx + edx*2]
test ecx, ecx
jle 0x100870b1
mov esi, dword [esp + 0x18]
mov byte [eax + esi + 2], dl
add eax, ebp
and eax, ebx
cmp eax, edi
jbe 0x100870a8
nop
add eax, ebp
and eax, ebx
cmp eax, edi
ja 0x100870a0
sub ecx, 1
jne 0x10087092
mov esi, dword [esp + 0x10]
inc edx
cmp edx, esi
jb 0x10087082
mov ebp, dword [esp + 0x14]
xor esi, esi
test ebp, ebp
je 0x100870f2
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
movzx edi, ax
nop dword [eax + eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
movzx eax, byte [eax + esi + 2]
lea edx, [ecx + eax*2]
movzx eax, word [edx]
lea ecx, [edi + esi]
inc esi
mov word [ebx + eax*2], cx
inc word [edx]
cmp esi, ebp
jb 0x100870d0
mov edx, dword [esp + 0x2c]
xor edi, edi
mov esi, dword [esp + 0x40]
xor ebx, ebx
add edx, 8
movsx esi, word [esi + ebx*2]
cmp esi, 0xffffffff
je 0x1008714d
test esi, esi
je 0x1008713f
cmp esi, 1
je 0x1008714d
mov ecx, dword [esp + 0x48]
lea eax, [esi - 1]
bsr eax, eax
sub ecx, eax
shl esi, cl
shl ecx, 0x10
sub ecx, esi
mov esi, dword [esp + 0x40]
mov dword [edx], ecx
mov ecx, edi
movsx eax, word [esi + ebx*2]
sub ecx, eax
mov dword [edx - 4], ecx
movsx eax, word [esi + ebx*2]
add edi, eax
jmp 0x10087163
mov eax, dword [esp + 0x48]
inc eax
shl eax, 0x10
sub eax, ebp
mov dword [edx], eax
jmp 0x1008715f
mov eax, dword [esp + 0x48]
shl eax, 0x10
sub eax, ebp
mov dword [edx], eax
lea eax, [edi - 1]
mov dword [edx - 4], eax
inc edi
mov esi, dword [esp + 0x40]
inc ebx
add edx, 8
cmp ebx, dword [esp + 0x44]
jbe 0x10087101
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret