Function at 0x10008de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.1006b2c0
add esp, 4
mov esi, eax
mov eax, dword [edi]
mov edx, 0
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov ebx, dword [edi + eax + 0x20]
mov edi, dword [edi + eax + 0x24]
mov ecx, ebx
neg ecx
mov ecx, 0
sbb ecx, edi
setl cl
cmp esi, ebx
sbb edx, edi
setl dl
sub ebx, esi
mov esi, dword [ebp + 8]
sbb edi, 0
test cl, dl
mov ecx, 0
cmovne ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, 0
cmovne ecx, ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + eax + 0x38]
test ecx, ecx
je 0x10008e55
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [esi + eax]
mov esi, 4
cmp dword [ecx + 0xc], 0
jne 0x10008fd9
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x10008e8d
cmp ecx, edx
je 0x10008e8d
call fcn.1000b540
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 4]
cmp dword [edx + eax + 0xc], 0
jne 0x10008fd9
lea ecx, [edx + eax]
mov esi, edx
mov edx, 0x1c0
and edx, dword [ecx + 0x14]
cmp edx, 0x40
je 0x10008f17
cmp dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x10]
sbb edx, 0
jl 0x10008f17
nop dword [eax + eax]
mov ecx, dword [esi + eax + 0x38]
movzx eax, byte [esi + eax + 0x40]
mov edx, dword [ecx + 0x20]
cmp dword [edx], 0
je 0x10008ee0
mov edx, dword [ecx + 0x30]
mov esi, dword [edx]
test esi, esi
jle 0x10008ee0
dec esi
mov dword [edx], esi
mov ecx, dword [ecx + 0x20]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov byte [edx], al
jmp 0x10008ef2
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x10008fb5
mov esi, dword [ebp + 8]
add ebx, 0xffffffff
mov eax, ebx
adc edi, 0xffffffff
neg eax
mov eax, 0
sbb eax, edi
mov eax, dword [esi]
mov eax, dword [eax + 4]
jl 0x10008eb0
add eax, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov ecx, eax
mov ecx, dword [ecx + 0x38]
mov eax, dword [ecx]
push 0
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp + 0xc]
call dword [eax + 0x24]
xor eax, esi
or eax, edx
jne 0x10008fb5
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp edi, 1
mov eax, ebx
sbb eax, 0
jl 0x10009043
nop word cs:[eax + eax]
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [edx + eax + 0x38]
movzx eax, byte [edx + eax + 0x40]
mov edx, dword [ecx + 0x20]
cmp dword [edx], 0
je 0x10008f90
mov edx, dword [ecx + 0x30]
mov esi, dword [edx]
test esi, esi
jle 0x10008f90
dec esi
mov dword [edx], esi
mov ecx, dword [ecx + 0x20]
mov edx, dword [ecx]
lea esi, [edx + 1]
mov dword [ecx], esi
mov byte [edx], al
jmp 0x10008f9e
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x10008fb5
add edi, 0xffffffff
mov eax, edi
adc ebx, 0xffffffff
xor esi, esi
neg eax
mov eax, 0
sbb eax, ebx
jl 0x10008f50
jmp 0x10008fba
mov esi, 4
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx + eax + 0x24], 0
mov dword [ecx + eax + 0x20], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov edx, ecx
lea ecx, [ecx + eax]
or esi, dword [edx + eax + 0xc]
push 0
push esi
mov esi, edx
call fcn.1000b600
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp dword [esi + eax + 0xc], 0
jne 0x10009027
test byte [esi + eax + 0x14], 2
je 0x10009027
mov ecx, dword [esi + eax + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x10009027
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [esi + eax]
mov eax, dword [esi + eax + 0xc]
or eax, 4
push 0
push eax
call fcn.1000b600
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [esi + eax + 0x38]
test ecx, ecx
je 0x10009039
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x10008fba