Function at 0x10095cb5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
jne 0x10095ccb
xor eax, eax
jmp 0x10095ec1
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 1
je 0x10095cdc
xor eax, eax
jmp 0x10095ec0
mov eax, dword [edi + 0x14]
cmp eax, 1
je 0x10095cf9
shr eax, 1
test al, 1
jne 0x10095cf9
push 8
push ebx
push 8
call fcn.100957f2
jmp 0x10095ec0
mov ecx, dword [edi + 8]
push esi
mov esi, ebx
mov dword [ebp - 4], esi
cmp dword [ebx + 8], ecx
jne 0x10095d0f
mov eax, dword [ebx + 0xc]
cmp eax, dword [edi + 0xc]
je 0x10095d2b
push 0
push 0
push dword [edi + 0xc]
push ecx
mov ecx, ebx
call fcn.100aef5c
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10095e2e
mov eax, dword [edi + 0x14]
cmp eax, 1
jne 0x10095e0b
push 0x108
mov ecx, edi
call fcn.100acbea
test eax, eax
jne 0x10095d56
cmp esi, ebx
je 0x10095e2e
test esi, esi
jmp 0x10095e24
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [edi + 0xc], eax
jle 0x10095eac
mov ebx, dword [edi + 0x18]
mov ecx, dword [esi + 0x18]
imul ebx, eax
imul ecx, eax
add ebx, dword [edi + 0x20]
add ecx, dword [esi + 0x20]
cmp dword [esi + 0x10], 1
mov dword [ebp - 0xc], ecx
jne 0x10095dc4
and dword [ebp - 0x10], 0
cmp dword [edi + 8], 0
jle 0x10095df9
mov esi, dword [ebp - 0x10]
mov eax, esi
and eax, 0x80000007
jns 0x10095d9a
dec eax
or eax, 0xfffffff8
inc eax
push 7
xor edx, edx
pop ecx
sub ecx, eax
inc edx
shl edx, cl
mov eax, esi
test eax, eax
jns 0x10095dad
add eax, 7
sar eax, 3
mov ecx, dword [ebp - 0xc]
test byte [eax + ecx], dl
jne 0x10095dbc
mov byte [esi + ebx], 0
inc esi
cmp esi, dword [edi + 8]
jl 0x10095d8c
jmp 0x10095df3
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 8], ecx
jle 0x10095df9
mov esi, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
xor edx, edx
movzx eax, byte [ebx]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x10]
mov byte [ebx], al
inc ebx
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 8]
jl 0x10095dd1
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [edi + 0xc]
jl 0x10095d64
jmp 0x10095e9e
shl eax, 8
add eax, dword [edi + 0x10]
cmp eax, 0x220
jne 0x10095ea3
cmp dword [esi + 0x10], 1
jne 0x10095e35
cmp esi, ebx
je 0x10095e2e
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x10095ebf
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0xc], edx
jle 0x10095eac
mov ecx, dword [edi + 0x18]
mov ebx, dword [esi + 0x18]
mov eax, dword [edi + 0x20]
imul ecx, edx
add eax, 3
imul ebx, edx
add eax, ecx
xor ecx, ecx
add ebx, dword [esi + 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
cmp dword [edi + 8], ecx
jle 0x10095e95
movzx ecx, byte [ecx + ebx]
xor edx, edx
movzx eax, byte [eax]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 8]
mov byte [ecx], al
mov eax, ecx
mov ecx, dword [ebp - 0x10]
add eax, 4
inc ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 8]
jl 0x10095e63
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
cmp edx, dword [edi + 0xc]
jl 0x10095e3f
mov ebx, dword [ebp + 8]
jmp 0x10095eac
mov ecx, dword [edi + 4]
push esi
call fcn.10095cb5
cmp esi, ebx
je 0x10095ebc
test esi, esi
je 0x10095ebc
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4