Function at 0x5fb680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x28c]
lea edi, [eax + 8]
mov ebx, dword [eax + 0x280]
mov esi, dword [eax + 0x288]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x290]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x284]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x314]
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 0x94a]
add eax, 0x8b8
mov dword [ebp - 0x1c], edi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
call fcn.005fd5f0
add esp, 4
test eax, eax
je 0x5fb8b4
mov ecx, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jae 0x5fb874
mov dword [ebp - 0x28], ebx
test ecx, ecx
je 0x5fb874
cmp dword [edi + 0xc], 2
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x294]
mov dword [ebp - 0x24], edx
jb 0x5fb890
mov edx, dword [edi + 4]
cmp edx, 0x10
jb 0x5fb741
mov ecx, dword [edi + 8]
xor edx, 0x10
movzx eax, word [edi + 2]
mov dword [edi], eax
mov dword [edi + 4], edx
movzx ebx, word [ecx]
shl ebx, 0x10
or ebx, eax
add dword [edi + 0xc], 0xfffffffe
lea eax, [ecx + 2]
mov dword [edi], ebx
mov dword [edi + 8], eax
jmp 0x5fb743
mov ebx, dword [edi]
mov ecx, edx
mov eax, ebx
shr eax, cl
and eax, dword [0x669d94]
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx + eax*4]
movzx eax, byte [ecx]
add eax, edx
mov dword [edi + 4], eax
movzx edx, word [ecx + 2]
mov dword [ebp - 0x24], eax
cmp edx, 0x10
jae 0x5fb7a3
mov dword [ebp - 0xc], 0
test edx, edx
je 0x5fb79a
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + edx*4]
mov word [ecx + eax*2], si
mov eax, 0x8000
mov ecx, edx
mov dword [ebx + edx*4], esi
shr eax, cl
sub dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
inc word [eax + edx*2]
mov ebx, dword [ebp - 8]
inc esi
jmp 0x5fb868
mov ecx, dword [ebp - 0x24]
xor eax, eax
cmp edx, 0x10
setne al
shr ebx, cl
add eax, 2
mov edi, dword [eax*4 + 0x669d80]
add eax, ecx
and edi, ebx
xor ecx, ecx
mov ebx, dword [ebp - 8]
cmp edx, 0x10
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
cmovne eax, ecx
cmp edx, 0x10
setne cl
add ecx, 2
cmp ebx, eax
mov dword [ebp - 0x24], ecx
cmovne ebx, eax
xor ecx, ecx
cmp dword [ebp - 0x28], eax
mov dword [ebp - 8], ebx
cmove ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov eax, ecx
test ecx, ecx
je 0x5fb806
lea eax, [ecx - 2]
mov ecx, dword [ebp - 0x24]
shl eax, cl
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add edx, 3
add eax, edx
mov edx, eax
mov dword [ebp - 0xc], eax
sub edx, ecx
lea ecx, [edx + esi]
cmp ecx, dword [ebp + 8]
ja 0x5fb889
test ebx, ebx
je 0x5fb866
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
lea eax, [eax + ebx*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
add eax, eax
mov word [eax + edi], si
mov ebx, esi
lea eax, [esi + esi]
inc esi
cmp esi, ecx
jne 0x5fb831
mov eax, dword [ebp - 0x2c]
mov ecx, 0xf
mov edi, dword [ebp - 0x1c]
mov dword [eax], ebx
mov eax, edx
mov ebx, dword [ebp - 8]
sub ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
add word [eax + ebx*2], dx
jmp 0x5fb86b
mov esi, ecx
mov ecx, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x5fb6f3
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax + 0x290], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, 0xfffff
jmp 0x5fb874
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x28c], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x288], esi
mov dword [eax + 0x284], edx
mov dword [eax + 0x280], ebx
mov dword [eax + 0x290], ecx
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret