Function at 0x100d8840
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 0x100d8dc7
cmp byte [0x100fce0c], 0
je 0x100d8dc7
cmp byte [0x100fce94], 0
je 0x100d8dc7
cmp byte [0x100f5028], 0
jne 0x100d8896
mov eax, dword [0x101255c0]
cmp eax, dword [0x101255c4]
je 0x100d8dc7
mov dword [0x101255c4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x101255c4]
mov eax, 0x38e38e39
sub ecx, dword [0x101255c0]
imul ecx
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 8], esi
je 0x100d8dc7
lea ebx, [esi + esi*8]
mov eax, esi
shl ebx, 2
mov edi, dword [0x101255c0]
sub ebx, 0x24
mov dword [ebp - 0x18], eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
add edi, ebx
je 0x100d8dbc
mov ecx, dword [0x101248ec]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
movzx ecx, byte [edi + 0x21]
cmp ecx, eax
setne dl
je 0x100d8902
mov eax, dword [0x1012494c]
movss xmm0, dword [eax]
jmp 0x100d8928
mov ecx, dword [0x10124b6c]
mov eax, dword [0x100f5024]
add ecx, 0xffffffc2
xor ecx, 0x1d780e0d
movd xmm0, dword [ecx + eax]
mov eax, dword [0x1012494c]
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.1002c400
comiss xmm0, dword [0x100fd158]
jbe 0x100d89c5
mov edi, dword [0x101255c0]
add edi, ebx
mov ebx, dword [0x101255c4]
lea esi, [edi + 0x24]
cmp esi, ebx
je 0x100d89b7
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 0x100d8964
mov ebx, dword [0x101255c4]
sub ebx, 0x24
mov dword [0x101255c4], ebx
jmp 0x100d8db6
cmp byte [edi + 0x20], 0
jne 0x100d8dbc
test dl, dl
jne 0x100d89f3
lea eax, [esi - 1]
cmp dword [ebp - 0x1c], eax
je 0x100d89f3
cmp dword [ebp - 0x18], esi
jae 0x100d8dbc
mov eax, dword [0x101255c0]
cmp ecx, dword [eax + ebx + 0x40]
je 0x100d8dbc
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.1001e310
movaps xmm2, xmm0
movaps xmm1, xmm3
addss xmm2, dword [0x100e9aec]
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, xmm5
addss xmm0, xmm1
call fcn.1001e310
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 [0x100ea990]
addss xmm4, xmm7
pxor xmm0, xmmword [0x100ea470]
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 0x100d8ae0
mov ecx, dword [0x10124924]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x100ea990]
pxor xmm0, xmmword [0x100ea470]
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 0x100d8b30
cmp byte [edi + 0x21], 0
movss xmm0, dword [0x100fd158]
movss dword [ebp - 0x24], xmm0
jne 0x100d8b5f
movzx eax, word [0x100fd052]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100fd050]
jmp 0x100d8b6e
movzx eax, word [0x100fd0e2]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100fd0e0]
mov ecx, dword [0x101248ec]
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 0x100d8bed
mov eax, dword [0x100fcf38]
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 [0x100fcf3a]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x14], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x18], xmm0
mov ecx, dword [0x1012497c]
push 1
call dword [0x10124a8c]
mov esi, eax
test esi, esi
je 0x100d8db6
mov ecx, dword [0x1012494c]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x10]
mov dword [esi + 0xc8], ecx
test ebx, ebx
js 0x100d8db6
mov ecx, dword [0x10124924]
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100d8d69
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 [0x10124924]
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 [0x1012494c]
movss xmm2, dword [ebp - 0x38]
movss xmm3, dword [ebp - 0x28]
movss xmm4, dword [ebp - 0x2c]
movss xmm0, dword [eax + 0x10]
mulss xmm0, dword [0x100e9b9c]
movss xmm5, dword [ebp - 0x10]
movss dword [esi + 0xc4], xmm0
movaps xmm0, xmm1
mov eax, dword [0x1012494c]
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 [0x1012497c]
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 0x100d88c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret