Function at 0x558050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, dword [0x80c64c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x80c650]
mov dword [ebp - 0x1c], eax
mov edx, dword [0x80c654]
mov dword [ebp - 0x28], edx
mov edx, dword [0x80c658]
mov dword [ebp - 0x24], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 5
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x55826d
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [ecx + eax]
and edx, 0xfe
cmp edx, 0xe8
jne 0x55826a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub ecx, eax
cmp ecx, 3
ja 0x5580e2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
sub ecx, edx
dec ecx
and ecx, 0xff
mov eax, dword [ebp - 8]
shl eax, cl
and eax, 7
mov dword [ebp - 8], eax
jmp 0x5580e7
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x558139
mov eax, dword [ebp - 8]
xor edx, edx
mov dl, byte [ebp + eax - 0x20]
mov ecx, dword [ebp - 0x18]
sub ecx, edx
mov eax, dword [ebp + 8]
mov dl, byte [eax + ecx + 4]
mov byte [ebp - 0x29], dl
mov ecx, dword [ebp - 8]
mov al, byte [ebp + ecx - 0x28]
test al, al
je 0x558120
mov dl, byte [ebp - 0x29]
test dl, dl
je 0x558120
mov cl, byte [ebp - 0x29]
cmp cl, 0xff
jne 0x558139
mov eax, dword [ebp - 8]
and eax, 3
add eax, eax
or eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
jmp 0x55826a
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov cl, byte [eax + edx + 4]
test cl, cl
je 0x55816f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov cl, byte [eax + edx + 4]
cmp cl, 0xff
je 0x55816f
mov eax, dword [ebp - 8]
and eax, 3
add eax, eax
or eax, 1
mov dword [ebp - 8], eax
jmp 0x55826a
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + ecx + 4]
shl eax, 0x18
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx + 3]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
movzx ecx, byte [ecx + edx + 2]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx + 1]
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5581c2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add ecx, eax
sub dword [ebp - 4], ecx
jmp 0x5581cd
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add edx, ecx
add dword [ebp - 4], edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x558220
mov edx, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [ebp + edx - 0x20]
shl ecx, 3
push ecx
mov ecx, 0x18
pop eax
sub ecx, eax
mov edx, dword [ebp - 4]
shr edx, cl
mov byte [ebp - 0x29], dl
mov al, byte [ebp - 0x29]
test al, al
je 0x558200
mov dl, byte [ebp - 0x29]
cmp dl, 0xff
jne 0x558220
mov ecx, dword [ebp - 8]
xor eax, eax
mov al, byte [ebp + ecx - 0x20]
shl eax, 3
mov ecx, 0x20
sub ecx, eax
mov edx, 1
shl edx, cl
dec edx
xor dword [ebp - 4], edx
jmp 0x5581ae
inc dword [ebp - 0x18]
mov al, byte [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx], al
inc dword [ebp - 0x18]
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx], al
inc dword [ebp - 0x18]
mov eax, dword [ebp - 4]
shr eax, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx], al
inc dword [ebp - 0x18]
mov eax, dword [ebp - 4]
shr eax, 0x18
and al, 1
dec eax
not al
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx], al
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add eax, 5
mov edx, dword [ebp + 0xc]
cmp eax, edx
jle 0x55809c
mov esp, ebp
pop ebp
ret