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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, 0x3320646e
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], eax
mov eax, 0x79622d32
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, 0x61707865
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x14]
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], edi
mov edi, dword [edx + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], 0x6b206574
mov dword [ebp - 0x34], 0xa
jmp 0x401677
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add ebx, eax
xor ecx, ebx
rol ecx, 0x10
add edx, ecx
mov eax, edx
mov dword [ebp - 0x10], edx
xor eax, dword [ebp - 0x24]
rol eax, 0xc
add ebx, eax
xor ecx, ebx
mov dword [ebp - 0x14], ebx
rol ecx, 8
add edx, ecx
mov ebx, edx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x1c]
xor ebx, eax
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
xor esi, edx
rol esi, 0x10
add eax, esi
rol ebx, 7
mov dword [ebp - 0xc], eax
xor eax, dword [ebp - 0x28]
rol eax, 0xc
add edx, eax
xor esi, edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0xc]
rol esi, 8
add edx, esi
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x20]
add esi, dword [ebp - 0x2c]
xor edi, esi
mov dword [ebp - 0xc], edx
xor edx, eax
rol edi, 0x10
mov eax, dword [ebp + 8]
add eax, edi
rol edx, 7
mov dword [ebp + 8], eax
xor eax, dword [ebp - 0x2c]
rol eax, 0xc
add esi, eax
add dword [ebp - 0x14], edx
xor edi, esi
mov dword [ebp - 0x20], esi
mov esi, dword [ebp + 8]
rol edi, 8
add esi, edi
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp + 8], esi
xor esi, eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x30]
xor edi, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
rol edi, 0x10
add eax, edi
rol esi, 7
mov dword [ebp - 4], eax
xor eax, dword [ebp - 0x30]
rol eax, 0xc
add dword [ebp - 8], eax
xor edi, dword [ebp - 8]
rol edi, 8
add dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 4]
xor edi, eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x14]
rol eax, 0x10
rol edi, 7
add dword [ebp + 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
xor eax, edx
mov edx, dword [ebp - 0x18]
rol eax, 0xc
add dword [ebp - 0x14], eax
xor edx, dword [ebp - 0x14]
rol edx, 8
add dword [ebp + 8], edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
xor edx, eax
mov eax, dword [ebp - 0x1c]
add eax, esi
rol edx, 7
xor ecx, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
rol ecx, 0x10
add eax, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, esi
mov esi, dword [ebp - 0x1c]
rol eax, 0xc
add esi, eax
xor ecx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 4]
rol ecx, 8
add esi, ecx
mov edx, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x24]
xor edx, eax
mov eax, dword [ebp - 0x20]
add eax, edi
rol edx, 7
xor esi, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
rol esi, 0x10
add eax, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], eax
xor eax, edi
mov edi, dword [ebp - 0x20]
rol eax, 0xc
add edi, eax
xor esi, edi
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x10]
rol esi, 8
add edi, esi
mov edx, edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x38]
xor edx, eax
mov eax, dword [ebp - 8]
add eax, ebx
rol edx, 7
xor edi, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
rol edi, 0x10
add eax, edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], eax
xor eax, ebx
mov ebx, dword [ebp - 8]
rol eax, 0xc
add ebx, eax
xor edi, ebx
mov dword [ebp - 8], ebx
rol edi, 8
add dword [ebp - 0xc], edi
mov edx, dword [ebp - 0xc]
xor edx, eax
mov eax, edx
mov dword [ebp - 0x24], edx
rol eax, 7
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x34], 1
mov edx, dword [ebp - 0x18]
jne 0x401674
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x18], edi
pop edi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x14], esi
pop esi
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], eax
xor eax, eax
mov dword [ecx + 0x1c], edx
pop ebx
mov esp, ebp
pop ebp
ret