Function at 0x100d7b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [0x100f5024], 0
push ebx
push esi
push edi
je 0x100d80e7
cmp byte [0x100fc74c], 0
je 0x100d80e7
cmp byte [0x100fc7d4], 0
je 0x100d80e7
cmp byte [0x100f5028], 0
jne 0x100d7bb6
mov eax, dword [0x10124040]
cmp eax, dword [0x10124044]
je 0x100d80e7
mov dword [0x10124044], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10124044]
mov eax, 0x38e38e39
sub ecx, dword [0x10124040]
imul ecx
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 8], esi
je 0x100d80e7
lea ebx, [esi + esi*8]
mov eax, esi
shl ebx, 2
mov edi, dword [0x10124040]
sub ebx, 0x24
mov dword [ebp - 0x18], eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
add edi, ebx
je 0x100d80dc
mov ecx, dword [0x1012334c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
movzx ecx, byte [edi + 0x21]
cmp ecx, eax
setne dl
je 0x100d7c22
mov eax, dword [0x101233ac]
movss xmm0, dword [eax]
jmp 0x100d7c48
mov ecx, dword [0x101235e4]
mov eax, dword [0x100f5024]
add ecx, 0xffffffc2
xor ecx, 0x920a48f0
movd xmm0, dword [ecx + eax]
mov eax, dword [0x101233ac]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
mov ecx, dword [edi + 0x1c]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.1001d9e0
comiss xmm0, dword [0x100fca98]
jbe 0x100d7ce5
mov edi, dword [0x10124040]
add edi, ebx
mov ebx, dword [0x10124044]
lea esi, [edi + 0x24]
cmp esi, ebx
je 0x100d7cd7
lea ecx, [edi + 0xc]
lea edx, [edi + 0x30]
mov eax, dword [esi]
lea edi, [edi + 0x24]
mov dword [edi - 0x24], eax
lea ecx, [ecx + 0x24]
mov eax, dword [edx - 8]
lea edx, [edx + 0x24]
mov dword [ecx - 0x2c], eax
add esi, 0x24
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
mov eax, dword [edx - 0x18]
mov dword [ecx - 0x18], eax
mov eax, dword [edx - 0x14]
mov dword [ecx - 0x14], eax
movzx eax, byte [edx - 0x10]
mov byte [ecx - 0x10], al
movzx eax, byte [edx - 0xf]
mov byte [ecx - 0xf], al
cmp esi, ebx
jne 0x100d7c84
mov ebx, dword [0x10124044]
sub ebx, 0x24
mov dword [0x10124044], ebx
jmp 0x100d80d6
cmp byte [edi + 0x20], 0
jne 0x100d80dc
test dl, dl
jne 0x100d7d13
lea eax, [esi - 1]
cmp dword [ebp - 0x1c], eax
je 0x100d7d13
cmp dword [ebp - 0x18], esi
jae 0x100d80dc
mov eax, dword [0x10124040]
cmp ecx, dword [eax + ebx + 0x40]
je 0x100d80dc
movss xmm6, dword [edi + 0x10]
movss xmm7, dword [edi + 0x14]
movss xmm3, dword [edi + 4]
movss xmm4, dword [edi + 8]
subss xmm3, xmm6
movss xmm0, dword [edi + 0x18]
subss xmm4, xmm7
movss xmm5, dword [edi + 0xc]
subss xmm5, xmm0
movss dword [ebp - 0x10], xmm0
movss dword [ebp - 0x28], xmm6
movaps xmm1, xmm3
movss dword [ebp - 0x2c], xmm7
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.1001da00
movaps xmm2, xmm0
movaps xmm1, xmm3
addss xmm2, dword [0x100e9ab8]
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.1001da00
divss xmm3, xmm2
mov dword [ebp - 0x44], 0x9ddec9df
mov eax, 0x10
mov dword [ebp - 0x40], 0xd8c1da82
mov byte [ebp - 0x3c], 0xac
divss xmm4, xmm2
divss xmm5, xmm2
mulss xmm3, xmm0
mulss xmm4, xmm0
mulss xmm5, xmm0
addss xmm3, xmm6
movaps xmm0, xmmword [0x100ea8e0]
addss xmm4, xmm7
pxor xmm0, xmmword [0x100ea3d0]
addss xmm5, dword [ebp - 0x10]
movss dword [ebp - 0x30], xmm3
movups xmmword [ebp - 0x54], xmm0
movss dword [ebp - 0x34], xmm4
movss dword [ebp - 0x38], xmm5
nop dword [eax]
xor byte [ebp + eax - 0x54], 0xac
inc eax
cmp eax, 0x19
jb 0x100d7e00
mov ecx, dword [0x10123384]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x100ea8e0]
pxor xmm0, xmmword [0x100ea3d0]
mov dword [ebp - 0x20], eax
mov eax, 0x10
mov dword [ebp - 0x44], 0x9ddec9df
mov dword [ebp - 0x40], 0xd8c1da82
mov byte [ebp - 0x3c], 0xac
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
xor byte [ebp + eax - 0x54], 0xac
inc eax
cmp eax, 0x19
jb 0x100d7e50
cmp byte [edi + 0x21], 0
movss xmm0, dword [0x100fca98]
movss dword [ebp - 0x24], xmm0
jne 0x100d7e7f
movzx eax, word [0x100fc992]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100fc990]
jmp 0x100d7e8e
movzx eax, word [0x100fca22]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100fca20]
mov ecx, dword [0x1012334c]
mov ebx, eax
movzx esi, al
shr ebx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movzx ecx, bl
movss dword [ebp - 0x18], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x14], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0xc], xmm0
cmp dword [edi], eax
je 0x100d7f0d
mov eax, dword [0x100fc878]
movzx ecx, al
shr eax, 8
movzx eax, al
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0xc], xmm0
movd xmm0, eax
movzx eax, byte [0x100fc87a]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x14], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x18], xmm0
mov ecx, dword [0x101233dc]
push 1
call dword [0x101234ec]
mov esi, eax
test esi, esi
je 0x100d80d6
mov ecx, dword [0x101233ac]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x10]
mov dword [esi + 0xc8], ecx
test ebx, ebx
js 0x100d80d6
mov ecx, dword [0x10123384]
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100d8089
mov dword [esi + 0x30], 0
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], 0xffffffff
mov dword [esi + 0x158], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xf4], 0
mov ecx, dword [0x10123384]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
movss xmm1, dword [ebp - 0x24]
mov dword [esi + 0x15c], eax
mov eax, dword [0x101233ac]
movss xmm2, dword [ebp - 0x38]
movss xmm3, dword [ebp - 0x28]
movss xmm4, dword [ebp - 0x2c]
movss xmm0, dword [eax + 0x10]
mulss xmm0, dword [0x100e9b6c]
movss xmm5, dword [ebp - 0x10]
movss dword [esi + 0xc4], xmm0
movaps xmm0, xmm1
mov eax, dword [0x101233ac]
addss xmm0, dword [eax + 0x10]
mov dword [esi + 0xd8], 0
mov dword [esi + 0x34], 0
movss dword [esi + 0xdc], xmm1
movss xmm1, dword [ebp - 0x34]
movss dword [esi + 0xc8], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [esi + 0x48], xmm0
subss xmm0, xmm3
movss dword [esi + 0x4c], xmm1
subss xmm1, xmm4
movss dword [esi + 0x50], xmm2
subss xmm2, xmm5
movss dword [esi + 0x3c], xmm3
movss dword [esi + 0x40], xmm4
movss dword [esi + 0x44], xmm5
movss dword [esi + 0xb4], xmm0
movss dword [esi + 0xb8], xmm1
movss dword [esi + 0xbc], xmm2
mov dword [esi + 0xcc], 0x40000000
mov dword [esi + 0xd0], 0x40000000
mov dword [esi + 0xd4], 0
mov dword [esi + 0xec], 0x437f0000
mov dword [esi + 0xf0], 0x3f000000
mov dword [esi + 0xfc], 2
movss xmm0, dword [ebp - 0xc]
movss dword [esi + 0xe0], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [esi + 0xe4], xmm0
movss xmm0, dword [ebp - 0x18]
mov dword [esi + 0xf8], 0
mov dword [esi + 0xf4], 0
movss dword [esi + 0xe8], xmm0
mov ecx, dword [0x101233dc]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [edi + 0x20], 1
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x100d7be4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret