Function at 0x5ff474
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea edx, [ebp - 4]
mov eax, dword [edx]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
shl eax, 5
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + 2]
xor eax, ecx
and eax, 0x3fff
mov ecx, dword [edx]
mov dword [ecx + 0x24], eax
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x20]
mov edi, dword [ebp - 0xc]
mov dword [ecx + eax*4], edi
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
and eax, dword [ebp - 0xc]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c]
mov edi, dword [ebp - 8]
mov dword [ecx + eax*4], edi
mov eax, dword [edx]
mov eax, dword [eax + 0x30]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
jge 0x5ff4f4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jle 0x5ff502
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
test eax, eax
jne 0x5ff511
mov dword [ebp - 0x14], 2
jmp 0x5ff52f
cmp eax, dword [ebp - 0x1c]
jle 0x5ff52a
xor eax, eax
xor edx, edx
mov dword [ebx], edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx]
mov byte [ebx + 8], dl
jmp 0x5ff662
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x14]
dec eax
add eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jl 0x5ff563
mov eax, dword [edx]
mov eax, dword [eax + 0x18]
test eax, eax
jns 0x5ff55b
add eax, 3
sar eax, 2
mov dword [ebp - 0x28], eax
jmp 0x5ff56b
mov eax, dword [edx]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
or edi, edi
je 0x5ff62b
cmp edi, dword [ebx + 0x4c]
jb 0x5ff62b
cmp edi, dword [ebp - 0xc]
jae 0x5ff62b
mov ax, word [edi]
cmp word [ebp - 0xe], ax
jne 0x5ff60f
mov edx, edi
add edi, dword [ebp - 0x14]
dec edi
mov ax, word [edi]
cmp word [ebp - 0x16], ax
mov edi, edx
jne 0x5ff60f
push edi
push esi
mov eax, dword [ebp - 0x1c]
add edi, 2
sub eax, 2
add esi, 2
mov ecx, eax
cmp ecx, 4
jb 0x5ff5d8
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x5ff5d8
add esi, 4
add edi, 4
sub ecx, 4
jne 0x5ff5c0
jmp 0x5ff5e7
or ecx, ecx
jb 0x5ff5e7
mov dl, byte [esi]
cmp dl, byte [edi]
jne 0x5ff5e7
inc esi
inc edi
dec ecx
jne 0x5ff5d8
sub eax, ecx
add eax, 2
pop esi
pop edi
cmp eax, dword [ebp - 0x14]
jbe 0x5ff60f
mov dword [ebp - 0x14], eax
mov eax, esi
sub eax, edi
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jae 0x5ff62b
mov eax, esi
add eax, dword [ebp - 0x14]
dec eax
mov ax, word [eax]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x28]
dec eax
je 0x5ff62b
mov dword [ebp - 0x28], eax
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x6c]
and edi, eax
shl edi, 2
mov edi, dword [edi + edx]
jmp 0x5ff57c
pop edi
pop esi
pop ebx
cmp dword [ebp - 0x14], 3
jl 0x5ff63b
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jl 0x5ff64c
xor eax, eax
xor edx, edx
mov dword [ebx], edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx]
mov byte [ebx + 8], dl
jmp 0x5ff662
mov al, 1
mov edx, dword [ebp - 0x14]
mov dword [ebx], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx]
mov byte [ebx + 8], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4