Function at 0x100bda60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
and edi, 1
mov esi, dword [ebx + 0x8c]
add edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
and eax, 1
or edi, eax
lea edx, [esi + 0x2c]
mov eax, dword [ebx + 0x84]
lea ecx, [esi + 0x21]
push esi
push 0x1009b6e0
shl edi, 8
mov dword [esp + 0x20], eax
call fcn.1009c4d0
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esi + 0xc]
mov esi, 0x100bd340
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x100bdaca
mov esi, 0x100bd2d0
jmp 0x100bdad5
cmp eax, 2
mov edx, 0x100bd5b0
cmove esi, edx
cmp byte [ebx + 0x88], 2
movd xmm2, dword [ebp + 8]
movd xmm1, dword [ebp + 0xc]
cvtdq2ps xmm2, xmm2
mov dword [esp + 0x14], esi
cvtdq2ps xmm1, xmm1
addss xmm2, dword [0x10226268]
addss xmm1, dword [0x10226268]
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x24], xmm1
je 0x100bdcae
lea eax, [esp + 0x24]
push eax
sub esp, 8
lea esi, [ebx + 0x5c]
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push esi
call dword [esp + 0x28]
add esp, 0x10
cmp byte [ebx + 0x88], 1
jne 0x100bdc08
movss xmm0, dword [esi + 0x18]
call fcn.1005f380
movss xmm1, dword [0x10226164]
comiss xmm1, xmm0
jb 0x100bdbe0
movss xmm3, dword [esi + 0x1c]
movaps xmm0, xmm3
call fcn.1005f380
comiss xmm1, xmm0
jb 0x100bdba4
movss xmm0, dword [esi + 0x20]
subss xmm0, dword [0x10226298]
call fcn.1005f380
comiss xmm1, xmm0
jb 0x100bdba4
movss xmm0, dword [esi]
mulss xmm0, dword [0x10226540]
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0xc]
mulss xmm0, dword [0x10226540]
cvttss2si ecx, xmm0
jmp 0x100bdbe8
movd xmm2, dword [ebp + 0xc]
movss xmm0, dword [esi]
cvtdq2ps xmm2, xmm2
mulss xmm2, xmm3
addss xmm2, dword [esi + 0x20]
divss xmm0, xmm2
mulss xmm0, dword [0x10226540]
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0xc]
divss xmm0, xmm2
mulss xmm0, dword [0x10226540]
cvttss2si ecx, xmm0
jmp 0x100bdbe8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
movd xmm4, eax
movd xmm5, ecx
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
mulss xmm4, dword [0x10226184]
mulss xmm5, dword [0x10226184]
jmp 0x100bdc11
movss xmm4, dword [esi]
movss xmm5, dword [ebx + 0x68]
mov eax, dword [esp + 0x10]
movss xmm0, dword [esp + 0x24]
add eax, 0xc4
movss xmm3, dword [esp + 0x28]
push dword [ebp + 0x14]
mov dword [esp + 0x40], eax
subss xmm3, dword [eax + 4]
subss xmm0, dword [eax]
movss xmm2, dword [eax + 8]
movss xmm1, dword [eax + 0xc]
push edi
push dword [esp + 0x24]
movss dword [esp + 0x50], xmm3
push dword [ebp + 0x10]
mulss xmm3, xmm1
movss dword [esp + 0x50], xmm0
mulss xmm0, xmm2
mulss xmm1, xmm5
addss xmm3, xmm0
mulss xmm2, xmm4
movss dword [esp + 0x58], xmm4
movss dword [esp + 0x5c], xmm5
addss xmm1, xmm2
addss xmm3, dword [eax + 0x20]
lea eax, [esp + 0x4c]
push eax
mulss xmm1, dword [0x102265c0]
mulss xmm3, dword [0x102265c0]
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x64], xmm3
call dword [esp + 0x28]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x100bddb6
lea eax, [ebx + 0x5c]
mov dword [esp + 0x10], eax
lea ebx, [ecx + 0xc4]
nop word [eax + eax]
lea ecx, [esp + 0x34]
push ecx
sub esp, 8
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push eax
call dword [esp + 0x28]
movss xmm0, dword [esp + 0x48]
lea eax, [esp + 0x4c]
subss xmm0, dword [ebx + 4]
movss xmm4, dword [esp + 0x44]
movss xmm3, dword [ebx + 0xc]
subss xmm4, dword [ebx]
movss xmm2, dword [ebx + 8]
movaps xmm1, xmm3
mulss xmm1, xmm0
push 1
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm4
push edi
push dword [esp + 0x34]
mov dword [esp + 0x58], ebx
addss xmm1, xmm0
movss dword [esp + 0x5c], xmm4
push dword [ebp + 0x10]
mov dword [esp + 0x68], 0
push eax
mov dword [esp + 0x70], 0
addss xmm1, dword [ebx + 0x20]
mulss xmm1, dword [0x102265c0]
movss dword [esp + 0x74], xmm1
xorps xmm1, xmm1
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, xmm3
mulss xmm2, dword [0x102265c0]
movss dword [esp + 0x78], xmm2
call esi
movss xmm2, dword [esp + 0x44]
add esp, 0x24
addss xmm2, dword [0x10226298]
mov eax, dword [esp + 0x14]
xor edi, 0x100
add dword [ebp + 0x10], 4
dec eax
movss xmm1, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
movss dword [esp + 0x20], xmm2
jg 0x100bdcd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10