Function at 0x1000d780
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 [0x1006d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10127bc8]
mov dword [ebp - 0x16c], ecx
push esi
push edi
test eax, eax
je 0x1000daf2
cmp dword [eax + 0x10], 0
je 0x1000daf2
cmp dword [0x10127bb4], 0
je 0x1000daf2
cmp byte [0x100b26dd], 0
je 0x1000daf2
mov eax, dword [ecx]
lea edx, [ebp - 0x164]
push edx
push ecx
call dword [eax + 0xc0]
mov eax, dword [0x10127bc4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000d98e
mov edx, dword [0x10127bc8]
cmp dword [edx + 0x40], 0
je 0x1000d98e
push dword [edx + 0x5d4]
mov eax, dword [0x10127bb4]
call eax
mov esi, eax
test esi, esi
je 0x1000daf2
movaps xmm0, xmmword [0x100688f0]
xor ecx, ecx
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x124], 0xcabdf9ff
mov dword [ebp - 0x120], 0xc7c6d2fe
mov dword [ebp - 0x11c], 0xf884d7
mov byte [ebp - 0x118], 1
nop word [eax + eax]
mov al, cl
sub al, 0x75
xor byte [ebp + ecx - 0x134], al
inc ecx
cmp ecx, 0x1b
jb 0x1000d860
lea eax, [ebp - 0x134]
mov byte [ebp - 0x118], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
mov eax, dword [ebp - 0x158]
shr eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100683c0]
mov eax, dword [ebp - 0x15c]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
addss xmm1, dword [0x10067e8c]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x168], xmm1
addsd xmm0, qword [eax*8 + 0x100683c0]
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 [0x10127bf4]
push 1
call fcn.1000a4c0
add esp, 0x24
mov dword [ebp - 0x114], 0xf9aca8dc
mov dword [ebp - 0x110], 0x100d1ab
xor ecx, ecx
nop dword [eax]
mov al, cl
sub al, 0x79
xor byte [ebp + ecx - 0x114], al
inc ecx
cmp ecx, 6
jb 0x1000d920
lea eax, [esi + 0x28]
mov byte [ebp - 0x10d], 0
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
movss xmm0, dword [ebp - 0x168]
lea eax, [ebp - 0x108]
addss xmm0, dword [0x10067e8c]
add esp, 0xc
push eax
cvttss2si eax, xmm0
push 0x101
push 0xff800080
push eax
push edi
push dword [0x10127bf4]
push 1
call fcn.1000a4c0
add esp, 0x1c
jmp 0x1000daf2
movaps xmm0, xmmword [0x100688f0]
xor ecx, ecx
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x124], 0xcabdf9ff
mov dword [ebp - 0x120], 0xc7c6d2fe
mov dword [ebp - 0x11c], 0xf884d7
mov byte [ebp - 0x118], 1
mov al, cl
sub al, 0x75
xor byte [ebp + ecx - 0x134], al
inc ecx
cmp ecx, 0x1b
jb 0x1000d9c3
lea eax, [ebp - 0x134]
mov byte [ebp - 0x118], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
mov eax, dword [ebp - 0x158]
shr eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100683c0]
mov eax, dword [ebp - 0x15c]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
addss xmm1, dword [0x10067e8c]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x168], xmm1
addsd xmm0, qword [eax*8 + 0x100683c0]
lea eax, [ebp - 0x108]
push eax
cvttss2si eax, xmm1
push 0x101
push 0xff800080
cvtpd2ps xmm0, xmm0
push eax
cvttss2si esi, xmm0
push esi
push dword [0x10127bf4]
push 1
call fcn.1000a4c0
add esp, 0x24
mov dword [ebp - 0x114], 0xdac7a8dc
mov dword [ebp - 0x110], 0xd0acc8
xor ecx, ecx
mov byte [ebp - 0x10c], 1
nop word [eax + eax]
mov al, cl
sub al, 0x79
xor byte [ebp + ecx - 0x114], al
inc ecx
cmp ecx, 7
jb 0x1000da90
lea eax, [ebp - 0x114]
mov byte [ebp - 0x10c], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10004630
movss xmm0, dword [ebp - 0x168]
lea eax, [ebp - 0x108]
addss xmm0, dword [0x10067e8c]
push eax
push 0x101
push 0xff800080
cvttss2si eax, xmm0
push eax
push esi
push dword [0x10127bf4]
push 1
call fcn.1000a4c0
add esp, 0x24
call fcn.1000d070
mov ecx, dword [0x10127ba4]
movzx eax, byte [0x100b26d1]
mov dword [ebp - 0x110], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
mov esi, eax
push 4
push esi
mov dword [0x100b26c8], esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000dd0a
test esi, esi
je 0x1000dd0a
mov eax, dword [0x100b26c8]
xor edi, edi
cmp dword [eax + 0x17c], edi
jbe 0x1000dd0a
nop dword [eax + eax]
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 0x1000dcf8
test esi, esi
je 0x1000dcf8
mov eax, dword [esi + 0x10]
push 4
push eax
mov dword [ebp - 0x168], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000dcf8
cmp dword [ebp - 0x168], eax
je 0x1000dcf8
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x178]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x178], xmm0
mov dword [ebp - 0x170], eax
call fcn.1000afe0
test al, al
je 0x1000dcf8
cmp dword [ebp - 0x110], 0
je 0x1000dcf8
cvttss2si eax, dword [ebp - 0x154]
sub eax, 0xf
mov dword [ebp - 0x168], eax
mov eax, dword [esi + 0x10]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x144], eax
mov eax, dword [0x10127c0c]
movq qword [ebp - 0x14c], xmm0
mov eax, dword [eax + 0x13c]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x140], xmm0
movss xmm2, dword [ebp - 0x13c]
movss xmm0, dword [ebp - 0x140]
subss xmm0, dword [ebp - 0x14c]
subss xmm2, dword [ebp - 0x148]
mov dword [ebp - 0x138], eax
movss xmm1, dword [ebp - 0x138]
subss xmm1, dword [ebp - 0x144]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10002840
divss xmm0, dword [0x10067ee4]
mov ecx, 0x41
xor edx, edx
cvtss2sd xmm0, xmm0
nop
mov al, byte [edx + 0x10061a68]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x134], al
and ecx, 0x800000ff
jns 0x1000dca0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x1a
jl 0x1000dc80
sub esp, 8
mov byte [ebp - 0x11a], 0
lea eax, [ebp - 0x134]
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 - 0x158]
push 0x101
push 0xff800080
push dword [ebp - 0x168]
push eax
push dword [0x10127bf4]
push 1
call fcn.1000a4c0
add esp, 0x2c
mov eax, dword [0x100b26c8]
inc edi
cmp edi, dword [eax + 0x17c]
jb 0x1000db50
call fcn.1000d530
call fcn.1000d2e0
mov esi, dword [ebp - 0x16c]
push esi
sub esp, 0x1c
call fcn.1000bfd0
add esp, 0x20
push esi
sub esp, 0x10
call fcn.1000cab0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.1005d7a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret