Function at 0x5255ed
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
jne 0x52561a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], 0x4628cc
call fcn.0053451b
push 0x46af44
lea ecx, [ebp - 0x20]
push ecx
call fcn.00534f8b
push ebx
push edi
mov edi, 0x10
mov dword [esi + 0x3cc], edi
mov dword [esi + 0x3c8], edi
mov edx, dword [0x4628d8]
mov dword [esi + 0x3d4], edx
mov eax, dword [0x4628dc]
mov dword [esi + 0x3d8], eax
mov ecx, dword [0x4628e0]
mov dword [esi + 0x3dc], ecx
mov edx, dword [0x4628e4]
mov dword [esi + 0x3e0], edx
mov eax, dword [esi + 0x3cc]
push eax
lea ecx, [esi + 0x3f4]
push 0x4628d8
push ecx
call fcn.00538d5d
mov eax, dword [esi + 0x3c8]
add esp, 0xc
cmp eax, edi
je 0x5256aa
cmp eax, 0x18
je 0x525692
mov dword [esi + 0x3d0], 0xe
jmp 0x5256cd
xor edx, edx
cmp dword [esi + 0x3cc], 0x20
sete dl
lea edx, [edx + edx + 0xc]
mov dword [esi + 0x3d0], edx
jmp 0x5256cd
mov eax, dword [esi + 0x3cc]
cmp eax, edi
jne 0x5256bb
mov eax, 0xa
jmp 0x5256c7
xor ecx, ecx
cmp eax, 0x18
setne cl
lea eax, [ecx + ecx + 0xc]
mov dword [esi + 0x3d0], eax
mov eax, dword [esi + 0x3cc]
cdq
and edx, 3
add edx, eax
sar edx, 2
xor ebx, ebx
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x3d0], ebx
jl 0x52570b
lea edi, [esi + 8]
mov dword [ebp - 8], edi
test edx, edx
jle 0x5256f9
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc ebx
add edi, 0x20
mov dword [ebp - 8], edi
cmp ebx, dword [esi + 0x3d0]
jle 0x5256ef
xor ebx, ebx
cmp dword [esi + 0x3d0], ebx
jl 0x52573a
lea edi, [esi + 0x1e8]
mov dword [ebp - 8], edi
test edx, edx
jle 0x525728
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc ebx
add edi, 0x20
mov dword [ebp - 8], edi
cmp ebx, dword [esi + 0x3d0]
jle 0x52571e
mov eax, dword [esi + 0x3d0]
inc eax
imul eax, edx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3c8]
cdq
and edx, 3
lea edi, [edx + eax]
mov eax, dword [ebp + 8]
sar edi, 2
mov dword [ebp - 0x14], edi
lea ecx, [esi + 0x414]
test edi, edi
jle 0x525796
mov edx, edi
lea esp, [esp]
movzx ebx, byte [eax]
shl ebx, 0x18
mov dword [ecx], ebx
movzx ebx, byte [eax + 1]
shl ebx, 0x10
or dword [ecx], ebx
movzx ebx, byte [eax + 2]
shl ebx, 8
or dword [ecx], ebx
movzx ebx, byte [eax + 3]
or dword [ecx], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x52576d
xor ebx, ebx
mov dword [ebp + 8], ebx
test edi, edi
jle 0x5257ed
lea eax, [esi + 0x414]
mov dword [ebp + 8], eax
jmp 0x5257ad
cmp ebx, dword [ebp - 4]
jge 0x5257ea
mov eax, ebx
cdq
idiv dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
inc ebx
mov dword [ebp - 0x10], eax
lea eax, [edx + eax*8]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0x3d0]
sub eax, dword [ebp - 0x10]
lea ecx, [edx + eax*8]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add eax, 4
mov dword [esi + ecx*4 + 0x1e8], edx
mov dword [ebp + 8], eax
cmp ebx, edi
jl 0x5257ad
mov dword [ebp + 8], ebx
cmp ebx, dword [ebp - 4]
jge 0x525977
mov dword [ebp - 8], 0x45ba5c
mov eax, dword [esi + edi*4 + 0x410]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x45c280]
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx]
xor edx, ecx
inc dword [ebp - 8]
mov ecx, eax
sar ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x45c280]
shl edx, 8
xor edx, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx + 0x45c280]
sar eax, 0x18
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x45c280]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x414], edx
cmp edi, 8
je 0x52588d
cmp edi, 1
jle 0x52591b
lea eax, [esi + 0x418]
lea ecx, [edi - 1]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x52587d
jmp 0x52591b
lea eax, [esi + 0x418]
mov ecx, 3
jmp 0x52589d
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x52589d
mov eax, dword [esi + 0x420]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x45c280]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x45c280]
shl edx, 8
xor edx, ecx
mov ecx, eax
sar ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x45c280]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x45c280]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x424], edx
lea eax, [esi + 0x428]
mov ecx, 3
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x525910
mov dword [ebp - 0x10], 0
test edi, edi
jle 0x52596e
lea ecx, [esi + 0x414]
nop
cmp ebx, dword [ebp - 4]
jge 0x525977
mov eax, ebx
cdq
idiv dword [ebp - 0xc]
mov ebx, dword [ecx]
add ecx, 4
lea edi, [edx + eax*8]
mov dword [esi + edi*4 + 8], ebx
mov edi, dword [esi + 0x3d0]
mov ebx, dword [ebp + 8]
sub edi, eax
lea eax, [edx + edi*8]
mov edx, dword [ecx - 4]
mov edi, dword [ebp - 0x14]
mov dword [esi + eax*4 + 0x1e8], edx
mov eax, dword [ebp - 0x10]
inc eax
inc ebx
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], ebx
cmp eax, edi
jl 0x52592d
cmp ebx, dword [ebp - 4]
jl 0x5257fd
mov eax, 1
mov dword [ebp + 8], eax
cmp dword [esi + 0x3d0], eax
jle 0x525a02
lea ecx, [esi + 0x208]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x5259ea
mov edi, edi
mov eax, dword [ecx]
mov edi, eax
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x45e480]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x45e880]
mov ebx, eax
sar ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x45ec80]
and eax, 0xff
xor edi, dword [eax*4 + 0x45f080]
add ecx, 4
dec edx
mov dword [ecx - 4], edi
jne 0x52599d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x20
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [esi + 0x3d0]
jl 0x525994
pop edi
mov byte [esi + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 4