Function at 0x4127c2
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 + 8], edx
mov dword [esp + 0xc0], ecx
lea ecx, [0x51496c]
lea eax, [esp + 0x70]
mov edx, str.D1Z3Y7H0TLFJFWLY9H6X0WDJBLMCAYYNLHXHEXUQ7PAB
lea edi, [esp + 0x11c]
lea esi, [esp + 0x10]
and dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 1
and dword [esp + 0xe0], 0
mov dword [eax], ecx
mov dword [eax + 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], eax
mov ecx, esi
call section..text
test eax, eax
je 0x41284a
mov byte [eax], dl
inc dword [esp + 0x11c]
jmp 0x412834
cmp dword [esp + 0x11c], 0x20
jne 0x4130fc
lea ebx, [esp + 0x70]
mov ecx, ebx
call fcn.00401026
test al, al
jne 0x4130fc
lea edi, [esp + 0xfc]
lea eax, [0x514978]
movsd xmm1, qword [edi + 0x10]
mov dword [esp + 0x70], eax
mov eax, 0x51496c
movq xmm0, qword [edi + 0x18]
movsd xmm2, qword [edi]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x1c]
and dword [eax], 0
mov dword [edi], eax
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], ebx
movsd qword [esp + 0x188], xmm1
mov ecx, edi
call section..text
test eax, eax
je 0x4128ea
mov byte [eax], dl
inc dword [esp + 0x1c]
jmp 0x4128d7
cmp dword [esp + 0x1c], 0xc
jne 0x4130fc
lea ebx, [esp + 0x70]
mov ecx, ebx
call fcn.00401026
test al, al
jne 0x4130fc
lea edi, [esp + 0x10]
lea esi, [esp + 0x180]
lea ecx, [esp + 0x1a0]
lea edx, [esp + 0x12c]
mov eax, dword [edi + 8]
movq xmm0, qword [edi]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0x20
mov dword [esp + 0x78], ecx
and dword [esp + 0x7c], 0
mov dword [esp + 0x80], 4
mov ecx, edi
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 ebx
push eax
call fcn.00402e43
pop eax
pop ecx
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x14]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x60], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
cmp esi, dword [esp + 4]
jae 0x4129fe
mov al, 1
cmp ebx, 4
jne 0x4129e4
mov eax, dword [esp]
mov edi, dword [eax + esi*4]
xor eax, eax
movzx ecx, al
mov edx, edi
push 0x511c0c
call fcn.00403514
pop ecx
mov eax, dword [esp + 0x60]
mov dword [eax + esi*4], edi
inc esi
jmp 0x4129cf
lea esi, [esp + 0xc8]
lea ecx, [esp + 0xd4]
lea edi, [esp + 0x70]
lea eax, [esp + 0x130]
lea edx, [esp + 0x13c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0xc
mov dword [esp + 0x78], ecx
and dword [esp + 0x7c], 0
lea esi, [esp + 0x10]
mov dword [esp + 0x80], 4
mov ecx, esi
push edi
push eax
call fcn.00402e43
pop eax
pop ecx
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x24]
mov dword [esp + 0x60], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
cmp edi, dword [esp + 4]
jae 0x412a96
mov al, 1
cmp ebx, 4
jne 0x412a7c
mov eax, dword [esp]
mov esi, dword [eax + edi*4]
xor eax, eax
movzx ecx, al
mov edx, esi
push 0x511c1c
call fcn.00403514
pop ecx
mov eax, dword [esp + 0x60]
mov dword [eax + edi*4], esi
inc edi
jmp 0x412a67
mov al, byte [0x58b039]
cmp al, 0xff
jne 0x412aea
lea esi, [esp + 0x70]
mov ecx, esi
call fcn.004168f5
lea edi, [esp + 0x10]
mov ecx, edi
call fcn.00416912
mov ebx, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, ebx
not eax
test eax, 0xc000000
jne 0x412ad8
mov esi, ecx
call fcn.00403540
not eax
mov ecx, esi
test al, 6
sete al
jmp 0x412ada
xor eax, eax
shr cl, 5
shr ebx, 0x1c
and cl, al
and bl, cl
mov byte [0x58b039], bl
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 0x412b0c
mov byte [esp + eax + 0x50], 0
inc eax
jmp 0x412b00
push 0x10
pop eax
lea esi, [esp + 0x10]
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.00441781
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.004215d9
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov esi, dword [esp + 8]
xor edi, edi
mov dword [esp + 4], eax
add eax, edx
cmp ebx, edi
je 0x412b75
mov cl, byte [esi + edi]
mov byte [eax + edi], cl
inc edi
jmp 0x412b68
mov eax, dword [esp + 4]
mov dword [esp + 0xc], edx
movzx edx, byte [esp + 0x17c]
lea ecx, [eax + edi]
mov eax, dword [esp + 0x12c]
mov dword [esp], edx
test edx, edx
mov dword [esp + 0xec], ecx
push 0x40
pop esi
mov dword [esp + 8], ecx
je 0x412bbb
mov ecx, dword [esp]
mov ebx, esi
sub esi, ecx
cmp dword [esp + 8], esi
jbe 0x412be4
mov ecx, dword [esp + 4]
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 0x413111
mov ecx, dword [esp]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
test cl, cl
je 0x412c56
mov edx, ebx
lea eax, [esp + 0x13c]
sub edx, ecx
add ecx, eax
cmp dword [esp + 8], edx
jae 0x412c36
push 0x5118b0
mov esi, dword [esp + 0xc]
push esi
call fcn.00403261
pop ecx
pop ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x70], edx
mov dword [esp + 0x1ec], esi
sub ecx, edx
add ecx, edi
jne 0x413132
mov esi, dword [esp + 0xc]
xor ecx, ecx
cmp dword [esp + 8], ecx
je 0x412cab
mov dl, byte [eax + ecx]
xor byte [esi + ecx], dl
inc ecx
jmp 0x412c27
mov esi, dword [esp + 0xc]
xor eax, eax
cmp edx, eax
je 0x412c49
mov bl, byte [ecx + eax]
xor byte [esi + eax], bl
inc eax
jmp 0x412c3c
mov eax, dword [esp + 4]
add edx, esi
add eax, dword [esp]
lea eax, [edi + eax - 0x40]
mov ecx, eax
mov dword [esp + 0xbc], eax
and eax, 0x3f
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], edx
mov edi, edx
shr ecx, 6
mov dword [esp], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xf8], ecx
mov al, byte [0x58b039]
mov dword [esp + 4], edx
cmp al, 1
jne 0x412cb9
lea ecx, [esp + 0xfc]
lea edx, [esp + 0xf0]
call fcn.0040458b
jmp 0x412eb3
mov eax, dword [esp]
add eax, dword [esp + 4]
add eax, edi
jmp 0x413061
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 + 0x60], xmm3
movaps xmmword [esp + 0x1d0], xmm3
cmp dword [esp + 0xc4], esi
je 0x412ea4
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x412d1e
mov byte [esp + eax + 0x50], 0
inc eax
jmp 0x412d12
push 0x40
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x234]
push eax
call fcn.005010b0
add esp, 0xc
movaps xmm1, xmmword [esp + 0x1c0]
movaps xmm0, xmmword [esp + 0x1d0]
movaps xmm2, xmmword [esp + 0x1a0]
movaps xmmword [esp + 0x30], xmm1
movaps xmm1, xmmword [esp + 0x1b0]
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x10], xmm2
movaps xmmword [esp + 0x20], xmm1
push 0xa
pop edi
sub edi, 1
jb 0x412dd3
lea ebx, [esp + 0x10]
mov ecx, ebx
call fcn.00404ccc
pshufd xmm0, xmmword [esp + 0x30], 0x39
mov ecx, ebx
movdqa xmmword [esp + 0x30], xmm0
pshufd xmm0, xmmword [esp + 0x40], 0x4e
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x10], 0x93
movdqa xmmword [esp + 0x10], xmm0
call fcn.00404ccc
pshufd xmm0, xmmword [esp + 0x30], 0x93
movdqa xmmword [esp + 0x30], xmm0
pshufd xmm0, xmmword [esp + 0x40], 0x4e
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x10], 0x39
movdqa xmmword [esp + 0x10], xmm0
jmp 0x412d6c
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x412df4
movdqa xmm0, xmmword [esp + eax + 0x1e0]
paddd xmm0, xmmword [esp + eax + 0x50]
movdqa xmmword [esp + eax + 0x50], xmm0
add eax, 0x10
jmp 0x412dd6
movdqa xmm0, xmmword [esp + 0x60]
paddd xmm0, xmmword [0x511580]
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x1d0], xmm0
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x412e2c
movdqa xmm0, xmmword [esp + eax + 0x50]
movdqu xmmword [esp + eax + 0x26c], xmm0
add eax, 0x10
jmp 0x412e14
mov edi, esi
shl edi, 6
add edi, dword [esp + 4]
push 0x40
push edi
lea eax, [esp + 0x1f4]
push eax
call fcn.005010b0
add esp, 0xc
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x412e57
mov byte [esp + eax + 0x50], 0
inc eax
jmp 0x412e4b
push 0x40
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.005010b0
add esp, 0xc
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x412e8a
mov cl, byte [esp + eax + 0x26c]
xor cl, byte [esp + eax + 0x22c]
mov byte [esp + eax + 0xb0], cl
inc eax
jmp 0x412e6e
inc esi
push 0x40
lea eax, [esp + 0x74]
push eax
push edi
call fcn.005010b0
add esp, 0xc
mov edi, dword [esp + 4]
jmp 0x412d02
movdqa xmm0, xmmword [esp + 0x60]
movd dword [esp + 0x12c], xmm0
cmp dword [esp], 0
mov esi, dword [esp + 0xc]
je 0x41305e
mov al, byte [0x58b039]
cmp al, 1
jne 0x412ee4
lea esi, [esp + 0x13c]
lea ecx, [esp + 0xfc]
mov edx, esi
call fcn.00404442
jmp 0x413015
movups xmm0, xmmword [esp + 0xfc]
movups xmm3, xmmword [esp + 0x12c]
movups xmm1, xmmword [esp + 0x10c]
movups xmm2, xmmword [esp + 0x11c]
lea edi, [esp + 0x10]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm1
movaps xmmword [esp + 0x90], xmm2
movaps xmmword [esp + 0xa0], xmm3
movaps xmmword [esp + 0x60], 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 0x412fbc
mov ecx, edi
call fcn.00404ccc
pshufd xmm0, xmmword [esp + 0x30], 0x39
mov ecx, edi
movdqa xmmword [esp + 0x30], xmm0
pshufd xmm0, xmmword [esp + 0x40], 0x4e
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x10], 0x93
movdqa xmmword [esp + 0x10], xmm0
call fcn.00404ccc
pshufd xmm0, xmmword [esp + 0x30], 0x93
movdqa xmmword [esp + 0x30], xmm0
pshufd xmm0, xmmword [esp + 0x40], 0x4e
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x10], 0x39
movdqa xmmword [esp + 0x10], xmm0
jmp 0x412f59
push 0xffffffffffffffc0
pop eax
mov edi, dword [esp + 4]
test eax, eax
je 0x412fe1
movdqa xmm0, xmmword [esp + eax + 0xb0]
paddd xmm0, xmmword [esp + eax + 0x50]
movdqa xmmword [esp + eax + 0x50], xmm0
add eax, 0x10
jmp 0x412fc3
push 0xffffffffffffffc0
pop eax
test eax, eax
je 0x412ffc
movdqa xmm0, xmmword [esp + eax + 0x50]
movdqu xmmword [esp + eax + 0x17c], xmm0
add eax, 0x10
jmp 0x412fe4
movdqa xmm0, xmmword [esp + 0x60]
lea esi, [esp + 0x13c]
movd eax, xmm0
inc eax
mov dword [esp + 0x12c], eax
push 0x40
pop edx
mov ecx, esi
push 0x5118c0
mov esi, dword [esp + 4]
push esi
call fcn.00403261
pop ecx
pop ecx
cmp esi, edx
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x70], edx
jne 0x413132
mov ecx, dword [esp + 0xbc]
mov esi, dword [esp + 0xc]
and ecx, 0xffffffc0
add edi, ecx
xor ecx, ecx
cmp dword [esp], ecx
je 0x41305e
mov dl, byte [eax + ecx]
xor byte [edi + ecx], dl
inc ecx
jmp 0x413050
mov eax, dword [esp]
mov ebx, dword [esp + 8]
mov byte [esp + 0x17c], al
mov ecx, ebx
call fcn.00441781
lea edi, [esp + 0x70]
mov dword [edi], eax
mov dword [edi + 4], edx
push ebx
push esi
push edx
call fcn.005010b0
add esp, 0xc
mov dword [edi + 8], ebx
lea ebx, [esp + 0x10]
mov edx, edi
mov ecx, ebx
call fcn.004037fc
lea esi, [esp + 0x70]
mov edx, ebx
mov ecx, esi
push 0x514978
call fcn.00403470
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.00419104
pop eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xc0]
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.0043e31d
mov ecx, dword [edi]
mov edx, dword [edi + 4]
call fcn.0043e31d
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 0x51197c
call fcn.0050d7c0
pop eax
ud2
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x511bac
push 0x511a5c
lea eax, [esp + 0x18]
push eax
call fcn.0050d740
add esp, 0xc
ud2
and dword [esp + 0x18], 0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1ec]
lea edx, [esp + 0x70]
push eax
call fcn.0050d3e0
jmp 0x41310e