Function at 0x47b64c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [0x527828]
mov ecx, dword [0x48fc28]
mov dword [ebp - 0x2c], eax
add eax, dword [0x48fc24]
dec eax
shr eax, cl
mov dword [ebp - 0x34], eax
lea edi, [eax + 2]
mov eax, dword [0x527834]
cmp edi, dword [ebp + 0xc]
jg 0x47b873
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
lea esi, [edx - 0x18]
mov edx, dword [0x527830]
shr esi, 2
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
mov dword [ebp - 0x38], ebx
cmp ebx, 0x3eb202fe
je 0x47b6b2
inc ecx
add dword [ebp - 0x20], 4
cmp esi, ecx
jge 0x47b694
jmp 0x47b873
cmp esi, ecx
jl 0x47b873
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
movzx ecx, word [ebx + 0x16]
mov esi, dword [esi + 4]
lea ebx, [edx + ecx]
movzx ecx, word [ebx + 0xe]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [eax + ecx], ebx
mov ebx, dword [ebp - 0x1c]
movzx ecx, word [ebx + 0x10]
mov dword [eax + ecx], esi
mov esi, dword [ebp + 8]
add esi, 8
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x3c], esi
je 0x47b6fc
movzx ecx, word [ebx + 0x12]
mov word [eax + ecx], 0x18cd
mov eax, dword [ebp - 0x2c]
sub edi, 2
shr eax, 2
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
mov word [eax + 8], di
mov edi, dword [ebp - 0x50]
mov word [eax + 0xa], 2
mov dword [eax + 0xc], edi
je 0x47b727
mov word [eax + 0x14], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], 0x8000
xor esi, esi
mov dword [ebp - 0x30], 0x8000
movzx eax, word [eax + 0xa]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0xc]
xor eax, eax
imul ecx, ecx, 0xa
rep stosb byte es:[edi], al
xor edi, edi
mov eax, dword [0x48fc24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
xor eax, eax
cmp dword [ebp - 0x28], 0
je 0x47b802
add dword [ebp - 0x40], 8
mov ebx, dword [ebp - 0x40]
mov ebx, dword [ebx - 8]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x40]
mov ebx, dword [ebx - 4]
mov dword [ebp - 0x4c], ebx
test eax, eax
je 0x47b7d9
mov ecx, esi
mov ebx, edi
add ecx, eax
adc ebx, 0
cmp dword [ebp - 0x4c], ebx
jne 0x47b7c9
cmp dword [ebp - 0x48], ecx
jne 0x47b7c9
mov ecx, dword [ebp - 0x54]
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x44]
imul ecx, ebx
mov dword [ebp - 0x58], ecx
lea ecx, [ecx + edx - 1]
mov edx, dword [ebp - 0x30]
xor ecx, edx
mov edx, dword [ebp - 0x58]
or ecx, edx
cmp ecx, 0xffff
jbe 0x47b7e6
mov edx, dword [ebp - 0x24]
add dword [ebp - 0x24], 0xa
mov dword [edx], esi
mov dword [edx + 4], edi
mov word [edx + 8], ax
mov eax, dword [ebp - 0x30]
mov ebx, 1
mov dword [ebp - 0x44], eax
jmp 0x47b7ec
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], edi
mov edx, dword [ebp - 0x54]
dec dword [ebp - 0x28]
mov eax, ebx
add dword [ebp - 0x30], edx
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
jmp 0x47b76d
test eax, eax
je 0x47b812
mov edx, dword [ebp - 0x24]
mov dword [edx], esi
mov dword [edx + 4], edi
mov word [edx + 8], ax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [0x527830]
movzx edx, word [eax]
mov eax, dword [ebp - 0x34]
add eax, 0x1fffffff
add edx, ebx
cmp dword [ebp + 0x18], 0
mov esi, dword [edi + eax*8]
mov edi, dword [edi + eax*8 + 4]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x3c]
mov dword [edx], esi
mov esi, dword [edi + eax*8 + 8]
mov edi, dword [edi + eax*8 + 0xc]
mov dword [edx + 8], esi
mov dword [edx + 0xc], edi
je 0x47b888
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 4]
cmp eax, ecx
jge 0x47b878
mov dword [esp], str.syslinux_patch:_Subdirectory_path_too_long..._aborting_install_
call fcn.0043d9e0
or eax, 0xffffffff
jmp 0x47b8f6
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x18]
movzx eax, word [eax + 2]
add eax, ebx
mov edi, eax
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp + 0x1c], 0
je 0x47b8c4
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 8]
cmp eax, ecx
jge 0x47b8b0
mov dword [esp], str.syslinux_patch:_Subvol_name_too_long..._aborting_install_
jmp 0x47b86e
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x1c]
movzx eax, word [eax + 6]
add eax, dword [0x527830]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [0x527830]
mov edx, dword [ebp - 0x50]
cmp dword [ebp - 0x28], edx
jge 0x47b8e7
mov edx, dword [ebp - 0x28]
inc dword [ebp - 0x28]
mov edx, dword [eax + edx*4]
sub dword [ebp - 0x38], edx
jmp 0x47b8d1
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x38]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 0x2c]
and eax, 0xfffffffc
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret