Function at 0x1005f060
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push esi
mov esi, eax
imul esi, edx
lea ecx, [eax*4]
mov dword [esp + 0x2c], ecx
push edi
mov dword [esp + 0x20], esi
test edx, edx
jle 0x1005f0ed
mov edx, dword [esp + 0x40]
lea edi, [eax*8]
mov ecx, dword [esp + 0x20]
mov eax, edx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x24], edi
lea edx, [edx + ecx*4]
mov ecx, esi
add ecx, 0xfffffffc
add edi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
movss xmm0, dword [edx]
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [eax]
add eax, ecx
subss xmm0, dword [edx]
add esi, dword [esp + 0x24]
add edx, ecx
movss dword [edi], xmm0
add edi, dword [esp + 0x24]
sub dword [esp + 0x28], 1
jne 0x1005f0b4
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
jmp 0x1005f0f1
mov dword [esp + 0x30], ecx
cmp eax, 2
jl 0x1005f27f
je 0x1005f22f
test edx, edx
jle 0x1005f22b
mov edi, dword [esp + 0x40]
lea ecx, [eax*8]
mov eax, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
lea esi, [edi + esi*4]
mov edi, dword [esp + 0x44]
add ecx, edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
cmp eax, 2
jle 0x1005f1f7
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x2c]
add eax, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffffd
shr eax, 1
inc eax
mov dword [esp + 0x18], eax
nop
mov eax, dword [esp + 0x1c]
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 + 0x18], 1
mulss xmm0, xmm1
mov dword [esp + 0x1c], eax
mulss xmm1, dword [ecx - 4]
addss xmm5, xmm0
subss xmm4, xmm1
movaps xmm0, xmm4
addss xmm0, dword [edx]
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 0x1005f170
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 8]
add edx, ecx
add dword [esp + 0x2c], eax
add edi, eax
mov eax, dword [esp + 0x38]
add esi, ecx
sub dword [esp + 0x10], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], esi
jne 0x1005f144
mov edx, dword [esp + 0x3c]
lea ecx, [eax*4]
test al, 1
jne 0x1005f27f
lea edi, [eax - 1]
mov esi, edi
add edi, dword [esp + 0x20]
test edx, edx
jle 0x1005f27f
mov edx, dword [esp + 0x44]
movss xmm1, dword [0x10157ae0]
shl eax, 3
add edx, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
lea esi, [eax + esi*4]
lea edi, [eax + edi*4]
nop dword [eax + eax]
movss xmm0, dword [edi]
add edi, ecx
xorps xmm0, xmm1
movss dword [edx], xmm0
mov eax, dword [esi]
add esi, ecx
mov dword [edx - 4], eax
add edx, dword [esp + 0x38]
sub dword [esp + 0x3c], 1
jne 0x1005f260
pop edi
pop esi
add esp, 0x2c
ret