Function at 0x10143280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10259b00]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x1017d760]
subss xmm0, dword [ebp + 0x28]
movss xmm1, dword [0x10243d5c]
push esi
mov esi, dword [ebp + 0xc]
push edi
maxss xmm1, xmm0
lea edi, [esi*4]
mov eax, edi
mulss xmm1, dword [0x10243cf8]
movss dword [ebp - 0x2c], xmm1
call fcn.100a0ef0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], esp
mov ecx, dword [ecx + 0x20]
movsx eax, word [ecx + esi*2 - 2]
movsx esi, word [ecx + esi*2]
mov ecx, dword [ebp + 0x24]
sub esi, eax
shl esi, cl
shl esi, 2
mov eax, esi
call fcn.100a0ef0
mov eax, esi
mov dword [ebp - 0x10], esp
call fcn.100a0ef0
mov eax, edi
mov dword [ebp - 0x28], esp
call fcn.100a0ef0
mov eax, edi
mov dword [ebp - 0x34], esp
call fcn.100a0ef0
xor esi, esi
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x24], esi
cmp dword [ebp + 0xc], esi
jle 0x10143664
mov eax, dword [ebp + 0x20]
imul eax, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x24]
mov dword [ebp + 0x20], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
cmovne eax, edi
movd xmm0, eax
lea eax, [edi - 1]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x3c], eax
mulss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x38], xmm0
jmp 0x10143353
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov ecx, edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
mov eax, dword [eax + 0x20]
movsx edx, word [eax + esi*2]
movsx eax, word [eax + esi*2 + 2]
sub eax, edx
shl edx, cl
add edx, dword [ebp + 0x20]
mov esi, eax
shl esi, cl
mov dword [ebp - 8], eax
lea eax, [esi*4]
push eax
mov eax, dword [ebp + 0x1c]
lea eax, [eax + edx*4]
push eax
push edi
call fcn.100a1aa0
movss xmm2, dword [0x10178b70]
add esp, 0xc
xor ecx, ecx
xorps xmm3, xmm3
cmp esi, 4
jl 0x101433f7
lea edx, [esi - 4]
shr edx, 2
lea eax, [edi + 8]
inc edx
lea ecx, [edx*4]
nop word [eax + eax]
movss xmm1, dword [eax - 8]
movss xmm0, dword [eax - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax + 4]
andps xmm0, xmm2
add eax, 0x10
addss xmm3, xmm0
sub edx, 1
jne 0x101433c0
cmp ecx, esi
jge 0x10143411
nop dword [eax + eax]
movss xmm0, dword [edi + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x10143400
movss xmm0, dword [ebp - 0x38]
mov eax, dword [ebp + 0x10]
mulss xmm0, xmm3
addss xmm0, xmm3
movss dword [ebp - 0x14], xmm0
test eax, eax
je 0x10143512
cmp dword [ebp - 8], 1
je 0x10143512
lea eax, [esi*4]
push eax
push edi
push dword [ebp - 0x28]
call fcn.100a1aa0
mov edi, dword [ebp + 0x24]
mov eax, 1
mov ecx, edi
shl eax, cl
push eax
mov eax, esi
sar eax, cl
push eax
push dword [ebp - 0x28]
call fcn.101457e0
movss xmm2, dword [0x10178b70]
add esp, 0x18
xor ecx, ecx
xorps xmm3, xmm3
cmp esi, 4
jl 0x101434c7
mov eax, dword [ebp - 0x28]
lea edx, [esi - 4]
shr edx, 2
add eax, 8
inc edx
lea ecx, [edx*4]
nop dword [eax]
movss xmm1, dword [eax - 8]
movss xmm0, dword [eax - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax + 4]
andps xmm0, xmm2
add eax, 0x10
addss xmm3, xmm0
sub edx, 1
jne 0x10143490
cmp ecx, esi
jge 0x101434e1
mov eax, dword [ebp - 0x28]
nop
movss xmm0, dword [eax + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x101434d0
movss xmm1, dword [ebp - 0x14]
lea eax, [edi + 1]
movd xmm0, eax
mov eax, dword [ebp + 0x10]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x2c]
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x10143512
or edx, 0xffffffff
movss dword [ebp - 0x14], xmm0
mov dword [ebp - 0x1c], edx
jmp 0x10143515
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
xor edi, edi
mov dword [ebp - 0xc], ecx
nop dword [eax]
test eax, eax
jne 0x10143531
cmp dword [ebp - 8], 1
je 0x10143531
mov eax, 1
jmp 0x10143533
xor eax, eax
add eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0xc]
cmp edi, eax
jge 0x10143626
cmp dword [ebp + 0x10], 0
je 0x1014354c
mov dword [ebp - 0x20], ecx
jmp 0x10143552
lea eax, [edi + 1]
mov dword [ebp - 0x20], eax
mov ecx, edi
mov eax, 1
shl eax, cl
push eax
mov eax, esi
sar eax, cl
push eax
push dword [ebp - 0x10]
call fcn.101457e0
movss xmm2, dword [0x10178b70]
add esp, 0xc
xor ecx, ecx
xorps xmm3, xmm3
cmp esi, 4
jl 0x101435c9
mov eax, dword [ebp - 0x10]
lea edx, [esi - 4]
shr edx, 2
add eax, 8
inc edx
lea ecx, [edx*4]
movss xmm1, dword [eax - 8]
movss xmm0, dword [eax - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax + 4]
andps xmm0, xmm2
add eax, 0x10
addss xmm3, xmm0
sub edx, 1
jne 0x10143592
cmp ecx, esi
jge 0x101435e1
mov eax, dword [ebp - 0x10]
movss xmm0, dword [eax + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x101435d0
movd xmm0, dword [ebp - 0x20]
movss xmm1, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x2c]
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x10143617
mov eax, dword [ebp + 0x10]
lea edx, [edi + 1]
inc edi
movss dword [ebp - 0x14], xmm0
dec dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
jmp 0x10143520
mov edx, dword [ebp - 0x1c]
inc edi
dec dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
jmp 0x10143520
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1014362f
neg edx
mov esi, dword [ebp - 0x24]
add edx, edx
cmp dword [ebp - 8], 1
mov edi, dword [ebp - 0x18]
mov dword [edi + esi*4], edx
jne 0x10143655
test edx, edx
je 0x1014364f
mov eax, dword [ebp + 0x24]
neg eax
add eax, eax
cmp edx, eax
jne 0x10143655
lea eax, [edx - 1]
mov dword [edi + esi*4], eax
inc esi
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp + 0xc]
jl 0x10143350
jmp 0x10143667
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x30]
xor edx, edx
test ecx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
cmovne eax, edx
mov dword [ebp - 0x3c], eax
lea eax, [ecx*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x24]
lea eax, [ecx + eax*2]
lea esi, [eax*4 + 0x10242455]
mov dword [ebp - 0x28], esi
movsx ecx, byte [esi - 1]
mov edx, dword [ebp - 0x18]
add ecx, ecx
mov eax, dword [edx]
sub eax, ecx
movsx ecx, byte [esi]
cdq
add ecx, ecx
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edi, edx
sub edi, edx
imul edi, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, ecx
cdq
mov esi, eax
xor esi, edx
mov dword [ebp - 0x14], edi
sub esi, edx
imul esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x3c]
cmp dword [ebp + 0xc], 1
jle 0x1014377d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x24]
movsx eax, byte [ecx + edx*8 + 0x10242454]
add eax, eax
mov dword [ebp - 0x1c], eax
movsx eax, byte [ecx + edx*8 + 0x10242455]
mov ecx, dword [ebp + 0x30]
add eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x38], eax
lea edx, [ecx + 4]
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], esi
lea ecx, [esi + eax]
add eax, edi
mov edi, dword [edx]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov esi, dword [eax + edx]
mov eax, esi
sub eax, dword [ebp - 0x1c]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x14]
imul eax, edi
cmp edx, ecx
cmovge edx, ecx
sub esi, dword [ebp - 0x40]
add edx, eax
mov eax, esi
mov dword [ebp - 0x14], edx
cdq
mov esi, eax
mov eax, dword [ebp - 0x44]
xor esi, edx
sub esi, edx
mov edx, dword [ebp - 0x20]
imul esi, edi
cmp eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x14]
cmovge eax, dword [ebp - 0x48]
add edx, 4
mov dword [ebp - 0x20], edx
add esi, eax
sub dword [ebp - 0xc], 1
jne 0x10143720
mov eax, dword [ebp - 0x2c]
cmp edi, esi
cmovl esi, edi
add dword [ebp - 8], 2
mov dword [ebp + eax*4 - 0x50], esi
inc eax
mov esi, dword [ebp - 0x28]
add esi, 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
cmp eax, 2
jl 0x101436a4
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
jge 0x101437bb
xor eax, eax
mov ecx, 1
cmp dword [ebp + 0x10], eax
cmovne eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x30]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x10]
mov esi, dword [edx]
lea eax, [ecx + eax*2]
movsx ecx, byte [eax + eax + 0x10242454]
add eax, eax
add ecx, ecx
mov dword [ebp - 8], eax
mov eax, esi
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
imul eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x10242455]
add ecx, ecx
sub esi, ecx
mov eax, esi
cdq
mov esi, eax
mov eax, dword [ebp + 0x18]
xor esi, edx
mov ecx, eax
sub esi, edx
xor edx, edx
imul esi, dword [edi]
cmp dword [ebp + 0x10], edx
cmovne ecx, edx
mov edx, dword [ebp + 0xc]
add esi, ecx
cmp edx, 1
jle 0x101438db
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x48], ecx
add edi, 4
mov ecx, dword [ebp - 0x30]
sub dword [ebp - 0x18], ecx
sub dword [ebp + 0x30], ecx
lea ecx, [edx - 1]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
lea ecx, [esi + eax]
cmp edx, ecx
mov eax, edx
cmovge eax, ecx
mov dword [ebp - 0x44], eax
xor eax, eax
cmp edx, ecx
mov ecx, dword [ebp - 0x48]
setge al
mov dword [edi + ecx], eax
mov eax, esi
mov ecx, dword [ebp + 0x18]
add ecx, edx
cmp ecx, esi
cmovl eax, ecx
mov dword [ebp - 0x40], eax
xor eax, eax
cmp ecx, esi
setge al
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + edi]
mov eax, dword [ebp + 0x30]
mov edi, dword [eax + edi]
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x10242454]
mov eax, esi
add ecx, ecx
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
imul eax, edi
add eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x10242455]
add ecx, ecx
sub esi, ecx
mov eax, esi
cdq
mov esi, eax
mov eax, dword [ebp + 0x18]
xor esi, edx
sub esi, edx
imul esi, edi
mov edi, dword [ebp - 0x24]
add edi, 4
mov dword [ebp - 0x24], edi
add esi, dword [ebp - 0x40]
sub dword [ebp - 0x20], 1
jne 0x10143846
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
xor eax, eax
cmp dword [ebp - 0xc], esi
setge al
mov dword [edi + edx*4 - 4], eax
add edx, 0xfffffffe
js 0x10143921
mov ecx, dword [ebp - 0x30]
mov esi, edi
sub esi, ecx
lea eax, [ecx + 4]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x30]
lea eax, [eax + edx*4]
mov dword [ebp - 0x34], ecx
cmp dword [eax + esi], 1
jne 0x1014390f
mov ecx, eax
jmp 0x10143911
add ecx, eax
mov ecx, dword [ecx]
sub eax, 4
mov dword [edi + edx*4], ecx
sub edx, 1
mov ecx, dword [ebp - 0x34]
jns 0x10143905
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x58]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fd88
mov esp, ebp
pop ebp
ret