Function at 0x10043540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, ecx
vxorps xmm7, xmm7, xmm7
push edi
xor edi, edi
mov dword [ebp - 0x38], esi
lea edx, [esi + 0x50]
mov dword [ebp - 0x14], edi
vmovss dword [edx], xmm7
vmovss dword [edx + 4], xmm7
vmovss dword [esi + 0x58], xmm7
vmovss dword [esi + 0x5c], xmm7
vxorps xmm1, xmm1, xmm1
mov dword [ebp - 0x28], edx
vmovss dword [ebp - 8], xmm1
cmp dword [esi + 0x28], edi
jle 0x10043736
xor ecx, ecx
mov dword [ebp - 0xc], ecx
nop word [eax + eax]
mov eax, dword [esi + 0x30]
mov dword [ebp - 4], 1
mov edx, dword [ecx + eax + 4]
mov eax, dword [ecx + eax + 0xc]
mov dword [ebp - 0x18], edx
add edx, 0xfffffffe
mov dword [ebp - 0x3c], edx
mov eax, dword [eax]
shl eax, 4
add eax, dword [esi + 0x1c]
cmp edx, 1
mov dword [ebp - 0x1c], eax
lea edx, [esi + 0x50]
jl 0x1004371a
mov eax, dword [esi + 0x30]
mov esi, dword [esi + 0x1c]
mov ecx, dword [ecx + eax + 0xc]
mov eax, dword [ebp - 4]
mov edi, dword [ecx + eax*4]
inc eax
mov dword [ebp - 4], eax
add edi, edi
cdq
idiv dword [ebp - 0x18]
vmovss xmm7, dword [esi + edi*8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x1c]
shl eax, 4
add eax, esi
mov edx, dword [ebp - 0x28]
vmovss xmm4, dword [ecx + 4]
vmovss xmm3, dword [ecx + 8]
vmovss xmm0, dword [eax + 4]
vmovss xmm1, dword [ecx]
vsubss xmm6, xmm1, dword [eax]
vsubss xmm2, xmm4, xmm0
vmovss dword [ebp - 0x20], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x34], xmm0
vsubss xmm5, xmm1, xmm7
vmovss dword [ebp - 0x10], xmm3
vmovss xmm1, dword [ebp - 0x10]
vsubss xmm3, xmm3, xmm0
vmovss xmm0, dword [esi + edi*8 + 4]
vmovss dword [ebp - 0x2c], xmm0
vmovss dword [ebp - 0x24], xmm4
vsubss xmm4, xmm4, xmm0
vmovss xmm0, dword [esi + edi*8 + 8]
vsubss xmm1, xmm1, xmm0
vmovss dword [ebp - 0x30], xmm0
vmulss xmm0, xmm1, xmm2
vmovaps xmm2, xmm3
vfmsub213ss xmm2, xmm4, xmm0
vmulss xmm0, xmm5, xmm3
mov esi, dword [ebp - 0x38]
vmovaps xmm3, xmm6
vfmsub213ss xmm3, xmm1, xmm0
vmulss xmm0, xmm4, xmm6
vmovss xmm6, dword [ebp - 0x24]
vsubss xmm1, xmm6, dword [ebp - 0x20]
vfmsub213ss xmm1, xmm5, xmm0
vmulss xmm0, xmm2, xmm2
vfmadd213ss xmm3, xmm3, xmm0
vaddss xmm0, xmm7, dword [ecx]
vaddss xmm0, xmm0, dword [eax]
vfmadd213ss xmm1, xmm1, xmm3
vmovss xmm3, dword [0x100b3bfc]
vsqrtss xmm2, xmm1, xmm1
mov eax, dword [ebp - 4]
vmulss xmm0, xmm0, xmm2
mov ecx, dword [ebp - 0xc]
vmovaps xmm1, xmm3
vfmadd213ss xmm1, xmm0, dword [edx]
vaddss xmm0, xmm6, dword [ebp - 0x2c]
vaddss xmm0, xmm0, dword [ebp - 0x20]
vmovss dword [edx], xmm1
vmulss xmm0, xmm0, xmm2
vmovaps xmm1, xmm3
vfmadd213ss xmm1, xmm0, dword [edx + 4]
vmovss xmm0, dword [ebp - 0x30]
vaddss xmm0, xmm0, dword [ebp - 0x10]
vaddss xmm0, xmm0, dword [ebp - 0x34]
vmovss dword [edx + 4], xmm1
vmovaps xmm1, xmm3
vmulss xmm0, xmm0, xmm2
vfmadd213ss xmm1, xmm0, dword [esi + 0x58]
vmovss dword [esi + 0x58], xmm1
vmovss xmm1, dword [ebp - 8]
vfmadd231ss xmm1, xmm2, dword [0x100d5f84]
vmovss dword [ebp - 8], xmm1
cmp eax, dword [ebp - 0x3c]
jle 0x100435c2
mov edi, dword [ebp - 0x14]
vmovss dword [ebp - 8], xmm1
inc edi
add ecx, 0x24
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
cmp edi, dword [esi + 0x28]
jl 0x10043590
lea ecx, [esi + 0x50]
vxorps xmm7, xmm7, xmm7
jmp 0x10043738
mov ecx, edx
vmovss xmm0, dword [0x100d5f94]
vmovss xmm3, dword [0x100b3910]
vdivss xmm1, xmm0, xmm1
vmulss xmm0, xmm1, dword [edx]
vmovss dword [edx], xmm0
vmulss xmm0, xmm1, dword [edx + 4]
vmovss dword [edx + 4], xmm0
vmulss xmm0, xmm1, dword [edx + 8]
vmovss dword [edx + 8], xmm0
mov edx, dword [esi + 0x28]
vmovss dword [esi + 0x70], xmm3
test edx, edx
jle 0x100437ce
mov eax, dword [esi + 0x30]
vmovss xmm4, dword [0x100d6140]
vmovaps xmm2, xmm3
add eax, 0x18
nop word [eax + eax]
vmovss xmm0, dword [eax - 4]
vmulss xmm1, xmm0, dword [ecx]
vmovss xmm0, dword [eax]
vfmadd231ss xmm1, xmm0, dword [ecx + 4]
vmovss xmm0, dword [eax + 4]
vfmadd231ss xmm1, xmm0, dword [ecx + 8]
vaddss xmm0, xmm1, dword [eax + 8]
vandps xmm0, xmm0, xmm4
vcomiss xmm2, xmm0
jbe 0x100437c6
vmovss dword [esi + 0x70], xmm0
vmovaps xmm2, xmm0
add eax, 0x24
sub edx, 1
jne 0x10043790
vmovss xmm1, dword [0x100b34e0]
mov ecx, dword [esi + 0x14]
vmovaps xmm2, xmm3
vmovaps xmm4, xmm3
vmovaps xmm5, xmm1
vmovaps xmm6, xmm1
test ecx, ecx
jle 0x1004381f
mov eax, dword [esi + 0x1c]
lea eax, [eax + 0x10]
vmovss xmm0, dword [eax - 0x10]
vminss xmm3, xmm0, xmm3
vmaxss xmm1, xmm0, xmm1
vmovss xmm0, dword [eax - 0xc]
vminss xmm2, xmm0, xmm2
vmaxss xmm5, xmm0, xmm5
vmovss xmm0, dword [eax - 8]
vminss xmm4, xmm0, xmm4
vmaxss xmm6, xmm0, xmm6
sub ecx, 1
jne 0x100437f0
vaddss xmm0, xmm1, xmm3
vmovss dword [esi + 0x80], xmm0
vaddss xmm0, xmm5, xmm2
vmovss dword [esi + 0x84], xmm0
vsubss xmm3, xmm1, xmm3
vaddss xmm0, xmm6, xmm4
vsubss xmm2, xmm5, xmm2
vsubss xmm1, xmm6, xmm4
vmovss dword [esi + 0x88], xmm0
vmovss dword [esi + 0x8c], xmm7
vmovss dword [esi + 0x90], xmm3
vmovss dword [esi + 0x94], xmm2
vmovss dword [esi + 0x98], xmm1
vmovss dword [esi + 0x9c], xmm7
vmovss xmm0, dword [esi + 0x70]
vmulss xmm0, xmm0, dword [0x100b3c00]
xor eax, eax
vcomiss xmm2, xmm3
vmovss dword [ebp - 0xc], xmm0
jbe 0x1004389b
vcomiss xmm1, xmm2
seta al
inc eax
jmp 0x100438a7
vcomiss xmm1, xmm3
mov ecx, 2
cmova eax, ecx
vmovss xmm2, dword [0x100d5f84]
vmovaps xmm1, xmm0
vfmsub231ss xmm1, xmm2, dword [esi + eax*4 + 0x90]
vmovss dword [esi + 0x68], xmm0
vmovss dword [esi + 0x64], xmm0
vmovss dword [esi + 0x60], xmm0
vmulss xmm0, xmm2, dword [esi + eax*4 + 0x90]
mov dword [ebp - 0x14], eax
mov edi, eax
vmovss dword [ebp - 0x38], xmm1
vmovss dword [esi + eax*4 + 0x60], xmm0
mov dword [ebp - 0x10], 0
nop dword [eax]
mov ecx, esi
vmovss dword [ebp - 0x3c], xmm0
call fcn.10044230
test al, al
jne 0x10043941
mov eax, dword [ebp - 0x10]
vmovss xmm0, dword [ebp - 0x3c]
vmovss xmm1, dword [ebp - 0x38]
vfnmadd231ss xmm0, xmm1, dword [0x100b3bf8]
inc eax
mov dword [ebp - 0x10], eax
vmovss dword [esi + edi*4 + 0x60], xmm0
cmp eax, 0x400
jl 0x100438f0
vmovss xmm1, dword [ebp - 0xc]
pop edi
vmovss dword [esi + 0x68], xmm1
vmovss dword [esi + 0x64], xmm1
vmovss dword [esi + 0x60], xmm1
pop esi
mov esp, ebp
pop ebp
ret
vmovss xmm0, dword [esi + 0x70]
vsubss xmm0, xmm0, dword [ebp - 0xc]
vmulss xmm1, xmm0, dword [0x100b3bf8]
mov ecx, 1
mov dword [ebp - 0x14], 0
shlx eax, ecx, edi
and eax, 3
shlx edi, ecx, eax
vmovss dword [ebp - 0x3c], xmm1
mov dword [ebp - 0x10], eax
and edi, 3
nop word [eax + eax]
vmovss xmm0, dword [esi + eax*4 + 0x60]
vmovss xmm2, dword [esi + edi*4 + 0x60]
vmovss dword [ebp - 0x38], xmm0
vaddss xmm0, xmm0, xmm1
vmovss dword [esi + eax*4 + 0x60], xmm0
vaddss xmm0, xmm1, dword [esi + edi*4 + 0x60]
mov ecx, esi
vmovss dword [ebp - 0x34], xmm2
vmovss dword [esi + edi*4 + 0x60], xmm0
call fcn.10044230
test al, al
je 0x100439d3
mov eax, dword [ebp - 0x14]
vmovss xmm1, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x400
mov eax, dword [ebp - 0x10]
jl 0x10043980
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
vmovss xmm0, dword [ebp - 0x38]
vmovss dword [esi + eax*4 + 0x60], xmm0
vmovss xmm0, dword [ebp - 0x34]
vmovss dword [esi + edi*4 + 0x60], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret