Function at 0x10080c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
imul eax, dword [esi + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x4c]
push edi
mov ebx, 1
cmp eax, dword [esi + 0xc]
jae 0x10080e6b
mov ecx, dword [esi + 0x50]
cmp ecx, dword [esi + 0x34]
jae 0x10080e6b
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0x40]
jne 0x10080c42
mov al, byte [esi + 0x45]
cmp byte [esi + 0x44], al
je 0x10080c42
mov byte [esi + 0x44], al
cmp dword [esi + 0x48], 0
jne 0x10080d0b
test byte [esi + 0x13], 8
je 0x10080cc8
push 0x195
mov ecx, esi
call fcn.10080b80
cmp al, 2
je 0x10080e73
mov cl, byte [esi + 0x62]
xor cl, al
sete al
mov byte [esi + 0x62], al
test al, al
jne 0x10080cc8
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x10080c9e
mov edx, dword [esi + 0x30]
push edx
push eax
mov eax, dword [esi + 0x24]
push eax
call fcn.1013f910
mov ecx, dword [esi + 0x30]
add dword [esi + 0x28], ecx
add dword [esi + 0x4c], ebx
add esp, 0xc
add dword [esi + 0x50], ebx
jmp 0x10080e5f
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x30]
mov edi, edx
sub edi, ecx
push ecx
add edi, eax
add edx, eax
push edi
push edx
call fcn.1013fc90
mov ecx, dword [esi + 0x30]
add dword [esi + 0x28], ecx
add dword [esi + 0x4c], ebx
add esp, 0xc
add dword [esi + 0x50], ebx
jmp 0x10080e5f
cmp dword [esi + 0x50], 0
jbe 0x10080ce6
mov eax, dword [esi + 0x28]
add eax, dword [esi + 0x24]
sub eax, dword [esi + 0x30]
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or edx, eax
mov dword [esi + 0x58], edx
mov eax, dword [esi + 0x58]
shr eax, 9
and eax, 0x3f0
cmp byte [esi + 0x44], 0
mov dword [esi + 0x54], 0
mov word [esi + 0x60], ax
jle 0x10080d0b
and eax, 0xffef
mov word [esi + 0x60], ax
mov ecx, dword [esi + 0x48]
cmp ecx, dword [esi + 4]
jae 0x10080e1c
jmp 0x10080d20
mov edx, dword [esi + 0x28]
cmp edx, dword [esi + 0x2c]
jae 0x10080e1c
lea esp, [esp]
movzx eax, word [esi + 0x60]
push eax
mov ecx, esi
call fcn.10080b80
cmp al, 2
je 0x10080e73
mov edx, dword [esi + 0x54]
shl dword [esi + 0x58], 1
mov ecx, dword [esi + 0x58]
add dword [esi + 0x48], ebx
mov ebp, dword [esi + 0x48]
movzx eax, al
add edx, edx
or edx, eax
shr ecx, 9
mov ax, dx
and ax, 0xf
and ecx, 0x3f0
or cx, ax
mov al, byte [esi + 0x44]
mov dword [esi + 0x54], edx
mov word [esi + 0x60], cx
test al, al
jle 0x10080dce
mov edi, ecx
movsx ecx, al
and edi, 0xffef
mov word [esi + 0x60], di
cmp ecx, ebp
ja 0x10080dce
cmp al, 0x20
ja 0x10080da2
dec ecx
shr edx, cl
and edx, ebx
shl edx, 4
or edx, edi
mov word [esi + 0x60], dx
jmp 0x10080dce
mov eax, ebp
sub eax, ecx
mov edx, eax
shr edx, 3
add edx, dword [esi + 0x24]
and al, 7
mov cl, 7
sub cl, al
mov eax, dword [esp + 0x10]
mov dl, byte [edx + eax]
shr dl, cl
and dl, bl
movzx ax, dl
shl ax, 4
or ax, di
mov word [esi + 0x60], ax
test ebp, 7
je 0x10080ddf
cmp ebp, dword [esi + 4]
jb 0x10080d30
mov ecx, dword [esi + 0x28]
mov al, byte [esi + 0x54]
mov edx, dword [esi + 0x24]
mov byte [ecx + edx], al
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0x48]
add dword [esi + 0x28], ebx
mov eax, dword [esi + 0x28]
cmp ecx, 8
jbe 0x10080e10
cmp dword [esi + 0x50], 0
jbe 0x10080e10
sub eax, dword [esi + 0x30]
mov edx, dword [esi + 0x24]
movzx eax, byte [eax + edx + 1]
or dword [esi + 0x58], eax
mov ecx, dword [esi + 0x48]
cmp ecx, dword [esi + 4]
jb 0x10080d20
mov cl, byte [esi + 0x30]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
add cl, cl
add cl, cl
add cl, cl
sub cl, byte [esi + 4]
lea eax, [edx + eax - 1]
shl byte [eax], cl
test byte [esi + 0x13], 0x20
je 0x10080e4b
cmp dword [esi + 8], 0xffffffff
jne 0x10080e4b
mov ecx, esi
call fcn.100807e0
test al, al
je 0x10080e73
mov ecx, dword [esi + 0x30]
add dword [esi + 0x4c], ebx
add dword [esi + 0x50], ebx
add dword [esp + 0x10], ecx
mov dword [esi + 0x48], 0
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0xc]
jb 0x10080c23
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret