Function at 0x10004240
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
imul esi, ebp
xor edx, edx
cmp ebp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], edx
jl 0x10004324
add ebp, 0xfffffffc
shr ebp, 2
inc ebp
mov dword [esp + 0x24], ebp
add ebp, ebp
lea ebx, [ecx + ecx]
add ebp, ebp
lea ebx, [edi + ebx*4 - 4]
mov dword [esp + 0xc], ebp
lea esp, [esp]
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
movss dword [ebx], xmm0
add edx, ecx
add esi, ecx
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
lea ebp, [ecx*8]
movss dword [ebx + ebp], xmm0
add ebx, ebp
add edx, ecx
add esi, ecx
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
movss dword [ebx + ebp], xmm0
add ebx, ebp
add edx, ecx
add esi, ecx
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
movss dword [edi + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
add ebx, ebp
movss dword [ebx], xmm0
add edx, ecx
add ebx, ebp
add esi, ecx
sub dword [esp + 0x24], 1
jne 0x10004280
mov ebp, dword [esp + 0x34]
cmp dword [esp + 0xc], ebp
jge 0x100043a1
lea ebp, [edi + edx*8]
lea ebx, [eax + edx*4]
mov dword [esp + 0x24], ebp
lea ebp, [ecx + ecx]
lea edx, [ebp + edx*2]
lea edx, [edi + edx*4 - 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0xc]
lea esi, [eax + esi*4]
mov dword [esp + 0x20], edx
movss xmm0, dword [esi]
addss xmm0, dword [ebx]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
movss dword [ebp], xmm0
movss xmm0, dword [ebx]
subss xmm0, dword [esi]
movss dword [edx], xmm0
lea edx, [ecx*8]
add dword [esp + 0x10], edx
add ebp, edx
mov dword [esp + 0x24], ebp
lea ebp, [ecx*4]
lea edx, [ecx*4]
add ebx, ebp
add esi, edx
sub dword [esp + 0x20], 1
jne 0x10004352
mov ebp, dword [esp + 0x34]
cmp ecx, 2
jl 0x100045eb
je 0x100044ea
test ebp, ebp
jle 0x100044d2
mov edx, dword [esp + 0x2c]
lea edx, [eax + edx*4]
mov dword [esp + 0x20], edx
lea edx, [edi + ecx*8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ebp
cmp ecx, 2
jle 0x100044a9
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x38]
add esi, 4
mov dword [esp + 0x10], esi
lea esi, [ecx - 3]
shr esi, 1
inc esi
jmp 0x10004410
mov ebp, dword [esp + 0x10]
movss xmm0, dword [ebp - 4]
add dword [esp + 0xc], 8
mov ebp, dword [esp + 0xc]
movss xmm3, dword [ebp - 4]
mov ebp, dword [esp + 0x10]
movss xmm2, dword [ebp]
mov ebp, dword [esp + 0xc]
movss xmm4, dword [ebp]
add dword [esp + 0x14], 8
mov ebp, dword [esp + 0x14]
add dword [esp + 0x10], 8
movaps xmm5, xmm0
mulss xmm0, xmm4
add edx, 8
movaps xmm1, xmm4
mulss xmm1, xmm2
mulss xmm2, xmm3
subss xmm0, xmm2
movss xmm2, dword [edx]
addss xmm2, xmm0
movss dword [ebp], xmm2
subss xmm0, dword [edx]
sub ebx, 8
sub esi, 1
movss dword [ebx], xmm0
movss xmm0, dword [edx - 4]
mulss xmm5, xmm3
addss xmm1, xmm5
addss xmm0, xmm1
movss dword [ebp - 4], xmm0
movss xmm0, dword [edx - 4]
subss xmm0, xmm1
movss dword [ebx - 4], xmm0
jne 0x10004410
mov ebp, dword [esp + 0x34]
lea edx, [ecx*8]
add dword [esp + 0x18], edx
add dword [esp + 0x24], edx
lea esi, [ecx*4]
add dword [esp + 0x1c], esi
add dword [esp + 0x20], esi
sub dword [esp + 0x28], 1
jne 0x100043d6
mov edx, ecx
and edx, 0x80000001
jns 0x100044e1
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
je 0x100045eb
movss xmm0, dword [0x10030510]
lea esi, [ecx - 1]
mov ebx, esi
add esi, dword [esp + 0x2c]
cmp ebp, 4
mov edx, ecx
mov dword [esp + 0xc], 0
jl 0x100045a6
mov ebp, dword [esp + 0x34]
add ebp, 0xfffffffc
shr ebp, 2
inc ebp
mov dword [esp + 0x2c], ebp
add ebp, ebp
add ebp, ebp
mov dword [esp + 0xc], ebp
jmp 0x10004530
movss xmm1, dword [eax + esi*4]
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
lea ebp, [ecx + ecx]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
add edx, ebp
add ebx, ecx
xorps xmm1, xmm0
movss dword [edi + edx*4], xmm1
fld dword [eax + ebx*4]
fstp dword [edi + edx*4 - 4]
add edx, ebp
add esi, ecx
add ebx, ecx
sub dword [esp + 0x2c], 1
jne 0x10004530
mov ebp, dword [esp + 0x34]
cmp dword [esp + 0xc], ebp
jge 0x100045eb
lea ebp, [ecx*4]
add ecx, ecx
lea ebx, [eax + ebx*4]
lea eax, [eax + esi*4]
mov esi, dword [esp + 0x34]
add ecx, ecx
add ecx, ecx
sub esi, dword [esp + 0xc]
lea edx, [edi + edx*4]
lea ebx, [ebx]
movss xmm1, dword [eax]
xorps xmm1, xmm0
movss dword [edx], xmm1
fld dword [ebx]
fstp dword [edx - 4]
add edx, ecx
add eax, ebp
add ebx, ebp
sub esi, 1
jne 0x100045d0
pop esi
pop ebp
pop ebx
add esp, 0x24
ret