Function at 0x1d80360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1e94008]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x1e7de6c]
subss xmm0, dword [ebp + 0x24]
movss xmm1, dword [0x1e7e418]
push esi
mov esi, edx
push edi
maxss xmm1, xmm0
mov dword [ebp - 0x1c], esi
mov edi, ecx
lea eax, [esi*4]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x40], eax
mulss xmm1, dword [0x1e7dda0]
movss dword [ebp - 0x24], xmm1
call fcn.01e277a0
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x18], esp
movsx ecx, word [eax + esi*2 - 2]
movsx esi, word [eax + esi*2]
sub esi, ecx
mov ecx, dword [ebp + 0x1c]
mov eax, esi
shl eax, cl
shl eax, 2
call fcn.01e277a0
mov ecx, dword [ebp + 0x1c]
mov edi, esp
shl esi, cl
shl esi, 2
mov eax, esi
mov dword [ebp - 8], edi
call fcn.01e277a0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], esp
call fcn.01e277a0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], esp
call fcn.01e277a0
mov eax, dword [ebp + 0x20]
xor esi, esi
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0xc], esi
mov dword [eax], 0
cmp dword [ebp - 0x1c], esi
jle 0x1d807ea
mov eax, dword [ebp + 0x18]
imul eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
xor eax, eax
cmp dword [ebp + 8], eax
cmovne eax, ecx
mov dword [ebp - 0x2c], eax
movd xmm0, eax
lea eax, [ecx - 1]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x34], eax
mulss xmm0, dword [ebp - 0x24]
movss dword [ebp - 0x44], xmm0
jmp 0x1d80453
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], 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 + 0x18]
mov esi, eax
shl esi, cl
mov dword [ebp - 0x10], eax
lea eax, [esi*4]
push eax
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
push eax
push edi
call fcn.01e27b10
movsd xmm2, qword [0x1e7e800]
add esp, 0xc
xor eax, eax
xorps xmm3, xmm3
cmp esi, 4
jl 0x1d80505
lea edx, [esi - 4]
shr edx, 2
lea ecx, [edi + 8]
inc edx
lea eax, [edx*4]
movss xmm0, dword [ecx - 8]
cvtps2pd xmm0, xmm0
andps xmm0, xmm2
cvtpd2ps xmm1, xmm0
movss xmm0, dword [ecx - 4]
cvtps2pd xmm0, xmm0
addss xmm3, xmm1
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
movss xmm0, dword [ecx]
cvtps2pd xmm0, xmm0
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
movss xmm0, dword [ecx + 4]
cvtps2pd xmm0, xmm0
add ecx, 0x10
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
sub edx, 1
jne 0x1d804b2
cmp eax, esi
jge 0x1d80528
nop dword [eax]
movss xmm0, dword [edi + eax*4]
inc eax
cvtps2pd xmm0, xmm0
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
cmp eax, esi
jl 0x1d80510
movss xmm4, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mulss xmm4, xmm3
addss xmm4, xmm3
movss dword [ebp - 0x14], xmm4
test eax, eax
je 0x1d8064b
cmp dword [ebp - 0x10], 1
je 0x1d8064b
lea eax, [esi*4]
push eax
push edi
push dword [ebp - 0x20]
call fcn.01e27b10
mov edi, dword [ebp + 0x1c]
mov eax, 1
mov ecx, edi
mov edx, esi
shl eax, cl
sar edx, cl
mov ecx, dword [ebp - 0x20]
push eax
call fcn.01d900c0
movsd xmm2, qword [0x1e7e800]
add esp, 0x10
xor eax, eax
xorps xmm3, xmm3
cmp esi, 4
jl 0x1d805f5
mov ecx, dword [ebp - 0x20]
lea edx, [esi - 4]
shr edx, 2
add ecx, 8
inc edx
lea eax, [edx*4]
movss xmm0, dword [ecx - 8]
cvtps2pd xmm0, xmm0
andps xmm0, xmm2
cvtpd2ps xmm1, xmm0
movss xmm0, dword [ecx - 4]
cvtps2pd xmm0, xmm0
addss xmm3, xmm1
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
movss xmm0, dword [ecx]
cvtps2pd xmm0, xmm0
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
movss xmm0, dword [ecx + 4]
cvtps2pd xmm0, xmm0
add ecx, 0x10
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
sub edx, 1
jne 0x1d805a2
cmp eax, esi
jge 0x1d80618
mov ecx, dword [ebp - 0x20]
nop dword [eax]
movss xmm0, dword [ecx + eax*4]
inc eax
cvtps2pd xmm0, xmm0
andps xmm0, xmm2
cvtpd2ps xmm0, xmm0
addss xmm3, xmm0
cmp eax, esi
jl 0x1d80600
movss xmm5, dword [ebp - 0x24]
lea eax, [edi + 1]
movss xmm4, dword [ebp - 0x14]
movd xmm0, eax
mov eax, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm5
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm4, xmm0
jbe 0x1d80650
or edx, 0xffffffff
movaps xmm4, xmm0
mov dword [ebp - 0x30], edx
jmp 0x1d80653
movss xmm5, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 0x28], ecx
nop dword [eax + eax]
test eax, eax
jne 0x1d80671
cmp dword [ebp - 0x10], 1
je 0x1d80671
mov eax, 1
jmp 0x1d80673
xor eax, eax
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x28]
cmp edi, eax
jge 0x1d80785
cmp dword [ebp + 8], 0
je 0x1d8068c
mov dword [ebp - 0x14], ecx
jmp 0x1d80692
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
mov ecx, edi
mov eax, 1
shl eax, cl
mov edx, esi
sar edx, cl
mov ecx, dword [ebp - 8]
push eax
call fcn.01d900c0
movsd xmm3, qword [0x1e7e800]
add esp, 4
xor eax, eax
xorps xmm2, xmm2
cmp esi, 4
jl 0x1d80724
mov edx, dword [ebp - 8]
lea ecx, [esi - 4]
shr ecx, 2
add edx, 8
inc ecx
lea eax, [ecx*4]
movss xmm0, dword [edx - 8]
cvtps2pd xmm0, xmm0
andps xmm0, xmm3
cvtpd2ps xmm1, xmm0
movss xmm0, dword [edx - 4]
cvtps2pd xmm0, xmm0
addss xmm2, xmm1
andps xmm0, xmm3
cvtpd2ps xmm0, xmm0
addss xmm2, xmm0
movss xmm0, dword [edx]
cvtps2pd xmm0, xmm0
andps xmm0, xmm3
cvtpd2ps xmm0, xmm0
addss xmm2, xmm0
movss xmm0, dword [edx + 4]
cvtps2pd xmm0, xmm0
add edx, 0x10
andps xmm0, xmm3
cvtpd2ps xmm0, xmm0
addss xmm2, xmm0
sub ecx, 1
jne 0x1d806d1
cmp eax, esi
jge 0x1d80748
mov ecx, dword [ebp - 8]
nop dword [eax + eax]
movss xmm0, dword [ecx + eax*4]
inc eax
cvtps2pd xmm0, xmm0
andps xmm0, xmm3
cvtpd2ps xmm0, xmm0
addss xmm2, xmm0
cmp eax, esi
jl 0x1d80730
movd xmm0, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm5
mulss xmm0, xmm2
addss xmm0, xmm2
comiss xmm4, xmm0
jbe 0x1d80776
mov eax, dword [ebp + 8]
lea edx, [edi + 1]
inc edi
mov dword [ebp - 0x30], edx
dec dword [ebp - 0x28]
movaps xmm4, xmm0
jmp 0x1d80660
mov edx, dword [ebp - 0x30]
inc edi
dec dword [ebp - 0x28]
mov eax, dword [ebp + 8]
jmp 0x1d80660
cmp dword [ebp + 8], 0
mov edi, dword [ebp - 0xc]
je 0x1d8079b
mov ecx, dword [ebp - 0x18]
lea eax, [edx + edx]
mov dword [ecx + edi*4], eax
mov eax, ecx
jmp 0x1d807a5
mov eax, dword [ebp - 0x18]
neg edx
add edx, edx
mov dword [eax + edi*4], edx
mov esi, dword [eax + edi*4]
mov eax, esi
mov ecx, dword [ebp - 0x2c]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp + 0x20]
add dword [eax], ecx
cmp dword [ebp - 0x10], 1
jne 0x1d807d7
test esi, esi
je 0x1d807ce
mov eax, dword [ebp + 0x1c]
neg eax
add eax, eax
cmp esi, eax
jne 0x1d807d7
mov ecx, dword [ebp - 0x18]
lea eax, [esi - 1]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
jl 0x1d80450
mov edx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0x10]
xor edi, edi
test edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], edi
lea ecx, [edx*4]
cmovne esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov edx, 1
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x1c], edx
jle 0x1d80890
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0x1c]
movsx esi, byte [edi + esi*8 + 0x1e5cad4]
add esi, esi
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp + 0x1c]
movsx esi, byte [edi + esi*8 + 0x1e5cad5]
add esi, esi
mov dword [ebp - 0x34], esi
mov esi, dword [ebp + 0x10]
lea edi, [ecx + esi]
cmp eax, edi
cmovl edi, eax
add eax, esi
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [ebp - 0x18]
mov esi, ecx
mov ecx, dword [eax + edx*4]
mov eax, ecx
sub eax, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
cdq
xor eax, edx
sub eax, edx
add eax, edi
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x14]
inc edx
add ecx, esi
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 0x1c]
jl 0x1d80844
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
cmp eax, ecx
cmovl ecx, eax
add dword [ebp - 0x10], 2
mov dword [ebp + edi*4 - 0x48], ecx
inc edi
mov dword [ebp - 8], edi
cmp edi, 2
jl 0x1d80810
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov edx, dword [ebp + 8]
cmp eax, dword [ebp - 0x48]
jge 0x1d808c4
test edx, edx
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x28], ecx
xor edi, edi
cmp dword [ebp - 0x1c], 1
jle 0x1d80980
mov esi, dword [ebp + 0x1c]
lea eax, [esi*8 + 0x1e5cad4]
mov esi, dword [ebp - 0x24]
lea eax, [eax + ecx*2]
movsx ecx, byte [eax + edx*4]
movsx eax, byte [eax + edx*4 + 1]
add ecx, ecx
mov edx, dword [ebp - 0x3c]
add eax, eax
sub dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], ecx
lea eax, [edx + 4]
mov ecx, dword [ebp - 0x1c]
dec ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], ecx
nop
mov ecx, dword [ebp + 0x10]
lea edx, [esi + ecx]
mov dword [ebp - 0x10], edx
cmp edi, edx
mov edx, dword [ebp - 0x14]
jge 0x1d8092c
mov dword [ebp - 0x10], edi
mov dword [eax + edx], 0
jmp 0x1d80933
mov dword [eax + edx], 1
add ecx, edi
mov dword [ebp - 0xc], ecx
cmp ecx, esi
jge 0x1d80944
mov dword [eax], 0
jmp 0x1d8094d
mov dword [ebp - 0xc], esi
mov dword [eax], 1
mov ecx, dword [ebp - 0x18]
mov ecx, dword [eax + ecx]
mov eax, ecx
sub eax, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
cdq
mov edi, eax
mov eax, ecx
xor edi, edx
sub edi, edx
cdq
add edi, dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 8]
xor esi, edx
sub esi, edx
add eax, 4
add esi, dword [ebp - 0xc]
sub dword [ebp - 0x20], 1
mov dword [ebp - 8], eax
jne 0x1d80910
mov ecx, dword [ebp - 0x40]
xor eax, eax
mov edx, dword [ebp - 0x1c]
cmp edi, esi
mov edi, dword [ebp + 0xc]
setge al
add edx, 0xfffffffe
mov dword [ecx + edi - 4], eax
js 0x1d809d3
mov ecx, dword [ebp - 0x3c]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x2c], eax
lea esi, [ecx + 4]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x3c]
lea esi, [esi + edx*4]
mov dword [ebp - 0x38], ecx
cmp dword [eax + esi], 1
jne 0x1d809c2
mov eax, dword [esi]
mov dword [edi + edx*4], eax
mov eax, dword [ebp - 0x2c]
jmp 0x1d809cb
mov ecx, dword [esi + ecx]
mov dword [edi + edx*4], ecx
mov ecx, dword [ebp - 0x38]
sub esi, 4
sub edx, 1
jns 0x1d809b2
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0x54]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01e029b1
mov esp, ebp
pop ebp
ret