Function at 0x1000ec30
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
push 0xffffffffffffffff
push 0x1009a5d5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x10113900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x7c], edi
cmp dword [eax + 4], 0
je 0x1000eee3
xorps xmm0, xmm0
mov dword [ebp - 0x4c], eax
movlpd qword [ebp - 0x1c], xmm0
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
test eax, eax
je 0x1000eced
mov eax, 0x7fffffff
cdq
idiv dword [ebp - 0x54]
cmp eax, 1
jl 0x1000ef03
mov eax, dword [ebp - 0x54]
test eax, eax
jle 0x1000ecde
mov ecx, eax
call fcn.10027f30
mov esi, eax
mov eax, dword [ebp - 0x54]
jmp 0x1000ece0
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov edx, eax
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
test edx, edx
jle 0x1000eda5
movsd xmm4, qword [0x10105df0]
mov edi, dword [ebx + 8]
mov edx, dword [edi + 4]
mov ecx, edx
imul ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x24], edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x2c]
push eax
call fcn.10050f70
mov edx, dword [edi + 4]
add esp, 4
mov eax, dword [edi]
mov ecx, edx
imul ecx, dword [ebp - 0x54]
movaps xmm3, xmm0
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x30], edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x38]
push eax
call fcn.10051180
mov eax, dword [ebp - 0x54]
addsd xmm0, xmm3
add esp, 4
mulsd xmm0, xmm4
movsd qword [esi + eax*8], xmm0
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x58]
jl 0x1000ed05
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
lea edx, [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x20], 0
cmp eax, dword [edx]
jne 0x1000edcf
xorps xmm0, xmm0
movq qword [edi], xmm0
jmp 0x1000eddc
mov dword [edi], 0
mov dword [edi + 4], 0
movss xmm1, dword [0x10106000]
xor eax, eax
mov dword [edi + 8], 0
cmp ecx, 4
jl 0x1000ee53
lea edx, [ecx - 3]
nop word [eax + eax]
movsd xmm0, qword [esi + eax*8]
cvtpd2ps xmm0, xmm0
xorps xmm0, xmm1
movss dword [edi + eax*4], xmm0
movsd xmm0, qword [esi + eax*8 + 8]
cvtpd2ps xmm0, xmm0
xorps xmm0, xmm1
movss dword [edi + eax*4 + 4], xmm0
movsd xmm0, qword [esi + eax*8 + 0x10]
cvtpd2ps xmm0, xmm0
xorps xmm0, xmm1
movss dword [edi + eax*4 + 8], xmm0
movsd xmm0, qword [esi + eax*8 + 0x18]
cvtpd2ps xmm0, xmm0
xorps xmm0, xmm1
movss dword [edi + eax*4 + 0xc], xmm0
add eax, 4
cmp eax, edx
jl 0x1000ee00
jmp 0x1000ee72
test ecx, ecx
jle 0x1000ee76
nop word [eax + eax]
movsd xmm0, qword [esi + eax*8]
cvtpd2ps xmm0, xmm0
xorps xmm0, xmm1
movss dword [edi + eax*4], xmm0
inc eax
cmp eax, ecx
jl 0x1000ee60
movq xmm0, qword [ebp - 0x44]
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 0x3c]
movq qword [ebp - 0x74], xmm0
movq xmm0, qword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
movq qword [ebp - 0x68], xmm0
movups xmm0, xmmword [ebp - 0x78]
mov dword [ebp - 0x60], eax
movups xmmword [ebp - 0xa8], xmm0
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [ebp - 0x98], xmm0
call fcn.1001b8d0
movsd xmm1, qword [0x10105e18]
divsd xmm1, xmm0
mov eax, dword [ebp - 0x84]
cvtpd2ps xmm0, xmm1
movss dword [eax], xmm0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000eee3
push dword [eax - 4]
call fcn.10080ff6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006f8b7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.10002cb0
int3