Function at 0x10284570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1148
call fcn.10512080
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x1144], eax
mov eax, dword [ebp + 0x24]
movsd xmm3, qword [ebp + 0x48]
movsd xmm4, qword [ebp + 0x40]
mov ecx, dword [ebp + 0x10]
mov edx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x1c]
unpcklpd xmm3, xmm3
unpcklpd xmm4, xmm4
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 8], edx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
movups xmmword [esp + 0x100], xmm3
movups xmmword [esp + 0x120], xmm4
test eax, eax
jle 0x1028468e
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov esi, dword [ebp + 0x18]
add eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
nop dword [eax]
test esi, esi
jle 0x10284666
mov eax, edx
sub edi, edx
lea edx, [esi - 1]
shr edx, 3
inc edx
nop
lea eax, [eax + 0x10]
lea ecx, [ecx + 0x20]
movups xmm0, xmmword [eax - 0x10]
movups xmm2, xmmword [edi + eax - 0x10]
psubw xmm2, xmm0
movaps xmm1, xmm2
pmullw xmm1, xmm2
pmulhw xmm2, xmm2
movaps xmm0, xmm1
punpcklwd xmm0, xmm2
punpckhwd xmm1, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmmword [ecx - 0x20], xmm1
sub edx, 1
jne 0x10284620
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add edi, dword [esp + 0x1c]
add ecx, 0x90
add edx, dword [esp + 0x20]
sub eax, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jne 0x10284610
mov eax, dword [ebp + 0x1c]
jmp 0x10284691
mov esi, dword [ebp + 0x18]
xor ecx, ecx
test esi, esi
jle 0x10284b25
lea edi, [eax - 3]
lea eax, [esi - 4]
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], eax
nop dword [eax]
mov edx, dword [esp + 0x28]
lea edx, [edx + ecx*4]
movups xmm7, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
test ecx, ecx
jne 0x102846c7
pshufd xmm7, xmm7, 0xea
cmp ecx, eax
jl 0x102846d0
pshufd xmm1, xmm1, 0x54
movups xmm2, xmmword [edx + 0x90]
movups xmm3, xmmword [edx + 0xa0]
movaps xmmword [esp + 0x60], xmm2
movaps xmmword [esp + 0x40], xmm3
test ecx, ecx
jne 0x102846f6
pshufd xmm2, xmm2, 0xea
movaps xmmword [esp + 0x60], xmm2
cmp ecx, eax
jl 0x10284704
pshufd xmm3, xmm3, 0x54
movaps xmmword [esp + 0x40], xmm3
movups xmm5, xmmword [edx + 0x120]
movups xmm6, xmmword [edx + 0x130]
test ecx, ecx
jne 0x1028471b
pshufd xmm5, xmm5, 0xea
cmp ecx, eax
jl 0x10284724
pshufd xmm6, xmm6, 0x54
add edx, 0x1b0
movaps xmmword [esp + 0xc0], xmm7
movaps xmmword [esp + 0xd0], xmm1
movaps xmm0, xmm7
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm1
test edi, edi
jle 0x1028496c
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x14c]
mov esi, dword [esp + 0x20]
lea edi, [edi + ecx*4]
movaps xmm4, xmm1
mov dword [esp + 0x10], eax
movaps xmmword [esp + 0xe0], xmm4
movaps xmm3, xmm0
nop word [eax + eax]
paddd xmm4, xmmword [esp + 0xe0]
paddd xmm3, xmm0
movaps xmm0, xmmword [esp + 0x70]
paddd xmm2, xmm7
movaps xmmword [esp + 0xc0], xmm0
paddd xmm3, xmm2
movaps xmm2, xmmword [esp + 0x40]
paddd xmm3, xmm5
movaps xmmword [esp + 0x90], xmm3
movaps xmm3, xmm0
movaps xmm0, xmmword [esp + 0x80]
paddd xmm2, xmm1
movaps xmmword [esp + 0xd0], xmm0
paddd xmm2, xmm4
movaps xmmword [esp + 0x70], xmm7
movaps xmm4, xmm0
movaps xmm0, xmmword [esp + 0x40]
paddd xmm2, xmm6
movaps xmmword [esp + 0xa0], xmm0
movaps xmm0, xmm5
movaps xmmword [esp + 0xf0], xmm7
movaps xmm7, xmmword [esp + 0x60]
movaps xmmword [esp + 0x40], xmm6
movaps xmmword [esp + 0xb0], xmm2
movaps xmmword [esp + 0x80], xmm1
movaps xmmword [esp + 0xe0], xmm1
movaps xmmword [esp + 0x60], xmm0
movups xmm5, xmmword [edx]
movups xmm6, xmmword [edx + 0x10]
test ecx, ecx
jne 0x10284829
pshufd xmm5, xmm5, 0xea
cmp ecx, esi
jl 0x10284832
pshufd xmm6, xmm6, 0x54
andps xmm2, xmmword [0x10931dd0]
add edx, 0x90
movaps xmm0, xmmword [0x10931dc0]
andps xmm0, xmmword [esp + 0x90]
paddd xmm2, xmm0
movaps xmm1, xmm2
psrldq xmm1, 8
paddd xmm1, xmm2
movaps xmm2, xmmword [esp + 0xb0]
andps xmm2, xmmword [0x10931df0]
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm0, xmm1
movd dword [edi - 4], xmm0
movaps xmm0, xmmword [0x10931de0]
andps xmm0, xmmword [esp + 0x90]
paddd xmm2, xmm0
movaps xmm1, xmm2
psrldq xmm1, 8
paddd xmm1, xmm2
movaps xmm2, xmmword [esp + 0xb0]
andps xmm2, xmmword [0x10931e10]
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm0, xmm1
movd dword [edi], xmm0
movaps xmm0, xmmword [0x10931e00]
andps xmm0, xmmword [esp + 0x90]
paddd xmm2, xmm0
movaps xmm1, xmm2
psrldq xmm1, 8
paddd xmm1, xmm2
movaps xmm2, xmmword [esp + 0xb0]
andps xmm2, xmmword [0x10931e30]
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm0, xmm1
movd dword [edi + 4], xmm0
movaps xmm0, xmmword [0x10931e20]
andps xmm0, xmmword [esp + 0x90]
paddd xmm2, xmm0
movaps xmm1, xmm2
psrldq xmm1, 8
paddd xmm1, xmm2
movaps xmm2, xmmword [esp + 0x60]
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm0, xmm1
movaps xmm1, xmmword [esp + 0xa0]
movd dword [edi + 8], xmm0
sub edi, 0xffffff80
sub dword [esp + 0x10], 1
movaps xmm0, xmmword [esp + 0xf0]
jne 0x10284780
movaps xmm1, xmmword [esp + 0xa0]
movaps xmm2, xmmword [esp + 0x60]
movaps xmm3, xmmword [esp + 0x40]
movaps xmm0, xmmword [esp + 0x70]
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 0xc]
cmp edi, dword [ebp + 0x1c]
jge 0x10284b07
mov eax, edi
lea edx, [esp + 0x14c]
shl eax, 5
mov edi, 3
add eax, ecx
lea edx, [edx + eax*4]
nop dword [eax + eax]
paddd xmm0, xmmword [esp + 0xc0]
movaps xmm4, xmm2
lea edx, [edx + 0x80]
paddd xmm3, xmm1
paddd xmm4, xmm7
paddd xmm4, xmm0
movaps xmm0, xmmword [esp + 0x80]
paddd xmm0, xmmword [esp + 0xd0]
paddd xmm4, xmm5
paddd xmm3, xmm0
movaps xmm0, xmmword [esp + 0x70]
movaps xmmword [esp + 0xc0], xmm0
paddd xmm3, xmm6
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [esp + 0xd0], xmm0
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0xa0], xmm0
movaps xmm0, xmm5
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmm4
andps xmm0, xmmword [0x10931dc0]
movaps xmmword [esp + 0x80], xmm1
movaps xmmword [esp + 0x70], xmm7
movaps xmm7, xmm2
movaps xmmword [esp + 0x40], xmm6
movaps xmm2, xmm3
andps xmm2, xmmword [0x10931dd0]
paddd xmm2, xmm0
movaps xmm1, xmm2
psrldq xmm1, 8
paddd xmm1, xmm2
movaps xmm2, xmm3
andps xmm2, xmmword [0x10931df0]
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm0, xmm1
movd dword [edx - 0x84], xmm0
movaps xmm0, xmm4
andps xmm0, xmmword [0x10931de0]
paddd xmm2, xmm0
movaps xmm1, xmm2
psrldq xmm1, 8
paddd xmm1, xmm2
movaps xmm2, xmm3
andps xmm2, xmmword [0x10931e10]
movaps xmm0, xmm1
andps xmm3, xmmword [0x10931e30]
psrldq xmm0, 4
paddd xmm0, xmm1
movd dword [edx - 0x80], xmm0
movaps xmm0, xmm4
andps xmm0, xmmword [0x10931e00]
andps xmm4, xmmword [0x10931e20]
paddd xmm2, xmm0
movaps xmm1, xmm2
paddd xmm3, xmm4
psrldq xmm1, 8
paddd xmm1, xmm2
movaps xmm2, xmmword [esp + 0x60]
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm0, xmm1
movaps xmm1, xmm3
movd dword [edx - 0x7c], xmm0
psrldq xmm1, 8
paddd xmm1, xmm3
movaps xmm3, xmmword [esp + 0x40]
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm0, xmm1
movaps xmm1, xmmword [esp + 0xa0]
movd dword [edx - 0x78], xmm0
movaps xmm0, xmmword [esp + 0x70]
sub edi, 1
jne 0x10284990
mov edi, dword [esp + 0xc]
add ecx, 4
lea eax, [esi - 4]
cmp ecx, esi
jl 0x102846b0
movups xmm3, xmmword [esp + 0x100]
movups xmm4, xmmword [esp + 0x120]
mov eax, dword [ebp + 0x58]
lea edx, [esp + 0x120]
mov esi, dword [ebp + 0x20]
lea edi, [esp + 0x100]
xor ecx, ecx
sub edx, eax
sub edi, eax
nop
cvtdq2pd xmm0, qword [esi + ecx*4]
lea eax, [eax + 0x10]
add ecx, 2
movaps xmm1, xmm4
mulpd xmm0, xmm3
movups xmmword [edx + eax - 0x10], xmm0
movups xmm0, xmmword [eax - 0x10]
mulpd xmm1, xmm0
movups xmmword [edi + eax - 0x10], xmm1
cmp ecx, 4
jl 0x10284b40
cmp dword [ebp + 0x5c], 0
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
jne 0x10284ced
xor edx, edx
xor edi, edi
mov dword [esp + 0x1c], edx
test ecx, ecx
jle 0x10284e76
mov eax, dword [ebp + 0x34]
lea eax, [eax*2 - 0x10]
mov dword [esp + 0x34], eax
mov eax, ecx
shr eax, 1
lea ecx, [esp + 0x148]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
nop word [eax + eax]
xor eax, eax
mov dword [esp + 0xc], eax
test esi, esi
jle 0x10284cb7
mov ecx, esi
lea eax, [esp + 0x148]
mov esi, dword [ebp + 0x30]
shr ecx, 1
cmp edx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
sbb ecx, ecx
and ecx, 0xfffffff0
mov dword [esp + 0x10], edx
add ecx, 0x10
sub esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], esi
nop word [eax + eax]
cmp eax, dword [esp + 0x20]
movzx esi, word [edx]
mov edx, dword [esp + 0x2c]
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
add edx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + ecx]
add eax, dword [ecx]
mov ecx, dword [esp + 0x34]
shr eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1059bac0]
mulsd xmm0, qword [ebp + 0x38]
mulsd xmm0, qword [ebp + 0x50]
addsd xmm0, qword [esp + edx + 0x120]
mulsd xmm0, qword [esp + edx + 0x100]
minsd xmm0, qword [0x1075c8a8]
xorps xmm0, xmmword [0x10720950]
call fcn.105202e0
mulsd xmm0, qword [0x1075c8b8]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
add edx, 2
mov dword [esp + 0x10], edx
cvttsd2si eax, xmm0
add word [ecx + edi*2], ax
mov ecx, dword [esp + 0x3c]
imul eax, esi
add dword [ecx + edi*4], eax
inc edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
inc eax
add ecx, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [ebp + 0x18]
jl 0x10284c00
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 0x14]
inc edx
sub ecx, 0xffffff80
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
lea eax, [esi + esi]
mov esi, dword [ebp + 0x18]
add dword [esp + 0x24], eax
cmp edx, dword [ebp + 0x1c]
jl 0x10284bb0
pop edi
pop esi
mov ecx, dword [esp + 0x1144]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
xor edx, edx
xor edi, edi
mov dword [esp + 0x18], edx
test ecx, ecx
jle 0x10284e76
mov eax, dword [ebp + 0x34]
movsd xmm1, qword [ebp + 0x50]
movsd xmm2, qword [ebp + 0x38]
movsd xmm3, qword [0x1075c8a8]
movss xmm4, dword [0x1075c8c4]
lea eax, [eax*2 - 0x10]
movss xmm5, dword [0x1075c8c0]
movss xmm6, dword [0x105fe8e4]
mov dword [esp + 0x20], eax
mov eax, ecx
shr eax, 1
lea ecx, [esp + 0x148]
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], ecx
xor eax, eax
mov dword [esp + 0x14], eax
test esi, esi
jle 0x10284e54
mov ecx, esi
lea eax, [esp + 0x148]
mov esi, dword [ebp + 0x30]
shr ecx, 1
cmp edx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
sbb ecx, ecx
and ecx, 0xfffffff0
mov dword [esp + 0x1c], edx
add ecx, 0x10
sub esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], esi
cmp eax, dword [esp + 0x30]
movzx esi, word [edx]
mov edx, dword [esp + 0x2c]
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
add edx, eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ecx]
add eax, dword [ecx]
mov ecx, dword [esp + 0x20]
shr eax, cl
mov ecx, 0x3f7f127f
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1059bac0]
mulsd xmm0, xmm2
mulsd xmm0, xmm1
addsd xmm0, qword [esp + edx + 0x120]
mulsd xmm0, qword [esp + edx + 0x100]
mov edx, dword [esp + 0x1c]
add edx, 2
mov dword [esp + 0x1c], edx
minsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm4
cvttss2si eax, xmm0
sub ecx, eax
mov dword [esp + 0x5c], ecx
movss xmm0, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
mulss xmm0, xmm5
addss xmm0, xmm6
cvttss2si eax, xmm0
add word [ecx + edi*2], ax
mov ecx, dword [esp + 0x3c]
imul eax, esi
add dword [ecx + edi*4], eax
inc edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add ecx, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [ebp + 0x18]
jl 0x10284d92
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov esi, dword [ebp + 0x14]
inc edx
sub ecx, 0xffffff80
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
lea eax, [esi + esi]
mov esi, dword [ebp + 0x18]
add dword [esp + 0x24], eax
cmp edx, dword [ebp + 0x1c]
jl 0x10284d48
mov ecx, dword [esp + 0x114c]
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret