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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x61707865
push edi
mov edi, 0x3320646e
mov dword [ebp - 0x1c], 0x79622d32
mov dword [ebp - 0x24], 0x6b206574
movzx ecx, byte [esi + 3]
shl ecx, 8
movzx eax, byte [esi + 2]
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 6]
mov dword [ebp - 0x38], ecx
movzx ecx, byte [esi + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xa]
mov dword [ebp - 0x28], ecx
movzx ecx, byte [esi + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x12]
mov dword [ebp - 0x34], ecx
movzx ecx, byte [esi + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x16]
mov dword [ebp + 8], ecx
movzx ecx, byte [esi + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1a]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [esi + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x3c], 0xa
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1e]
mov dword [ebp - 4], ecx
movzx ecx, byte [esi + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
movzx esi, byte [edx + 0xb]
movzx eax, byte [edx + 2]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 3]
shl ecx, 8
or ecx, eax
shl esi, 8
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
or esi, eax
mov dword [ebp - 0xc], ecx
movzx eax, byte [edx + 9]
movzx ecx, byte [edx + 0xe]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 8]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 0xf]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 0xd]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 0xc]
mov edx, dword [ebp - 0x2c]
shl eax, 8
or eax, ecx
jmp 0x419259
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
add ebx, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
xor edx, ebx
add edi, dword [ebp - 0x28]
rol edx, 0x10
add ecx, edx
mov dword [ebp + 8], ecx
xor ecx, dword [ebp - 0x38]
rol ecx, 0xc
add ebx, ecx
xor edx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
rol edx, 8
add ebx, edx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0xc]
xor edx, edi
mov dword [ebp + 8], ebx
xor ebx, ecx
rol edx, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, edx
rol ebx, 7
mov dword [ebp - 0x10], ecx
xor ecx, dword [ebp - 0x28]
rol ecx, 0xc
add edi, ecx
xor edx, edi
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x10]
rol edx, 8
add edi, edx
mov dword [ebp - 0xc], edx
mov edx, edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
xor edx, ecx
add edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor esi, edi
rol esi, 0x10
add ecx, esi
rol edx, 7
mov dword [ebp - 4], ecx
xor ecx, dword [ebp - 0x30]
rol ecx, 0xc
add edi, ecx
xor esi, edi
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 4]
rol esi, 8
add edi, esi
mov dword [ebp - 0x20], esi
mov esi, edi
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x24]
xor esi, ecx
add edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
xor eax, edi
rol eax, 0x10
add ecx, eax
rol esi, 7
mov dword [ebp - 8], ecx
xor ecx, dword [ebp - 0x34]
rol ecx, 0xc
add edi, ecx
xor eax, edi
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 8]
rol eax, 8
add edi, eax
mov dword [ebp - 8], edi
xor edi, ecx
mov ecx, dword [ebp - 0x14]
add ecx, edx
rol edi, 7
xor eax, ecx
mov dword [ebp - 0x14], ecx
rol eax, 0x10
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
xor ecx, edx
mov edx, dword [ebp - 0x14]
rol ecx, 0xc
add edx, ecx
xor eax, edx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
rol eax, 8
add edx, eax
mov dword [ebp - 4], edx
xor edx, ecx
mov ecx, dword [ebp - 0x18]
add ecx, esi
rol edx, 7
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x2c]
xor edx, ecx
mov ecx, dword [ebp - 8]
rol edx, 0x10
add ecx, edx
mov dword [ebp - 8], ecx
xor ecx, esi
mov esi, dword [ebp - 0x18]
rol ecx, 0xc
add esi, ecx
xor edx, esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 8]
rol edx, 8
add esi, edx
mov dword [ebp - 8], esi
xor esi, ecx
mov ecx, dword [ebp - 0xc]
rol esi, 7
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x1c]
add esi, edi
xor ecx, esi
rol ecx, 0x10
add dword [ebp + 8], ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
xor ecx, edi
mov edi, dword [ebp + 8]
rol ecx, 0xc
add esi, ecx
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0xc]
xor esi, dword [ebp - 0x1c]
rol esi, 8
add edi, esi
mov dword [ebp - 0xc], esi
mov esi, edi
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0x10]
xor esi, ecx
mov ecx, dword [ebp - 0x20]
rol esi, 7
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x24]
add esi, ebx
xor ecx, esi
rol ecx, 0x10
mov dword [ebp - 0x20], ecx
add edi, ecx
mov ecx, edi
xor ecx, ebx
mov ebx, dword [ebp - 0x20]
rol ecx, 0xc
add esi, ecx
xor ebx, esi
mov dword [ebp - 0x24], esi
rol ebx, 8
add edi, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], edi
mov esi, edi
mov edi, dword [ebp - 0x18]
xor esi, ecx
rol esi, 7
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], esi
jne 0x419253
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov byte [esi], cl
shr ecx, 8
mov byte [esi + 1], cl
shr ecx, 8
mov byte [esi + 2], cl
shr ecx, 8
mov byte [esi + 3], cl
mov ecx, edi
mov byte [esi + 4], cl
shr ecx, 8
mov byte [esi + 5], cl
shr ecx, 8
mov byte [esi + 6], cl
shr ecx, 8
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0x1c]
mov byte [esi + 8], cl
shr ecx, 8
mov byte [esi + 9], cl
shr ecx, 8
mov byte [esi + 0xa], cl
shr ecx, 8
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0x24]
mov byte [esi + 0xc], cl
shr ecx, 8
mov byte [esi + 0xd], cl
shr ecx, 8
mov byte [esi + 0xe], cl
shr ecx, 8
mov byte [esi + 0xf], cl
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x18], bl
mov byte [esi + 0x1c], al
mov byte [esi + 0x10], dl
mov byte [esi + 0x14], cl
shr ebx, 8
shr edx, 8
shr ecx, 8
shr eax, 8
mov byte [esi + 0x19], bl
mov byte [esi + 0x1d], al
mov byte [esi + 0x11], dl
mov byte [esi + 0x15], cl
shr ebx, 8
shr edx, 8
shr ecx, 8
shr eax, 8
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1e], al
mov byte [esi + 0x12], dl
mov byte [esi + 0x16], cl
shr ebx, 8
shr edx, 8
shr ecx, 8
shr eax, 8
pop edi
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1f], al
xor eax, eax
mov byte [esi + 0x13], dl
mov byte [esi + 0x17], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret