Function at 0x100da880
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x100f500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, dword [0x1016e340]
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x84], xmm0
test ecx, ecx
je 0x100dacb3
cmp byte [0x1017a0bc], 0
je 0x100dacb3
cmp byte [0x1016e36a], 0
jne 0x100da95a
mov eax, dword [0x10186134]
cmp eax, dword [0x10186138]
je 0x100dacb3
mov dword [0x10186138], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dbfd5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [0x10186138]
sub edx, dword [0x10186134]
sar edx, 5
mov dword [ebp - 0xc0], edx
test edx, edx
je 0x100dacb3
mov eax, dword [0x10186f9c]
mov esi, edx
add eax, 0xffffffc2
xor eax, 0x6e623409
shl esi, 5
movd xmm2, dword [eax + ecx]
mov ecx, edx
mov eax, dword [0x10186dbc]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [ebp - 0xbc], xmm2
sub esi, 0x20
mov dword [ebp - 0xa0], ecx
dec ecx
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0x9c], ecx
add esi, dword [0x10186134]
je 0x100dac9f
mov edi, dword [esi + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x10186dbc]
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.1002cac0
comiss xmm0, dword [0x1017a268]
jbe 0x100daa65
mov eax, dword [0x10186138]
lea edi, [esi + 0x20]
mov dword [ebp - 0xa0], eax
cmp edi, eax
je 0x100daa59
lea ecx, [esi + 0x14]
lea edx, [esi + 0x34]
mov eax, dword [edi]
lea esi, [esi + 0x20]
mov dword [esi - 0x20], eax
lea ecx, [ecx + 0x20]
mov eax, dword [edx - 0x10]
lea edx, [edx + 0x20]
mov dword [ecx - 0x30], eax
add edi, 0x20
mov eax, dword [edx - 0x2c]
mov dword [ecx - 0x2c], eax
mov eax, dword [edx - 0x28]
mov dword [ecx - 0x28], eax
mov eax, dword [edx - 0x24]
mov dword [ecx - 0x24], eax
mov eax, dword [edx - 0x20]
mov dword [ecx - 0x20], eax
mov eax, dword [edx - 0x1c]
mov dword [ecx - 0x1c], eax
movzx eax, byte [edx - 0x18]
mov byte [ecx - 0x18], al
movzx eax, byte [edx - 0x17]
mov byte [ecx - 0x17], al
cmp edi, dword [ebp - 0xa0]
jne 0x100daa08
mov ecx, dword [ebp - 0x9c]
sub dword [0x10186138], 0x20
jmp 0x100dac9f
cmp byte [esi + 0x1c], 0
jne 0x100dac9f
lea eax, [edx - 1]
cmp ecx, eax
je 0x100daa8b
cmp dword [ebp - 0xa0], edx
jae 0x100dac9f
cmp edi, dword [esi + 0x38]
je 0x100dac9f
movss xmm3, dword [esi]
movss xmm4, dword [esi + 4]
movss xmm6, dword [esi + 0xc]
movss xmm7, dword [esi + 0x10]
subss xmm3, xmm6
movss xmm5, dword [esi + 8]
subss xmm4, xmm7
subss xmm5, dword [esi + 0x14]
movaps xmm1, xmm3
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.10021d80
movaps xmm2, xmm0
movaps xmm1, xmm3
addss xmm2, dword [0x100e9bc0]
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.10021d80
divss xmm3, xmm2
mov dword [ebp - 0xa8], 0x4f564d15
mov eax, 0x10
mov byte [ebp - 0xa4], 0x3b
divss xmm4, xmm2
divss xmm5, xmm2
movss xmm1, dword [esi + 0x14]
mulss xmm3, xmm0
mulss xmm4, xmm0
mulss xmm5, xmm0
addss xmm3, xmm6
movaps xmm0, xmmword [0x100ea3e0]
addss xmm4, xmm7
movaps xmmword [ebp - 0xe0], xmm0
pxor xmm0, xmmword [0x100ea810]
addss xmm5, xmm1
movss dword [ebp - 0x84], xmm6
movss dword [ebp - 0x80], xmm7
movss dword [ebp - 0x7c], xmm1
movss dword [ebp - 0x78], xmm3
movss dword [ebp - 0x74], xmm4
movss dword [ebp - 0x70], xmm5
movups xmmword [ebp - 0xb8], xmm0
nop dword [eax]
xor byte [ebp + eax - 0xb8], 0x3b
inc eax
cmp eax, 0x15
jb 0x100dab80
mov ecx, dword [0x10186d98]
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [ebp - 0xe0]
pxor xmm0, xmmword [0x100ea810]
mov dword [ebp - 0x6c], eax
mov eax, 0x10
mov dword [ebp - 0xa8], 0x4f564d15
mov byte [ebp - 0xa4], 0x3b
movups xmmword [ebp - 0xb8], xmm0
xor byte [ebp + eax - 0xb8], 0x3b
inc eax
cmp eax, 0x15
jb 0x100dabd1
movss xmm0, dword [0x1017a268]
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x68], eax
mov eax, dword [0x1017a160]
movss dword [ebp - 0x58], xmm0
movaps xmm0, xmmword [0x100ea520]
movzx ecx, al
movups xmmword [ebp - 0x54], xmm0
shr eax, 8
movzx eax, al
movd xmm0, ecx
lea ecx, [ebp - 0x98]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x44], 0x437f0000
mov dword [ebp - 0x40], 0x3f99999a
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
movss dword [ebp - 0x34], xmm0
movd xmm0, eax
movzx eax, byte [0x1017a162]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x24], 2
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x20], 0
movss dword [ebp - 0x30], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x2c], xmm0
call fcn.100af450
mov edx, eax
test edx, edx
je 0x100dac91
mov ecx, dword [0x10186dec]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [esi + 0x1c], 1
mov ecx, dword [ebp - 0x9c]
movss xmm2, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xc0]
mov esi, dword [ebp - 0xc4]
test ecx, ecx
jne 0x100da9a5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100dbfd5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret