Function at 0x100d8710
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 0x100d8c97
cmp byte [0x100fce0c], 0
je 0x100d8c97
cmp byte [0x100fce94], 0
je 0x100d8c97
cmp byte [0x100f5028], 0
jne 0x100d8766
mov eax, dword [0x101255c0]
cmp eax, dword [0x101255c4]
je 0x100d8c97
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 0x100d8c97
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 0x100d8c8c
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 0x100d87d2
mov eax, dword [0x1012494c]
movss xmm0, dword [eax]
jmp 0x100d87f8
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 0x100d8895
mov edi, dword [0x101255c0]
add edi, ebx
mov ebx, dword [0x101255c4]
lea esi, [edi + 0x24]
cmp esi, ebx
je 0x100d8887
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 0x100d8834
mov ebx, dword [0x101255c4]
sub ebx, 0x24
mov dword [0x101255c4], ebx
jmp 0x100d8c86
cmp byte [edi + 0x20], 0
jne 0x100d8c8c
test dl, dl
jne 0x100d88c3
lea eax, [esi - 1]
cmp dword [ebp - 0x1c], eax
je 0x100d88c3
cmp dword [ebp - 0x18], esi
jae 0x100d8c8c
mov eax, dword [0x101255c0]
cmp ecx, dword [eax + ebx + 0x40]
je 0x100d8c8c
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 [0x100e9ab4]
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 [0x100ea960]
addss xmm4, xmm7
pxor xmm0, xmmword [0x100ea440]
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 0x100d89b0
mov ecx, dword [0x10124924]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x100ea960]
pxor xmm0, xmmword [0x100ea440]
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 0x100d8a00
cmp byte [edi + 0x21], 0
movss xmm0, dword [0x100fd158]
movss dword [ebp - 0x24], xmm0
jne 0x100d8a2f
movzx eax, word [0x100fd052]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100fd050]
jmp 0x100d8a3e
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 0x100d8abd
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 0x100d8c86
mov ecx, dword [0x1012494c]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x10]
mov dword [esi + 0xc8], ecx
test ebx, ebx
js 0x100d8c86
mov ecx, dword [0x10124924]
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100d8c39
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 [0x100e9b64]
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 0x100d8794
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret