Function at 0x523af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x619e40]
subss xmm0, dword [ebp + 0x28]
movss xmm1, dword [0x60bde4]
push esi
mov esi, dword [ebp + 0xc]
push edi
maxss xmm1, xmm0
lea eax, [esi*4]
mov dword [ebp - 0x50], eax
mulss xmm1, dword [0x60bd60]
movss dword [ebp - 8], xmm1
call fcn.00550610
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], esp
mov eax, dword [eax + 0x20]
movsx ecx, word [eax + esi*2 - 2]
movsx esi, word [eax + esi*2]
sub esi, ecx
mov ecx, dword [ebp + 0x24]
shl esi, cl
shl esi, 2
mov eax, esi
call fcn.00550610
mov edi, esp
mov eax, esi
mov dword [ebp - 0x1c], edi
call fcn.00550610
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], esp
call fcn.00550610
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], esp
call fcn.00550610
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x34], 0
test ecx, ecx
jle 0x523eb7
mov eax, dword [ebp + 0x20]
imul eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
cmovne eax, ecx
xor esi, esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 8]
movss dword [ebp - 0x40], xmm0
nop
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 0x20]
movsx edx, word [eax + esi*2]
movsx eax, word [eax + esi*2 + 2]
sub eax, edx
shl edx, cl
add edx, dword [ebp - 0x28]
mov esi, eax
shl esi, cl
mov dword [ebp - 0xc], eax
lea eax, [esi*4]
push eax
mov eax, dword [ebp + 0x1c]
lea eax, [eax + edx*4]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
movss xmm2, dword [0x619f00]
lea edx, [esi - 3]
add esp, 0xc
mov dword [ebp - 0x3c], edx
xor ecx, ecx
xorps xmm3, xmm3
cmp esi, 4
jl 0x523c5a
dec edx
lea eax, [edi + 8]
shr edx, 2
inc edx
lea ecx, [edx*4]
movss xmm1, dword [eax - 8]
movss xmm0, dword [eax - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax + 4]
andps xmm0, xmm2
add eax, 0x10
addss xmm3, xmm0
sub edx, 1
jne 0x523c23
cmp ecx, esi
jge 0x523c71
nop
movss xmm0, dword [edi + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x523c60
movss xmm1, dword [ebp - 0x40]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mulss xmm1, xmm3
addss xmm1, xmm3
movss dword [ebp - 0x14], xmm1
test edx, edx
je 0x523d6c
cmp eax, 1
je 0x523d6c
lea eax, [esi*4]
push eax
push edi
push dword [ebp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp + 0x24]
mov eax, 1
mov ecx, edi
shl eax, cl
push eax
mov eax, esi
sar eax, cl
push eax
push dword [ebp - 0x20]
call fcn.00525790
movss xmm2, dword [0x619f00]
add esp, 0x18
xor eax, eax
xorps xmm3, xmm3
cmp esi, 4
jl 0x523d1c
mov ecx, dword [ebp - 0x20]
lea edx, [esi - 3]
add ecx, 8
movss xmm1, dword [ecx - 8]
add eax, 4
movss xmm0, dword [ecx - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx + 4]
andps xmm0, xmm2
add ecx, 0x10
addss xmm3, xmm0
cmp eax, edx
jl 0x523ce3
cmp eax, esi
jge 0x523d34
mov ecx, dword [ebp - 0x20]
movss xmm0, dword [ecx + eax*4]
inc eax
andps xmm0, xmm2
addss xmm3, xmm0
cmp eax, esi
jl 0x523d23
movss xmm1, dword [ebp - 0x14]
lea eax, [edi + 1]
mov edx, dword [ebp + 0x10]
movd xmm0, eax
mov eax, dword [ebp - 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 8]
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x523d6f
movaps xmm1, xmm0
movss dword [ebp - 0x14], xmm0
mov dword [ebp - 0x18], 0xffffffff
jmp 0x523d6f
mov edi, dword [ebp + 0x24]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
movss dword [ebp - 0x44], xmm1
test edx, edx
jne 0x523d87
cmp eax, 1
je 0x523d87
lea eax, [edx + 1]
jmp 0x523d89
xor eax, eax
add eax, edi
cmp ecx, eax
jge 0x523e6a
test edx, edx
je 0x523d9c
sub edi, ecx
dec edi
jmp 0x523d9f
lea edi, [ecx + 1]
mov eax, 1
shl eax, cl
push eax
mov eax, esi
sar eax, cl
push eax
push dword [ebp - 0x1c]
call fcn.00525790
mov edx, dword [ebp - 0x1c]
add esp, 0xc
movss xmm2, dword [0x619f00]
xor eax, eax
xorps xmm3, xmm3
cmp esi, 4
jl 0x523e0a
lea ecx, [edx + 8]
nop
movss xmm1, dword [ecx - 8]
add eax, 4
movss xmm0, dword [ecx - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx + 4]
andps xmm0, xmm2
add ecx, 0x10
addss xmm3, xmm0
cmp eax, dword [ebp - 0x3c]
jl 0x523dd0
cmp eax, esi
jge 0x523e21
nop
movss xmm0, dword [edx + eax*4]
inc eax
andps xmm0, xmm2
addss xmm3, xmm0
cmp eax, esi
jl 0x523e10
movss xmm1, dword [ebp - 0x14]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 8]
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x523e47
movaps xmm1, xmm0
movss dword [ebp - 0x14], xmm1
mov ecx, dword [ebp - 0x30]
movss xmm2, dword [ebp - 0x44]
inc ecx
mov edi, dword [ebp + 0x24]
mov eax, ecx
mov edx, dword [ebp + 0x10]
comiss xmm2, xmm0
cmovbe eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
jmp 0x523d71
mov esi, dword [ebp - 0x34]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
test edx, edx
setne cl
lea ecx, [ecx*4 - 2]
imul ecx, dword [ebp - 0x18]
cmp dword [ebp - 0xc], 1
mov dword [eax + esi*4], ecx
jne 0x523ea2
test ecx, ecx
je 0x523e99
mov eax, edi
neg eax
add eax, eax
cmp ecx, eax
jne 0x523ea2
mov edi, dword [ebp - 0x10]
lea eax, [ecx - 1]
mov dword [edi + esi*4], eax
mov edi, dword [ebp - 0x1c]
inc esi
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x34], esi
cmp esi, dword [ebp + 0xc]
jl 0x523bc0
jmp 0x523eba
mov edx, dword [ebp + 0x10]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov eax, dword [ebp + 0x30]
test edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edi
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
cmovne eax, ecx
mov dword [ebp - 0x2c], eax
lea eax, [edx*4]
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + edx*2]
lea eax, [eax*4 + 0x5fb951]
mov dword [ebp - 8], eax
nop dword [eax]
movsx ecx, byte [eax - 1]
mov eax, dword [ebp - 0x10]
add ecx, ecx
mov eax, dword [eax]
sub eax, ecx
cdq
mov esi, eax
mov eax, dword [ebp - 8]
xor esi, edx
sub esi, edx
imul esi, dword [ebp - 0x18]
movsx ecx, byte [eax]
mov eax, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [eax]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
cdq
xor eax, edx
sub eax, edx
imul eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
cmp ecx, 1
jle 0x523fe2
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp + 0x24]
movsx ecx, byte [edx + edi*8 + 0x5fb950]
add ecx, ecx
mov dword [ebp - 0x44], ecx
movsx ecx, byte [edx + edi*8 + 0x5fb951]
mov edi, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x14]
sub edi, ecx
mov dword [ebp - 0x4c], edi
lea edx, [ecx + 4]
mov ecx, dword [ebp + 0xc]
dec ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x18]
add ecx, eax
mov eax, dword [ebp + 0x18]
add eax, esi
mov esi, dword [edi + edx]
mov edi, dword [edx]
mov dword [ebp - 0x48], eax
mov eax, esi
sub eax, dword [ebp - 0x44]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x1c]
imul eax, edi
cmp edx, ecx
cmovge edx, ecx
sub esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
add edx, eax
mov eax, esi
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0x1c]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x3c]
imul eax, edi
cmp ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x4c]
cmovge ecx, dword [ebp - 0x34]
add edx, 4
mov dword [ebp - 0x3c], edx
add eax, ecx
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x34], eax
jne 0x523f80
mov edi, dword [ebp - 0x28]
jmp 0x523fe6
dec ecx
mov dword [ebp - 0xc], ecx
cmp esi, eax
cmovl eax, esi
add dword [ebp - 0x20], 2
mov dword [ebp + edi*4 - 0x5c], eax
inc edi
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], eax
cmp edi, 2
jl 0x523f00
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x5c]
jge 0x524025
xor eax, eax
mov ecx, 1
test esi, esi
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x524027
xor eax, eax
mov edx, dword [ebp + 0x24]
lea ecx, [esi + edx*2]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 8], eax
mov esi, dword [ecx]
movsx ecx, byte [eax + 0x5fb950]
mov eax, esi
add ecx, ecx
sub eax, ecx
cdq
mov edi, eax
mov eax, dword [ebp - 8]
xor edi, edx
sub edi, edx
imul edi, dword [ebp - 0x18]
movsx ecx, byte [eax + 0x5fb951]
add ecx, ecx
sub esi, ecx
mov eax, esi
cdq
mov esi, eax
xor esi, edx
sub esi, edx
imul esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x2c]
cmp dword [ebp + 0xc], 1
jle 0x524126
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x24], eax
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
lea edx, [eax + 4]
mov dword [ebp - 0x2c], edx
nop dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, edi
add ecx, esi
cmp edi, ecx
cmovge eax, ecx
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp edi, ecx
mov ecx, dword [ebp - 0x24]
setge al
mov dword [ecx + edx], eax
mov ecx, dword [ebp + 0x18]
add ecx, edi
cmp ecx, esi
mov eax, ecx
cmovge eax, esi
mov dword [ebp - 0x48], eax
xor eax, eax
cmp ecx, esi
setge al
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + edx]
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + edx]
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x5fb950]
mov eax, esi
add ecx, ecx
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
imul eax, edi
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x5fb951]
add ecx, ecx
sub esi, ecx
mov eax, esi
cdq
mov esi, eax
xor esi, edx
sub esi, edx
mov edx, dword [ebp - 0x2c]
imul esi, edi
add edx, 4
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
add esi, dword [ebp - 0x48]
sub dword [ebp - 0xc], 1
jne 0x524090
mov ecx, dword [ebp - 0x24]
jmp 0x52412f
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x50]
xor eax, eax
cmp edi, esi
mov edi, dword [ebp + 0x14]
setge al
mov dword [edx + edi - 4], eax
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffe
js 0x524172
mov eax, dword [ebp - 0x38]
mov esi, edi
lea eax, [eax + edx*4]
add eax, 4
sub esi, dword [ebp - 0x38]
cmp dword [esi + eax], 1
jne 0x524160
mov ecx, eax
jmp 0x524162
add ecx, eax
mov ecx, dword [ecx]
sub eax, 4
mov dword [edi + edx*4], ecx
sub edx, 1
mov ecx, dword [ebp - 0x24]
jns 0x524156
mov eax, dword [ebp - 0x30]
lea esp, [ebp - 0x64]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret