Function at 0x524ce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd8
call fcn.0047a3d0
mov eax, dword [0x665024]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov dword [esp], eax
mov eax, dword [esp + 0xdc]
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
mov ebx, dword [eax + 0x64]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebp
mov edi, dword [ebx + 0xc8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
lea eax, [edi + 0x10]
cmp ecx, eax
je 0x524d59
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004797c8
add esp, 0xd8
ret
lea eax, [esp + 0x40]
mov dword [ebx + 0x20], 0
neg eax
lea ecx, [esp + 0x40]
and eax, 0xf
add eax, ecx
mov dword [esp + 0x10], eax
push esi
lea ecx, [eax + 0x30]
mov dword [esp + 0x1c], ecx
lea ecx, [ebx + 0x20]
lea esi, [eax + 0x40]
mov dword [esp + 0x38], esi
push ecx
push ebx
cmp edi, 0x40
ja 0x524fb1
push 0x80
push 0x617160
push eax
mov dword [esp + 0x50], 0x80
call fcn.005771e0
push dword [esp + 0x28]
lea eax, [ebx + 0xd0]
push eax
call fcn.005777e0
mov ecx, dword [esp + 0x38]
xor ebp, ebp
movups xmm0, xmmword [ebx + 0x94]
mov eax, dword [esp + 0x4c]
add esp, 0x1c
mov dword [ebx + 0x70], 0
movups xmmword [ecx], xmm0
mov dword [ebx + 0xa8], 0xd
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], 0
cmp dword [eax + 8], ebp
je 0x524e31
test edi, edi
je 0x524f8a
mov ecx, dword [esp + 0x10]
mov ebp, edi
mov edx, dword [esp + 0x18]
sub ecx, esi
sub edx, esi
movzx eax, byte [ecx + esi]
lea esi, [esi + 1]
xor byte [esi - 1], al
movzx eax, byte [esi - 1]
mov byte [edx + esi - 1], al
sub edi, 1
jne 0x524e15
jmp 0x524f8a
test edi, edi
je 0x524f8a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edi, 0x40
jb 0x524f44
lea ebx, [eax - 1]
xor ebp, ebp
add ebx, edi
lea ecx, [edx + 0x3f]
add ecx, edi
mov dword [esp + 0x24], ebx
cmp esi, ebx
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x2c]
ja 0x524e6e
cmp ecx, eax
jae 0x524f44
mov ecx, dword [esp + 0x10]
lea ebx, [ecx - 1]
add ebx, edi
mov dword [esp + 0x34], ebx
cmp esi, ebx
mov ebx, dword [esp + 0x2c]
ja 0x524e8d
cmp dword [esp + 0x20], ecx
jae 0x524f48
cmp eax, dword [esp + 0x34]
ja 0x524e9d
cmp dword [esp + 0x24], ecx
jae 0x524f48
mov edx, edi
mov dword [esp + 0x20], ecx
mov edi, eax
lea ebx, [eax + 0x10]
and edx, 0xffffffc0
sub edi, esi
sub dword [esp + 0x20], eax
lea eax, [ecx + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
mov edx, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], eax
movups xmm0, xmmword [edx]
lea eax, [edx + edi]
movups xmm1, xmmword [eax + ecx]
lea edx, [edx + 0x40]
lea ebx, [ebx + 0x40]
pxor xmm0, xmm1
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [ecx + ebx - 0x40]
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x34]
movups xmm0, xmmword [edx - 0x30]
movups xmmword [edx - 0x30], xmm1
movups xmm2, xmmword [eax + ebp - 0x10]
pxor xmm0, xmm1
movups xmmword [ebx - 0x40], xmm0
movups xmm0, xmmword [edx - 0x20]
movups xmmword [edx - 0x20], xmm2
movaps xmm1, xmm2
movups xmm2, xmmword [eax + ebp]
add ebp, 0x40
pxor xmm1, xmm0
movups xmm0, xmmword [edx - 0x10]
movups xmmword [ebx - 0x30], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebx - 0x20], xmm1
movups xmmword [edx - 0x10], xmm2
cmp ebp, esi
jb 0x524ec6
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp ebp, edi
jae 0x524f8a
sub ecx, eax
mov dword [esp + 0x24], edi
sub eax, esi
mov dword [esp + 0x28], ecx
lea ebx, [ebp + 0x40]
mov dword [esp + 0x38], eax
mov esi, edi
add ebx, edx
sub esi, ebp
mov ebp, ecx
lea ecx, [ebx + eax]
mov al, byte [ebx]
mov dl, byte [ecx + ebp]
lea ebx, [ebx + 1]
xor al, dl
mov byte [ebx - 1], dl
mov byte [ecx], al
mov eax, dword [esp + 0x38]
sub esi, 1
jne 0x524f67
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov esi, ebp
neg esi
and esi, 0xf
push esi
lea eax, [edi + 0x40]
add eax, ebp
push 0
push eax
call fcn.0059f880
lea eax, [esi + ebp]
lea ecx, [eax + 0x20]
lea edx, [eax + edi]
jmp 0x525096
push 0x40
push 0x617160
push eax
mov dword [esp + 0x50], 0x40
call fcn.005771e0
push dword [esp + 0x28]
lea eax, [ebx + 0xd0]
push eax
call fcn.005777e0
push 0x10
lea eax, [ebx + 0x94]
mov dword [ebx + 0x20], 1
push eax
lea eax, [ebx + 0xd0]
mov dword [ebx + 0x70], 0
push eax
call fcn.00577950
mov eax, dword [esp + 0x58]
add esp, 0x28
mov dword [ebx + 0xa8], 0xd
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], 0
cmp dword [eax + 8], 0
mov dword [esp + 0x1c], esi
je 0x52504e
lea eax, [ebx + 0x20]
push eax
push ebx
push edi
push dword [esp + 0x1c]
push ebp
call fcn.005771e0
push edi
lea eax, [ebx + 0xd0]
push ebp
push eax
call fcn.00577950
jmp 0x52506d
mov esi, dword [esp + 0x10]
lea eax, [ebx + 0xd0]
push edi
push esi
push eax
call fcn.00577950
lea eax, [ebx + 0x20]
push eax
push ebx
push edi
push esi
push ebp
call fcn.005771e0
add esp, 0x20
mov eax, edi
neg eax
and eax, 0xf
push eax
lea eax, [ebx + 0xd0]
push 0x617160
push eax
call fcn.00577950
mov ebp, edi
mov ecx, 0x10
mov edi, dword [esp + 0x20]
mov edx, edi
mov esi, dword [esp + 0x1c]
add esp, 0xc
movups xmm0, xmmword [ebx + 0xa8]
add esi, ebp
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
add esi, ebp
lea ebp, [ebx + 0xd0]
push ebp
movups xmmword [edx + 0x40], xmm0
call fcn.00577950
push dword [esp + 0x48]
push edi
call fcn.00492980
mov ecx, dword [esp + 0x44]
lea eax, [ebx + 0x84]
cmp dword [ecx + 8], 0
cmove eax, dword [esp + 0x30]
push eax
push ebp
call fcn.00577760
mov eax, dword [esp + 0x4c]
add esp, 0x1c
mov dword [ebx + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x525127
movups xmm0, xmmword [ebx + 0x84]
movups xmmword [esi], xmm0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xe4]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004797c8
add esp, 0xd8
ret
push 0x10
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.004ea350
add esp, 0xc
test eax, eax
je 0x52510a
mov ecx, dword [esp + 0x40]
sub esi, ecx
add esi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push esi
call fcn.0059f880
add esp, 0xc
or eax, 0xffffffff
jmp 0x52510e