Function at 0x55846c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, dword [0x81a020]
mov dword [ebp - 0x20], eax
mov eax, dword [0x81a024]
mov dword [ebp - 0x1c], eax
mov edx, dword [0x81a028]
mov dword [ebp - 0x28], edx
mov edx, dword [0x81a02c]
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 0x558689
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 0x558686
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub ecx, eax
cmp ecx, 3
ja 0x5584fe
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 0x558503
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x558555
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 0x55853c
mov dl, byte [ebp - 0x29]
test dl, dl
je 0x55853c
mov cl, byte [ebp - 0x29]
cmp cl, 0xff
jne 0x558555
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 0x558686
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 0x55858b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov cl, byte [eax + edx + 4]
cmp cl, 0xff
je 0x55858b
mov eax, dword [ebp - 8]
and eax, 3
add eax, eax
or eax, 1
mov dword [ebp - 8], eax
jmp 0x558686
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 0x5585de
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add ecx, eax
sub dword [ebp - 4], ecx
jmp 0x5585e9
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 0x55863c
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 0x55861c
mov dl, byte [ebp - 0x29]
cmp dl, 0xff
jne 0x55863c
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 0x5585ca
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 0x5584b8
mov esp, ebp
pop ebp
ret