Function at 0x5cfa20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x28], edx
cmp dword [ebp + 8], 0
js 0x5cffbb
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 2]
xor edx, edx
test eax, eax
sete dl
mov dword [ebp - 0x10], ecx
mov esi, 0x8a
mov ecx, 7
cmove ecx, esi
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp - 0x10]
mov ecx, 4
sub ecx, edx
mov dword [ebp - 0x20], ecx
mov edi, 0xffffffff
xor ebx, ebx
xor edx, edx
jmp 0x5cfa89
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov ebx, eax
inc eax
mov edx, dword [ebp - 0x14]
cmp ebx, ecx
mov ebx, eax
mov eax, dword [ebp - 0x2c]
je 0x5cffbb
mov dword [ebp - 0x1c], edx
mov edx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], ebx
movzx eax, word [eax + ebx*4 + 6]
mov ebx, edx
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + 1]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jge 0x5cfab0
cmp ebx, eax
je 0x5cfa70
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ebx
jge 0x5cfb70
mov ecx, dword [esi + 0x1710]
jmp 0x5cfae5
add ecx, edi
mov dword [esi + 0x1710], ecx
mov eax, dword [ebp - 0x14]
dec eax
mov ebx, dword [ebp - 0x30]
je 0x5cff79
mov dword [ebp - 0x14], eax
movzx edi, word [esi + ebx*4 + 0xad2]
mov eax, 0x10
sub eax, edi
movzx edx, word [esi + ebx*4 + 0xad0]
mov ebx, edx
shl ebx, cl
or bx, word [esi + 0x170c]
mov word [esi + 0x170c], bx
cmp ecx, eax
jle 0x5cfad0
mov eax, dword [esi + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + ecx], bl
movzx eax, byte [esi + 0x170d]
mov byte [ebp - 0x1c], al
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea eax, [ebx + 1]
mov dword [esi + 0x14], eax
movzx eax, byte [ebp - 0x1c]
mov byte [ecx + ebx], al
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x170c], dx
lea ecx, [edi + ebx]
add ecx, 0xfffffff0
jmp 0x5cfad2
test ebx, ebx
je 0x5cfb8a
cmp ebx, edi
jne 0x5cfc21
mov ebx, dword [esi + 0x1710]
mov dword [ebp - 0x1c], eax
jmp 0x5cfd4d
cmp edx, 9
jg 0x5cfcb6
movzx edi, word [esi + 0xb16]
mov ebx, dword [esi + 0x1710]
mov eax, 0x10
movzx edx, word [esi + 0xb14]
mov dword [ebp - 0x18], edx
mov ecx, ebx
shl edx, cl
mov dword [ebp - 0x14], edi
sub eax, edi
or dx, word [esi + 0x170c]
cmp ebx, eax
jle 0x5cfe5a
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x5cfe5d
movzx edx, word [esi + ebx*4 + 0xad2]
mov ecx, ebx
mov ebx, dword [esi + 0x1710]
mov eax, 0x10
mov dword [ebp - 0x14], edx
sub eax, edx
movzx edi, word [esi + ecx*4 + 0xad0]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [esi + 0x170c]
mov word [esi + 0x170c], dx
cmp ebx, eax
jle 0x5cfd44
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
shr edi, cl
mov word [esi + 0x170c], di
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
jmp 0x5cfd47
movzx edi, word [esi + 0xb1a]
mov ebx, dword [esi + 0x1710]
mov eax, 0x10
movzx edx, word [esi + 0xb18]
mov dword [ebp - 0x18], edx
mov ecx, ebx
shl edx, cl
mov dword [ebp - 0x14], edi
sub eax, edi
or dx, word [esi + 0x170c]
cmp ebx, eax
jle 0x5cfed5
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x5cfed8
add ebx, dword [ebp - 0x14]
mov dword [esi + 0x1710], ebx
movzx edi, word [esi + 0xb12]
mov eax, 0x10
movzx edx, word [esi + 0xb10]
mov dword [ebp - 0x18], edx
mov ecx, ebx
shl edx, cl
mov dword [ebp - 0x14], edi
sub eax, edi
or dx, word [esi + 0x170c]
cmp ebx, eax
jle 0x5cfdce
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x5cfdd1
add ebx, dword [ebp - 0x14]
mov dword [esi + 0x1710], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffd
cmp ebx, 0xf
jl 0x5cfe45
movzx edi, ax
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x170c], di
add ebx, 0xfffffff2
jmp 0x5cff70
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
add ebx, 2
jmp 0x5cff70
add ebx, dword [ebp - 0x14]
mov dword [esi + 0x1710], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffe
cmp ebx, 0xe
jl 0x5cff49
movzx edi, ax
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x170c], di
add ebx, 0xfffffff3
jmp 0x5cff70
add ebx, dword [ebp - 0x14]
mov dword [esi + 0x1710], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfff6
cmp ebx, 0xa
jl 0x5cff5b
movzx edi, ax
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x170c], di
add ebx, 0xfffffff7
jmp 0x5cff70
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
add ebx, 3
jmp 0x5cff70
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x170c], dx
add ebx, 7
nop dword [eax + eax]
mov dword [esi + 0x1710], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5cffa0
xor ecx, ecx
cmp ebx, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x20], eax
xor ecx, 7
mov dword [ebp - 0x18], ecx
jmp 0x5cffae
mov dword [ebp - 0x18], 0x8a
mov dword [ebp - 0x20], 3
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov edi, ebx
jmp 0x5cfa76
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret