Function at 0x4110e9
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov dword [esp + 0x1c], edx
mov ebx, ecx
lea eax, [0x5133e8]
lea ecx, [esp + 0x70]
mov edx, str.QI4QHR4IJ7X5T9UD2JWCSHRAXJISNLA60U561U6R5W6O
lea edi, [esp + 0x11c]
lea esi, [esp + 0x20]
and dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 1
and dword [esp + 0xe0], 0
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea edx, [esp + 0xfc]
mov dword [esi], edi
and dword [edi], 0
mov dword [esi + 4], edx
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov dword [esi + 0x14], ecx
mov ecx, esi
call section..text
test eax, eax
je 0x41116c
mov byte [eax], dl
inc dword [esp + 0x11c]
jmp 0x411156
cmp dword [esp + 0x11c], 0x20
jne 0x411a51
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x70]
jne 0x411a51
lea edi, [esp + 0xfc]
lea eax, [0x5133f4]
movsd xmm1, qword [edi + 0x10]
mov dword [esp + 0x70], eax
mov eax, 0x5133e8
movq xmm0, qword [edi + 0x18]
movsd xmm2, qword [edi]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x2c]
and dword [eax], 0
mov dword [edi], eax
lea eax, [esp + 0x70]
movsd qword [esp + 0x190], xmm1
movsd xmm1, qword [edi + 8]
mov dword [edi + 4], esi
and dword [edi + 8], 0
and dword [edi + 0xc], 0
and dword [edi + 0x10], 0
movq qword [esp + 0x198], xmm0
movsd qword [esp + 0x180], xmm2
mov dword [edi + 0x14], eax
movsd qword [esp + 0x188], xmm1
mov ecx, edi
call section..text
test eax, eax
je 0x41120b
mov byte [eax], dl
inc dword [esp + 0x2c]
jmp 0x4111f8
cmp dword [esp + 0x2c], 0xc
mov dword [esp + 0xc4], ebx
jne 0x411a51
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x70]
jne 0x411a51
lea esi, [esp + 0x20]
lea edi, [esp + 0x180]
lea ecx, [esp + 0x1a0]
lea edx, [esp + 0x12c]
mov eax, dword [esi + 8]
movq xmm0, qword [esi]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0x20
mov dword [esp + 0x78], ecx
and dword [esp + 0x7c], 0
mov ecx, esi
lea edi, [esp + 0x70]
mov dword [esp + 0x80], 4
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x10c]
movq qword [esp + 0xc8], xmm0
and dword [eax + 4], 0
and dword [eax], 0
and dword [eax + 0xc], 0
and dword [eax + 8], 0
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
and dword [eax + 0x1c], 0
and dword [eax + 0x18], 0
and dword [eax + 0x24], 0
and dword [eax + 0x20], 0
and dword [eax + 0x2c], 0
and dword [eax + 0x28], 0
mov dword [eax - 0x10], 0x61707865
mov dword [eax - 0xc], 0x3320646e
mov dword [eax - 8], 0x79622d32
mov dword [eax - 4], 0x6b206574
push edi
push eax
call fcn.00402832
pop eax
pop ecx
mov ecx, dword [esi + 0x24]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov edx, ecx
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
imul edx, ebx
add edx, dword [esi + 0x14]
mov dword [esp + 0xc], eax
cmp ebx, dword [esp + 0xb0]
jae 0x411341
mov al, 1
cmp ecx, 4
jne 0x411317
mov eax, dword [edx]
mov dword [esp + 0x10], eax
xor eax, eax
mov edi, dword [esp + 0x10]
mov esi, edx
movzx ecx, al
mov edx, edi
push 0x510708
call fcn.00402d80
mov edx, esi
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + ebx*4], edi
add edx, ecx
inc ebx
jmp 0x4112ff
lea esi, [esp + 0xc8]
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x13c]
lea edi, [esp + 0x70]
lea eax, [esp + 0x130]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0xc
mov dword [esp + 0x78], ecx
and dword [esp + 0x7c], 0
lea esi, [esp + 0x20]
mov dword [esp + 0x80], 4
mov ecx, esi
push edi
push eax
call fcn.00402832
pop eax
pop ecx
mov ecx, dword [esi + 0x24]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov edx, ecx
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
imul edx, ebx
add edx, dword [esi + 0x14]
mov dword [esp + 0xc], eax
cmp ebx, dword [esp + 0xb0]
jae 0x4113f5
mov al, 1
cmp ecx, 4
jne 0x4113cb
mov eax, dword [edx]
mov dword [esp + 0x10], eax
xor eax, eax
mov edi, dword [esp + 0x10]
mov esi, edx
movzx ecx, al
mov edx, edi
push 0x510718
call fcn.00402d80
mov edx, esi
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + ebx*4], edi
add edx, ecx
inc ebx
jmp 0x4113b3
mov al, byte [0x5b7039]
cmp al, 0xff
jne 0x41142a
lea esi, [esp + 0x70]
mov ecx, esi
call fcn.00415255
lea edi, [esp + 0x20]
mov ecx, edi
call fcn.00415272
mov eax, dword [edi + 4]
mov ecx, dword [esi + 8]
and eax, 0x20
shr ecx, 0x1c
shr eax, 5
and eax, ecx
mov byte [0x5b7039], al
push 0x10
pop ecx
lea edi, [esp + 0x70]
lea esi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
push 0xffffffffffffffc0
pop eax
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41144c
mov byte [esp + eax + 0x60], 0
inc eax
jmp 0x411440
push 0x10
pop eax
lea esi, [esp + 0x20]
mov ecx, eax
lea edi, [esp + 0x13c]
lea edx, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x70]
mov ecx, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov byte [edx + 0x80], 0
call fcn.0043afb9
lea esi, [esp + 0xe4]
mov dword [esi], eax
mov dword [esi + 4], edx
and dword [esi + 8], 0
mov ecx, esi
mov edx, ebx
call fcn.004912ee
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x10], eax
add eax, edx
cmp ebx, edi
je 0x4114b5
mov cl, byte [esi + edi]
mov byte [eax + edi], cl
inc edi
jmp 0x4114a8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
movzx edx, byte [esp + 0x17c]
lea ecx, [eax + edi]
mov eax, dword [esp + 0x12c]
mov dword [esp + 0xc], edx
test edx, edx
mov dword [esp + 0xec], ecx
push 0x40
pop esi
mov dword [esp + 0x14], ecx
je 0x4114fd
mov ecx, dword [esp + 0xc]
mov ebx, esi
sub esi, ecx
cmp dword [esp + 0x14], esi
jbe 0x411527
mov ecx, dword [esp + 0x10]
sub ecx, esi
mov esi, ebx
add ecx, edi
mov edx, ecx
shr ecx, 6
not eax
mov ebx, esi
and edx, 0x3f
cmp edx, 1
sbb ecx, 0xffffffff
cmp ecx, eax
ja 0x411a66
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test cl, cl
je 0x41159a
mov edx, ebx
lea eax, [esp + 0x13c]
sub edx, ecx
add ecx, eax
cmp dword [esp + 0x14], edx
jae 0x411579
push 0x510418
mov esi, dword [esp + 0x18]
push esi
call fcn.00402c4c
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], edx
mov dword [esp + 0x1ec], esi
sub ecx, edx
add ecx, edi
jne 0x411a87
mov esi, dword [esp + 0x18]
xor ecx, ecx
cmp dword [esp + 0x14], ecx
je 0x4115ed
mov dl, byte [eax + ecx]
xor byte [esi + ecx], dl
inc ecx
jmp 0x41156a
mov esi, dword [esp + 0x18]
xor eax, eax
cmp edx, eax
je 0x41158c
mov bl, byte [ecx + eax]
xor byte [esi + eax], bl
inc eax
jmp 0x41157f
mov eax, dword [esp + 0x10]
add edx, esi
add eax, dword [esp + 0xc]
lea eax, [edi + eax - 0x40]
mov ecx, eax
mov dword [esp + 0xc0], eax
and eax, 0x3f
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], edx
mov edi, edx
shr ecx, 6
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xf8], ecx
mov al, byte [0x5b7039]
mov dword [esp + 0x10], edx
cmp al, 1
jne 0x4115fc
lea ecx, [esp + 0xfc]
lea edx, [esp + 0xf0]
call fcn.00403f7f
jmp 0x4117ff
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x10]
add eax, edi
jmp 0x4119b6
movdqu xmm0, xmmword [esp + 0xfc]
movups xmm3, xmmword [esp + 0x12c]
movups xmm1, xmmword [esp + 0x10c]
movups xmm2, xmmword [esp + 0x11c]
xor esi, esi
movdqa xmmword [esp + 0x1a0], xmm0
movaps xmmword [esp + 0x1b0], xmm1
movaps xmmword [esp + 0x1c0], xmm2
movaps xmmword [esp + 0xb0], xmm3
movaps xmmword [esp + 0x1d0], xmm3
cmp dword [esp + 0x1c], esi
je 0x4117ed
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x411661
mov byte [esp + eax + 0x60], 0
inc eax
jmp 0x411655
push 0x40
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x234]
push eax
call fcn.004fea40
add esp, 0xc
movaps xmm1, xmmword [esp + 0x1c0]
movaps xmm0, xmmword [esp + 0x1d0]
movaps xmm2, xmmword [esp + 0x1a0]
movaps xmmword [esp + 0x40], xmm1
movaps xmm1, xmmword [esp + 0x1b0]
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x20], xmm2
movaps xmmword [esp + 0x30], xmm1
push 0xa
pop edi
sub edi, 1
jb 0x411716
lea ebx, [esp + 0x20]
mov ecx, ebx
call fcn.004046c0
pshufd xmm0, xmmword [esp + 0x40], 0x39
mov ecx, ebx
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x50], 0x4e
movdqa xmmword [esp + 0x50], xmm0
pshufd xmm0, xmmword [esp + 0x20], 0x93
movdqa xmmword [esp + 0x20], xmm0
call fcn.004046c0
pshufd xmm0, xmmword [esp + 0x40], 0x93
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x50], 0x4e
movdqa xmmword [esp + 0x50], xmm0
pshufd xmm0, xmmword [esp + 0x20], 0x39
movdqa xmmword [esp + 0x20], xmm0
jmp 0x4116af
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x411737
movdqa xmm0, xmmword [esp + eax + 0x1e0]
paddd xmm0, xmmword [esp + eax + 0x60]
movdqa xmmword [esp + eax + 0x60], xmm0
add eax, 0x10
jmp 0x411719
movdqa xmm0, xmmword [esp + 0xb0]
paddd xmm0, xmmword [0x510100]
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0x1d0], xmm0
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x411775
movdqa xmm0, xmmword [esp + eax + 0x60]
movdqu xmmword [esp + eax + 0x26c], xmm0
add eax, 0x10
jmp 0x41175d
mov edi, esi
shl edi, 6
add edi, dword [esp + 0x10]
push 0x40
push edi
lea eax, [esp + 0x1f4]
push eax
call fcn.004fea40
add esp, 0xc
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x4117a0
mov byte [esp + eax + 0x60], 0
inc eax
jmp 0x411794
push 0x40
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004fea40
add esp, 0xc
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x4117d3
mov cl, byte [esp + eax + 0x26c]
xor cl, byte [esp + eax + 0x22c]
mov byte [esp + eax + 0xb0], cl
inc eax
jmp 0x4117b7
inc esi
push 0x40
lea eax, [esp + 0x74]
push eax
push edi
call fcn.004fea40
add esp, 0xc
mov edi, dword [esp + 0x10]
jmp 0x411648
movdqa xmm0, xmmword [esp + 0xb0]
movd dword [esp + 0x12c], xmm0
cmp dword [esp + 0xc], 0
mov esi, dword [esp + 0x18]
je 0x4119b2
mov al, byte [0x5b7039]
cmp al, 1
jne 0x411831
lea esi, [esp + 0x13c]
lea ecx, [esp + 0xfc]
mov edx, esi
call fcn.00403e36
jmp 0x411968
movups xmm0, xmmword [esp + 0xfc]
movups xmm3, xmmword [esp + 0x12c]
movups xmm1, xmmword [esp + 0x10c]
movups xmm2, xmmword [esp + 0x11c]
lea edi, [esp + 0x20]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm1
movaps xmmword [esp + 0x90], xmm2
movaps xmmword [esp + 0xa0], xmm3
movaps xmmword [esp + 0xb0], xmm3
movaps xmm1, xmmword [esp + 0x90]
movaps xmm0, xmmword [esp + 0xa0]
movaps xmm2, xmmword [esp + 0x80]
movaps xmmword [edi + 0x20], xmm1
movaps xmm1, xmmword [esp + 0x70]
movaps xmmword [edi + 0x30], xmm0
movaps xmmword [edi + 0x10], xmm2
movaps xmmword [edi], xmm1
push 0xa
pop esi
sub esi, 1
jb 0x41190c
mov ecx, edi
call fcn.004046c0
pshufd xmm0, xmmword [esp + 0x40], 0x39
mov ecx, edi
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x50], 0x4e
movdqa xmmword [esp + 0x50], xmm0
pshufd xmm0, xmmword [esp + 0x20], 0x93
movdqa xmmword [esp + 0x20], xmm0
call fcn.004046c0
pshufd xmm0, xmmword [esp + 0x40], 0x93
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x50], 0x4e
movdqa xmmword [esp + 0x50], xmm0
pshufd xmm0, xmmword [esp + 0x20], 0x39
movdqa xmmword [esp + 0x20], xmm0
jmp 0x4118a9
push 0xffffffffffffffc0
pop eax
mov edi, dword [esp + 0x10]
test eax, eax
je 0x411931
movdqa xmm0, xmmword [esp + eax + 0xb0]
paddd xmm0, xmmword [esp + eax + 0x60]
movdqa xmmword [esp + eax + 0x60], xmm0
add eax, 0x10
jmp 0x411913
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x41194c
movdqa xmm0, xmmword [esp + eax + 0x60]
movdqu xmmword [esp + eax + 0x17c], xmm0
add eax, 0x10
jmp 0x411934
movdqa xmm0, xmmword [esp + 0xb0]
lea esi, [esp + 0x13c]
movd eax, xmm0
inc eax
mov dword [esp + 0x12c], eax
push 0x40
pop edx
mov ecx, esi
push 0x510428
mov esi, dword [esp + 0x10]
push esi
call fcn.00402c4c
pop ecx
pop ecx
cmp esi, edx
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x70], edx
jne 0x411a87
mov ecx, dword [esp + 0xc0]
mov esi, dword [esp + 0x18]
and ecx, 0xffffffc0
add edi, ecx
xor ecx, ecx
cmp dword [esp + 0xc], ecx
je 0x4119b2
mov dl, byte [eax + ecx]
xor byte [edi + ecx], dl
inc ecx
jmp 0x4119a3
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x17c], al
mov ecx, ebx
call fcn.0043afb9
lea edi, [esp + 0x70]
mov dword [edi], eax
mov dword [edi + 4], edx
push ebx
push esi
push edx
call fcn.004fea40
add esp, 0xc
mov dword [edi + 8], ebx
lea ebx, [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.004031c9
lea esi, [esp + 0x70]
mov edx, ebx
mov ecx, esi
push 0x5133f4
call fcn.00402e56
pop eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
lea edi, [esp + 0xd8]
mov ecx, edi
add edx, eax
push eax
call fcn.00416a75
pop eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xc4]
movsd xmm0, qword [esi]
mov edx, dword [esp + 0xe8]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
mov ecx, dword [esp + 0xe4]
call fcn.0043d0cd
mov ecx, dword [edi]
mov edx, dword [edi + 4]
call fcn.0043d0cd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x2a
pop edx
mov ecx, str.Slice_must_be_the_same_length_as_the_array
push 0x5104e4
call fcn.0050b170
pop eax
ud2
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x5106a8
push 0x5105e4
lea eax, [esp + 0x28]
push eax
call fcn.0050b0f0
add esp, 0xc
ud2
and dword [esp + 0x28], 0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1ec]
lea edx, [esp + 0x70]
push eax
call fcn.0050ad70
jmp 0x411a63