Function at 0x1000d500
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x1006c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10126b84]
mov dword [ebp - 0x168], ecx
push esi
push edi
test eax, eax
je 0x1000d709
cmp dword [eax + 0x10], 0
je 0x1000d709
cmp dword [0x10126b78], 0
je 0x1000d709
cmp byte [0x100b15ae], 0
je 0x1000d709
mov eax, dword [ecx]
lea edx, [ebp - 0x160]
push edx
push ecx
call dword [eax + 0xc0]
mov ecx, dword [0x383bf170]
test ecx, ecx
je 0x1000d709
mov edx, dword [0x10126b84]
cmp dword [edx + 0x40], 0
je 0x1000d709
push dword [edx + 0x5d4]
mov eax, dword [0x10126b78]
call eax
mov esi, eax
test esi, esi
je 0x1000d709
movaps xmm0, xmmword [0x10067bd0]
xor ecx, ecx
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x120], 0xf782c4c4
mov dword [ebp - 0x11c], 0xc2c1d7c5
mov dword [ebp - 0x118], 0xf789dc
mov byte [ebp - 0x114], 1
nop dword [eax]
mov al, cl
sub al, 0x70
xor byte [ebp + ecx - 0x130], al
inc ecx
cmp ecx, 0x1b
jb 0x1000d5e0
lea eax, [ebp - 0x130]
mov byte [ebp - 0x114], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
mov eax, dword [ebp - 0x154]
shr eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10067930]
mov eax, dword [ebp - 0x158]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
addss xmm1, dword [0x10067474]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x164], xmm1
addsd xmm0, qword [eax*8 + 0x10067930]
lea eax, [ebp - 0x108]
push eax
cvttss2si eax, xmm1
push 0x101
push 0xff800080
cvtpd2ps xmm0, xmm0
push eax
cvttss2si edi, xmm0
push edi
push dword [0x10126ba4]
push 1
call fcn.1000a2f0
add esp, 0x24
mov dword [ebp - 0x110], 0xfcabadd7
mov dword [ebp - 0x10c], 0x100ccb0
xor ecx, ecx
nop dword [eax]
mov al, cl
sub al, 0x74
xor byte [ebp + ecx - 0x110], al
inc ecx
cmp ecx, 6
jb 0x1000d6a0
lea eax, [esi + 0x28]
mov byte [ebp - 0x109], 0
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
movss xmm0, dword [ebp - 0x164]
lea eax, [ebp - 0x108]
addss xmm0, dword [0x10067474]
add esp, 0xc
push eax
cvttss2si eax, xmm0
push 0x101
push 0xff800080
push eax
push edi
push dword [0x10126ba4]
push 1
call fcn.1000a2f0
add esp, 0x1c
call fcn.1000d290
mov ecx, dword [0x10126b68]
movzx eax, byte [0x100b15a2]
mov dword [ebp - 0x10c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
mov esi, eax
push 4
push esi
mov dword [0x100b1598], esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000d91a
test esi, esi
je 0x1000d91a
mov eax, dword [0x100b1598]
xor edi, edi
cmp dword [eax + 0x17c], edi
jbe 0x1000d91a
nop
mov eax, dword [eax + 0x174]
push 4
mov esi, dword [eax + edi*4]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000d908
test esi, esi
je 0x1000d908
mov eax, dword [esi + 0x10]
push 4
push eax
mov dword [ebp - 0x164], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000d908
cmp dword [ebp - 0x164], eax
je 0x1000d908
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0x174]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x174], xmm0
mov dword [ebp - 0x16c], eax
call fcn.1000b230
test al, al
je 0x1000d908
cmp dword [ebp - 0x10c], 0
je 0x1000d908
cvttss2si eax, dword [ebp - 0x150]
sub eax, 0xf
mov dword [ebp - 0x164], eax
mov eax, dword [esi + 0x10]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x140], eax
mov eax, dword [0x10126bac]
movq qword [ebp - 0x148], xmm0
mov eax, dword [eax + 0x13c]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x13c], xmm0
movss xmm2, dword [ebp - 0x138]
movss xmm0, dword [ebp - 0x13c]
subss xmm0, dword [ebp - 0x148]
subss xmm2, dword [ebp - 0x144]
mov dword [ebp - 0x134], eax
movss xmm1, dword [ebp - 0x134]
subss xmm1, dword [ebp - 0x140]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10002840
divss xmm0, dword [0x100674cc]
mov ecx, 0x41
xor edx, edx
cvtss2sd xmm0, xmm0
nop
mov al, byte [edx + 0x1005fa9c]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x130], al
and ecx, 0x800000ff
jns 0x1000d8b0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x1a
jl 0x1000d890
sub esp, 8
mov byte [ebp - 0x116], 0
lea eax, [ebp - 0x130]
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
lea eax, [ebp - 0x108]
push eax
cvttss2si eax, dword [ebp - 0x154]
push 0x101
push 0xff800080
push dword [ebp - 0x164]
push eax
push dword [0x10126ba4]
push 1
call fcn.1000a2f0
add esp, 0x2c
mov eax, dword [0x100b1598]
inc edi
cmp edi, dword [eax + 0x17c]
jb 0x1000d760
mov esi, dword [ebp - 0x168]
push esi
sub esp, 0x1c
call fcn.1000c1e0
add esp, 0x20
push esi
sub esp, 0x10
call fcn.1000ccd0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.1005b824
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret