Function at 0x5aca70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
push esi
push edi
mov edi, edx
mov dword [esp + 0x20], ecx
mov edx, ecx
mov dword [esp + 0x3c], edi
imul edx, edi
mov dword [esp + 0x10], edx
test edi, edi
jle 0x5acaf9
mov esi, dword [esp + 0x4c]
lea edi, [ecx*8]
lea eax, [ecx*4]
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, ecx
lea edx, [ecx + edx*4]
mov ecx, esi
add ecx, 0xfffffffc
add edi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
movss xmm0, dword [edx]
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [eax]
subss xmm0, dword [edx]
add esi, dword [esp + 0x30]
add eax, dword [esp + 0x34]
add edx, dword [esp + 0x34]
movss dword [edi], xmm0
add edi, dword [esp + 0x30]
sub dword [esp + 0x38], 1
jne 0x5acac2
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
cmp ecx, 2
jl 0x5accd1
je 0x5acc6e
mov dword [esp + 0x2c], 0
test edi, edi
jle 0x5acc5b
mov esi, dword [esp + 0x48]
lea eax, [ecx*4]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
lea eax, [ecx*8]
mov dword [esp + 0x1c], eax
lea eax, [esi + edx*4]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
lea eax, [ecx*8]
add eax, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], esi
add dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x40]
cmp ecx, 2
jle 0x5acc2c
mov edx, dword [esp + 0x34]
mov esi, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
add eax, 4
mov dword [esp + 0x28], eax
lea eax, [ecx - 3]
mov ecx, dword [esp + 8]
shr eax, 1
inc eax
mov dword [esp + 0x24], eax
nop word [eax + eax]
mov eax, dword [esp + 0x28]
add ecx, 8
add edx, 8
add edi, 8
sub esi, 8
movss xmm4, dword [ecx]
movss xmm1, dword [eax]
movaps xmm0, xmm4
mulss xmm4, dword [eax - 4]
movss xmm5, dword [ecx - 4]
mulss xmm5, dword [eax - 4]
add eax, 8
sub dword [esp + 0x24], 1
mulss xmm0, xmm1
mov dword [esp + 0x28], eax
mulss xmm1, dword [ecx - 4]
addss xmm5, xmm0
movss xmm0, dword [edx]
subss xmm4, xmm1
addss xmm0, xmm4
movss dword [edi], xmm0
movaps xmm0, xmm5
subss xmm4, dword [edx]
movss dword [esi], xmm4
addss xmm0, dword [edx - 4]
movss dword [edi - 4], xmm0
movss xmm0, dword [edx - 4]
subss xmm0, xmm5
movss dword [esi - 4], xmm0
jne 0x5acba0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
add edi, dword [esp + 0x1c]
add esi, dword [esp + 0x18]
add edx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
sub dword [esp + 0x14], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
jne 0x5acb62
mov edi, dword [esp + 0x3c]
mov eax, ecx
and eax, 0x80000001
jns 0x5acc69
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x5accd1
lea esi, [ecx - 1]
mov edx, esi
add esi, dword [esp + 0x10]
test edi, edi
jle 0x5accd1
movss xmm1, dword [0x61cb00]
lea eax, [ecx*8]
mov dword [esp + 8], eax
lea eax, [ecx*4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x48]
lea edx, [eax + edx*4]
lea esi, [eax + esi*4]
nop word [eax + eax]
movss xmm0, dword [esi]
add esi, dword [esp + 0xc]
xorps xmm0, xmm1
movss dword [ecx], xmm0
mov eax, dword [edx]
add edx, dword [esp + 0xc]
mov dword [ecx - 4], eax
add ecx, dword [esp + 8]
sub edi, 1
jne 0x5accb0
pop edi
pop esi
add esp, 0x3c
ret