Function at 0x100a87c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov ecx, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x10], ecx
cmp esi, 1
jne 0x100a87f7
push dword [ebp + 0x28]
push edi
push dword [ebp + 0xc]
push eax
call fcn.100a8700
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 4], ecx
lea ecx, [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x1c]
push 1
push dword [ebp + 0x24]
push ecx
push ecx
lea ecx, [ebp + 0x18]
push ecx
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.100a5e90
movd xmm1, dword [ebp - 0x34]
add esp, 0x2c
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x100ebc08]
movss dword [ebp - 0xc], xmm1
movd xmm1, dword [ebp - 0x30]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x100ebc08]
movss dword [ebp - 0x14], xmm1
cmp esi, 2
jne 0x100a89cb
mov eax, dword [ebp - 0x28]
xor edx, edx
xor ecx, ecx
test eax, eax
je 0x100a886c
cmp eax, 0x4000
mov esi, 8
cmovne ecx, esi
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, ecx
sub dword [esi + 0x20], eax
mov esi, edi
cmp dword [ebp - 0x28], 0x2000
mov eax, dword [ebp + 0xc]
cmovg esi, dword [ebp + 0xc]
cmovg eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esi
test ecx, ecx
je 0x100a88e5
push 1
cmp dword [ebp - 0x18], edx
je 0x100a88d8
movss xmm0, dword [eax + 4]
movss xmm1, dword [esi + 4]
mulss xmm1, dword [eax]
xor eax, eax
mulss xmm0, dword [esi]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
seta al
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.1009f220
mov edx, dword [ebp - 0x18]
add esp, 0xc
jmp 0x100a88e5
push dword [ebp - 0x10]
call fcn.100a2860
add esp, 8
mov edx, eax
push dword [ebp - 4]
lea eax, [edx + edx]
mov esi, 1
push dword [ebp + 0x2c]
sub esi, eax
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x1c]
push 2
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.100a81b0
mov ecx, esi
movss xmm3, dword [ebp - 0xc]
neg ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add esp, 0x2c
movd xmm0, ecx
mov ecx, dword [ebp - 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 4]
movss dword [ecx], xmm0
movd xmm0, esi
mov esi, dword [ebp + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
mov eax, dword [ebp + 8]
movss dword [ecx + 4], xmm0
cmp dword [eax + 4], 0
mov ecx, dword [ebp + 0xc]
je 0x100a8c12
movaps xmm0, xmm3
mulss xmm0, dword [ecx]
movss dword [ecx], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
movss xmm0, dword [ebp - 0x14]
movaps xmm2, xmm0
mulss xmm0, dword [edi + 4]
mulss xmm2, dword [edi]
movss dword [edi + 4], xmm0
movss dword [edi], xmm2
movss xmm1, dword [ecx]
movaps xmm0, xmm1
subss xmm0, xmm2
movss dword [ecx], xmm0
addss xmm1, dword [edi]
movss dword [edi], xmm1
movss xmm1, dword [ecx + 4]
movaps xmm0, xmm1
subss xmm0, dword [edi + 4]
movss dword [ecx + 4], xmm0
addss xmm1, dword [edi + 4]
movss dword [edi + 4], xmm1
jmp 0x100a8b04
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x2c]
cdq
sub eax, edx
mov edx, dword [ebp + 0x18]
sar eax, 1
cmp edx, eax
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jns 0x100a89e8
xor eax, eax
jmp 0x100a89ed
cmp edx, eax
cmovl eax, edx
sub edx, eax
mov dword [ebp - 8], eax
mov dword [ebp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x20]
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov dword [edx + 0x20], ecx
cmp eax, dword [ebp + 0x14]
jl 0x100a8a82
mov ecx, dword [ebp + 0x30]
push ecx
push dword [ebp + 0x2c]
mov dword [ebp - 0x10], ecx
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0xc]
push edx
call fcn.100a81b0
mov edx, dword [ebp + 8]
add esp, 0x2c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
add eax, dword [edx + 0x20]
cmp eax, 0x18
jle 0x100a8a5a
cmp dword [ebp - 0x28], 0
je 0x100a8a5a
mov ecx, dword [ebp + 0x14]
add ecx, 0xffffffe8
add ecx, eax
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, eax
sar dword [ebp - 0x10], cl
push dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x14]
push 0
push ecx
movss dword [esp], xmm0
push 0
push dword [ebp + 0x24]
push 0
push eax
push dword [ebp + 0x14]
push esi
push edi
push edx
jmp 0x100a8aee
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x30]
sar eax, cl
push eax
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [ebp + 0x24]
push 0
push ecx
push dword [ebp + 0x14]
push esi
push edi
push edx
call fcn.100a81b0
mov ecx, dword [ebp + 8]
add esp, 0x2c
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 4], eax
add edx, dword [ecx + 0x20]
mov eax, dword [ebp - 8]
cmp edx, 0x18
jle 0x100a8ace
cmp dword [ebp - 0x28], 0x4000
je 0x100a8ace
add eax, 0xffffffe8
add eax, edx
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0xc]
push ecx
call fcn.100a81b0
mov ecx, dword [ebp + 0xc]
add esp, 0x2c
or dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movss xmm3, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x100a8c12
cmp esi, 2
je 0x100a8b27
push dword [eax + 0x2c]
push esi
push ecx
movss dword [esp], xmm3
push edi
push ecx
call fcn.100a91e0
add esp, 0x14
cmp dword [ebp - 0x38], 0
je 0x100a8c12
xor ecx, ecx
test esi, esi
jle 0x100a8c12
cmp esi, 2
jb 0x100a8bb8
movaps xmm2, xmmword [0x101089c0]
cmp esi, 0x10
jb 0x100a8b92
mov edx, esi
lea eax, [edi + 0x20]
and edx, 0xfffffff0
movups xmm0, xmmword [eax - 0x20]
add ecx, 0x10
lea eax, [eax + 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jl 0x100a8b54
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x100a8bb4
mov eax, esi
and eax, 0xfffffffe
nop word [eax + eax]
movsd xmm0, qword [edi + ecx*4]
xorps xmm0, xmm2
movsd qword [edi + ecx*4], xmm0
add ecx, 2
cmp ecx, eax
jl 0x100a8ba0
cmp ecx, esi
jge 0x100a8c12
movaps xmm1, xmmword [0x101089c0]
mov eax, esi
sub eax, ecx
cmp eax, 4
jl 0x100a8c00
mov edx, esi
lea eax, [edi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
nop dword [eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm1
movups xmmword [eax - 0x18], xmm0
sub edx, 1
jne 0x100a8be0
cmp ecx, esi
jge 0x100a8c12
nop word [eax + eax]
movss xmm0, dword [edi + ecx*4]
xorps xmm0, xmm1
movss dword [edi + ecx*4], xmm0
inc ecx
cmp ecx, esi
jl 0x100a8c00
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret