Function at 0x10266e30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x14], edx
xor eax, eax
cmp dword [ecx + 0x268], 2
jl 0x10267038
mov edx, dword [ecx + 0x6f88]
mov dword [ebp - 0x24], edx
test edx, edx
jle 0x10267038
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, ecx
shr edx, 3
xor ebx, ebx
cmp ecx, dword [esi + 0x10]
setl bl
add ebx, ecx
movzx eax, byte [eax + edx]
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x20]
mov dword [esi + 8], ebx
xor edx, edx
test al, 0x80
sete dl
mov dword [ebp - 0x1c], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x2c], 0
xor edx, edx
cmp esi, 0x1021
mov dword [ebp - 0x34], edx
jne 0x10266eee
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x10]
mov eax, ebx
shr eax, 3
xor edx, edx
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
setl dl
add edx, ebx
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + eax]
and bl, 7
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x20]
shr eax, 7
mov dword [esi + 8], edx
and eax, 1
mov dword [ebp - 0x1c], eax
mov eax, edx
mov edx, dword [ebp - 0x10]
jmp 0x10266eff
xor dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, ebx
mov ebx, dword [ecx + 0x74b0]
mov ecx, eax
shr eax, 3
mov dword [ebp - 0x10], edx
mov edx, dword [edx + eax]
mov eax, ecx
bswap edx
and cl, 7
shl edx, cl
shr edx, 0xfa
movsx esi, word [ebx + edx*4]
mov dword [ebp - 0x30], ebx
movzx ecx, word [ebx + edx*4 + 2]
test cx, cx
jns 0x10266f62
add eax, 6
mov edx, dword [ebp - 0x18]
cmp edx, eax
cmovb eax, edx
mov ebx, eax
shr eax, 3
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax]
bswap edx
mov eax, ecx
mov ecx, ebx
and cl, 7
shl edx, cl
mov ecx, eax
shr edx, cl
add edx, esi
mov eax, dword [ebp - 0x30]
movsx esi, word [eax + edx*4]
movzx ecx, word [eax + edx*4 + 2]
mov eax, ebx
mov ebx, dword [ebp - 0x18]
movsx edx, cx
add edx, eax
cmp ebx, edx
cmovb edx, ebx
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], edx
cmp esi, 0x22
jne 0x10266fa2
mov eax, edx
shr eax, 3
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + eax]
bswap esi
mov ecx, edx
and cl, 7
shl esi, cl
shr esi, 0xf4
add edx, 0xc
cmp ebx, edx
cmovb edx, ebx
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], edx
add esi, 0x22
cmp dword [ebp - 0x1c], 0
mov eax, 0
cmove eax, esi
mov dword [ebp - 0x10], eax
test esi, esi
mov ecx, dword [ebp - 0x20]
jle 0x10266feb
xor edx, edx
cmp edi, dword [ecx + 0x6f88]
jge 0x10267035
mov ebx, dword [ecx + 0x2d0]
mov eax, dword [ecx + 0x6f8c]
mov ecx, dword [eax + edi*4]
movzx eax, byte [ebx + ecx*4 + 3]
cmp dword [ebp - 0x28], eax
jne 0x10266fe3
add al, byte [ebp - 0x1c]
mov byte [ebx + ecx*4 + 3], al
inc edx
inc edi
cmp edx, esi
mov ecx, dword [ebp - 0x20]
jl 0x10266fba
mov eax, dword [ebp - 0x2c]
add eax, esi
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x24]
jge 0x1026700d
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 8]
cmp dword [eax + 0xc], ebx
jg 0x10266ea3
mov esi, edx
mov edx, dword [ebp - 0x28]
inc edx
mov ecx, dword [ecx + 0x268]
dec ecx
xor eax, eax
mov dword [ebp - 0x28], edx
cmp edx, ecx
jge 0x10267038
mov ecx, dword [ebp - 0x24]
sub ecx, esi
mov dword [ebp - 0x24], ecx
test ecx, ecx
jg 0x10266e66
jmp 0x10267038
xor eax, eax
dec eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret