Function at 0x527ec5
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd8
call fcn.0041f610
mov eax, dword [0x6240b8]
xor eax, esp
mov dword [esp + 0xd4], eax
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xe4]
push esi
push edi
mov edi, dword [edx + 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov esi, dword [edi + 0xc8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], esi
lea eax, [esi + 0x10]
cmp ecx, eax
je 0x527f3a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041eca9
add esp, 0xd8
ret
lea eax, [esp + 0x40]
mov dword [edi + 0x20], 0
neg eax
lea ecx, [esp + 0x40]
and eax, 0xf
add ecx, eax
mov dword [esp + 0x2c], ecx
push ebp
lea eax, [ecx + 0x30]
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x20]
lea ebp, [ecx + 0x40]
mov dword [esp + 0x14], ebp
push eax
push edi
cmp esi, 0x40
ja 0x52815f
push 0x80
push 0x5e4e58
push ecx
mov dword [esp + 0x50], 0x80
call fcn.00546dd0
push dword [esp + 0x44]
lea eax, [edi + 0xd0]
push eax
call fcn.00517b30
mov eax, dword [esp + 0x48]
xor ebp, ebp
movups xmm0, xmmword [edi + 0x94]
mov dword [edi + 0x70], 0
add esp, 0x1c
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x24]
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], 0
cmp dword [eax + 8], ebp
je 0x528022
test esi, esi
je 0x528133
mov eax, dword [esp + 0x14]
mov ebp, esi
mov ecx, dword [esp + 0x10]
mov edx, eax
sub ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x34]
sub ecx, eax
mov edi, ecx
movzx ecx, byte [ebx + edx]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov byte [edx - 1], cl
mov byte [edi + edx - 1], cl
sub esi, 1
jne 0x528004
jmp 0x52812b
test esi, esi
je 0x528133
mov ecx, dword [esp + 0x14]
cmp esi, 0x20
jb 0x5280ea
lea eax, [ebx - 1]
xor ebp, ebp
lea edx, [ecx - 1]
add eax, esi
add edx, esi
mov dword [esp + 0x18], edx
cmp ecx, eax
ja 0x528053
cmp edx, ebx
jae 0x5280ea
mov edx, dword [esp + 0x10]
lea eax, [edx - 1]
add eax, esi
cmp ecx, eax
ja 0x52806a
cmp dword [esp + 0x18], edx
jae 0x5280ee
cmp ebx, eax
ja 0x528077
lea eax, [ebx - 1]
add eax, esi
cmp eax, edx
jae 0x5280ee
mov eax, esi
lea edi, [ebx + 0x10]
and eax, 0xffffffe0
mov edx, ecx
mov dword [esp + 0x34], eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
sub eax, ebx
mov ebx, dword [esp + 0x34]
mov ecx, eax
nop dword [eax]
movups xmm0, xmmword [edx]
lea eax, [edx + esi]
add ebp, 0x20
lea edx, [edx + 0x20]
lea edi, [edi + 0x20]
movups xmm1, xmmword [eax + ecx]
pxor xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm2, xmmword [ecx + edi - 0x20]
movups xmmword [edx - 0x20], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x10]
movups xmmword [edx - 0x10], xmm2
pxor xmm1, xmm0
movups xmmword [edi - 0x20], xmm1
cmp ebp, ebx
jb 0x5280a0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp ebp, esi
jae 0x528133
mov eax, dword [esp + 0x20]
lea ebx, [ecx + ebp]
mov edi, edx
sub esi, ebp
sub edi, eax
sub eax, ecx
add ebp, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebp
mov ebp, eax
nop dword [eax]
mov al, byte [ebx]
lea ecx, [ebx + ebp]
mov dl, byte [edi + ecx]
lea ebx, [ebx + 1]
xor al, dl
mov byte [ebx - 1], dl
mov byte [ecx], al
sub esi, 1
jne 0x528110
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov esi, ebp
neg esi
add eax, ebp
and esi, 0xf
push esi
push 0
push eax
call fcn.0043ffd0
mov ecx, dword [esp + 0x20]
lea eax, [esi + ebp]
add esp, 0xc
lea edx, [eax + 0x10]
add ecx, eax
mov esi, ebp
jmp 0x528242
push 0x40
push 0x5e4e58
push ecx
mov dword [esp + 0x50], 0x40
call fcn.00546dd0
push dword [esp + 0x44]
lea eax, [edi + 0xd0]
push eax
call fcn.00517b30
push 0x10
lea eax, [edi + 0x94]
mov dword [edi + 0x20], 1
push eax
lea eax, [edi + 0xd0]
mov dword [edi + 0x70], 0
push eax
call fcn.00517bf0
mov eax, dword [esp + 0x4c]
add esp, 0x28
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], 0
cmp dword [eax + 8], 0
mov dword [esp + 0x2c], ebp
je 0x5281fc
lea eax, [edi + 0x20]
push eax
push edi
push esi
push dword [esp + 0x1c]
push ebx
call fcn.00546dd0
push esi
lea eax, [edi + 0xd0]
push ebx
push eax
call fcn.00517bf0
jmp 0x52821b
mov ebp, dword [esp + 0x10]
lea eax, [edi + 0xd0]
push esi
push ebp
push eax
call fcn.00517bf0
lea eax, [edi + 0x20]
push eax
push edi
push esi
push ebp
push ebx
call fcn.00546dd0
add esp, 0x20
mov eax, esi
neg eax
and eax, 0xf
push eax
lea eax, [edi + 0xd0]
push 0x5e4e58
push eax
call fcn.00517bf0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebp, esi
xor edx, edx
mov eax, dword [esp + 0x10]
movups xmm0, xmmword [edi + 0xa8]
add eax, esi
lea esi, [ebx + ebp]
mov ebp, dword [esp + 0x2c]
lea ebx, [edi + 0xd0]
mov dword [esp + 0x1c], eax
lea eax, [edx + 0x10]
push eax
push ebp
push ebx
movups xmmword [ecx], xmm0
call fcn.00517bf0
push dword [esp + 0x48]
push dword [esp + 0x40]
call fcn.004ab670
mov eax, dword [esp + 0x38]
add esp, 0x14
cmp dword [eax + 8], 0
lea eax, [edi + 0x84]
jne 0x528290
mov eax, ebp
push eax
push ebx
call fcn.00517ab0
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x5282d5
movups xmm0, xmmword [edi + 0x84]
movups xmmword [esi], xmm0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xe4]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041eca9
add esp, 0xd8
ret
push 0x10
push dword [esp + 0x20]
push ebp
call fcn.004f0d00
add esp, 0xc
test eax, eax
je 0x5282b8
mov ecx, dword [esp + 0x40]
sub esi, ecx
add esi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push esi
call fcn.0043ffd0
add esp, 0xc
or eax, 0xffffffff
jmp 0x5282bc