Function at 0x541af0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor eax, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea ebp, [esi + 0x4d8]
push ebp
lea edx, [esp + 0x14]
push edx
xor edi, edi
call eax
xor eax, eax
mov dword [esi + 0x518], eax
mov dword [esi + 0x51c], eax
mov dword [esi + 0x520], eax
mov dword [esi + 0x524], eax
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x4ec], eax
mov dword [esi + 0x4f0], eax
mov dword [esi + 0x4f4], eax
mov dword [esi + 0x52c], edi
mov dword [esi + 0x528], edi
mov dword [esi + 0x530], edi
mov dword [esi + 0x538], edi
mov dword [esi + 0x53c], edi
mov dword [esi + 0x540], edi
mov dword [esi + 0x544], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
xor ebx, ebx
jmp 0x541ba0
mov ecx, dword [esi + 0x548]
lea edx, [ecx + edi + 4]
push edx
lea ecx, [esp + 0x14]
mov edx, ebp
mov byte [esp + 0x14], bl
call fcn.0053e110
add edi, 0x10
add esp, 4
inc ebx
cmp edi, 0x1000
jl 0x541ba0
mov eax, 0x1000
mov edi, edi
mov ebp, 0x100
jmp 0x541be0
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xfee]
movzx edi, byte [ecx + eax - 0xfed]
mov byte [ecx + eax + 0x13], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xfef]
mov byte [ecx + eax + 0x12], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [eax + ecx - 0xff0]
mov byte [eax + ecx + 0x11], dl
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff1]
mov byte [ecx + eax + 0x10], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff2]
mov byte [ecx + eax + 0xf], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff3]
mov byte [ecx + eax + 0xe], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff4]
mov byte [ecx + eax + 0xd], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff5]
mov byte [ecx + eax + 0xc], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff6]
mov byte [ecx + eax + 0xb], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff7]
mov byte [ecx + eax + 0xa], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff8]
mov byte [ecx + eax + 9], dl
add ecx, eax
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xff9]
add ecx, eax
mov byte [ecx + 8], dl
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xffa]
add ecx, eax
mov byte [ecx + 7], dl
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xffb]
add ecx, eax
mov byte [ecx + 6], dl
mov ecx, dword [esi + 0x548]
movzx edx, byte [ecx + eax - 0xffc]
add ecx, eax
mov byte [ecx + 5], dl
movzx edx, byte [edi*2 + 0x609d68]
mov ecx, dword [esi + 0x548]
mov byte [eax + ecx + 4], dl
mov ecx, dword [esi + 0x548]
movzx edx, byte [edi*2 + 0x609d69]
xor byte [eax + ecx + 5], dl
lea ecx, [eax + ecx + 5]
add eax, 0x10
sub ebp, 1
jne 0x541be0
cmp eax, 0x10000
jl 0x541bd0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.005550b0
add esp, 0x14
ret 0x10