Function at 0x101c08d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x102e5cc0]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x101f3684]
subss xmm0, dword [ebp + 0x28]
movss xmm1, dword [0x102c52cc]
push esi
mov esi, dword [ebp + 0xc]
push edi
maxss xmm1, xmm0
lea edi, [esi*4]
mov eax, edi
mulss xmm1, dword [0x102c5270]
movss dword [ebp - 0x2c], xmm1
call fcn.1010de10
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.1010de10
mov eax, esi
mov dword [ebp - 0x10], esp
call fcn.1010de10
mov eax, edi
mov dword [ebp - 0x28], esp
call fcn.1010de10
mov eax, edi
mov dword [ebp - 0x34], esp
call fcn.1010de10
xor esi, esi
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x24], esi
cmp dword [ebp + 0xc], esi
jle 0x101c0cb4
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 0x101c09a3
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.1010efe0
movss xmm2, dword [0x101f36c0]
add esp, 0xc
xor ecx, ecx
xorps xmm3, xmm3
cmp esi, 4
jl 0x101c0a47
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 0x101c0a10
cmp ecx, esi
jge 0x101c0a61
nop dword [eax + eax]
movss xmm0, dword [edi + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x101c0a50
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 0x101c0b62
cmp dword [ebp - 8], 1
je 0x101c0b62
lea eax, [esi*4]
push eax
push edi
push dword [ebp - 0x28]
call fcn.1010efe0
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.101c2d70
movss xmm2, dword [0x101f36c0]
add esp, 0x18
xor ecx, ecx
xorps xmm3, xmm3
cmp esi, 4
jl 0x101c0b17
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 0x101c0ae0
cmp ecx, esi
jge 0x101c0b31
mov eax, dword [ebp - 0x28]
nop
movss xmm0, dword [eax + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x101c0b20
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 0x101c0b62
or edx, 0xffffffff
movss dword [ebp - 0x14], xmm0
mov dword [ebp - 0x1c], edx
jmp 0x101c0b65
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 0x101c0b81
cmp dword [ebp - 8], 1
je 0x101c0b81
mov eax, 1
jmp 0x101c0b83
xor eax, eax
add eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0xc]
cmp edi, eax
jge 0x101c0c76
cmp dword [ebp + 0x10], 0
je 0x101c0b9c
mov dword [ebp - 0x20], ecx
jmp 0x101c0ba2
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.101c2d70
movss xmm2, dword [0x101f36c0]
add esp, 0xc
xor ecx, ecx
xorps xmm3, xmm3
cmp esi, 4
jl 0x101c0c19
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 0x101c0be2
cmp ecx, esi
jge 0x101c0c31
mov eax, dword [ebp - 0x10]
movss xmm0, dword [eax + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x101c0c20
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 0x101c0c67
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 0x101c0b70
mov edx, dword [ebp - 0x1c]
inc edi
dec dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
jmp 0x101c0b70
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x101c0c7f
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 0x101c0ca5
test edx, edx
je 0x101c0c9f
mov eax, dword [ebp + 0x24]
neg eax
add eax, eax
cmp edx, eax
jne 0x101c0ca5
lea eax, [edx - 1]
mov dword [edi + esi*4], eax
inc esi
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp + 0xc]
jl 0x101c09a0
jmp 0x101c0cb7
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 + 0x102c3a75]
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 0x101c0dcd
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x24]
movsx eax, byte [ecx + edx*8 + 0x102c3a74]
add eax, eax
mov dword [ebp - 0x1c], eax
movsx eax, byte [ecx + edx*8 + 0x102c3a75]
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 0x101c0d70
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 0x101c0cf4
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
jge 0x101c0e0b
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 + 0x102c3a74]
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 + 0x102c3a75]
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 0x101c0f2b
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 + 0x102c3a74]
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 + 0x102c3a75]
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 0x101c0e96
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 0x101c0f71
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 0x101c0f5f
mov ecx, eax
jmp 0x101c0f61
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 0x101c0f55
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x58]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010d06f
mov esp, ebp
pop ebp
ret