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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x472128]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x455390]
mov eax, dword [ebp + 8]
paddd xmm0, xmmword [0x4553a0]
mov dword [ebp - 0x128], eax
movups xmmword [ebp - 0x14], xmm0
test eax, eax
je 0x409ed4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409ee5
cmp dword [ebp + 0x10], 0x20
jne 0x409ef6
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x409f07
cmp dword [ebp + 0x18], 0x18
jne 0x409f18
mov eax, dword [ebp + 0x1c]
test eax, eax
push ebx
mov ebx, 0x14
cmovne ebx, eax
mov dword [ebp - 0x12c], ebx
push esi
push edi
test bl, 1
jne 0x409f29
mov eax, dword [0x4552e4]
mov dword [ebp - 0x110], eax
mov eax, dword [0x4552e8]
mov dword [ebp - 0xfc], eax
mov eax, dword [0x4552ec]
mov dword [ebp - 0xe8], eax
mov eax, dword [ecx]
mov dword [ebp - 0x120], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x11c], eax
mov eax, dword [ecx + 8]
mov edi, dword [str.expand_32_byte_k]
mov dword [ebp - 0x118], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xf8], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0xf4], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0xf0], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0xec], eax
mov eax, dword [edx]
mov dword [ebp - 0x10c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x108], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x104], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x124]
push ebx
push eax
mov dword [ebp - 0x124], edi
call fcn.00409a70
mov ebx, dword [ebp - 0x128]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + ecx*4 - 0x124]
mov dword [ebx], edi
mov edi, dword [0x4552e4]
mov eax, dword [ebp + eax*4 - 0x124]
mov esi, dword [ebp + esi*4 - 0x124]
mov dword [ebx + 0x14], edi
mov edi, dword [0x4552e8]
mov edx, dword [ebp + edx*4 - 0x124]
mov dword [ebx + 0x28], edi
mov edi, dword [0x4552ec]
mov dword [ebx + 0x3c], edi
mov edi, dword [ebp - 0x124]
mov dword [ebx + 4], edi
mov edi, dword [ebp - 0x110]
mov dword [ebx + 8], edi
mov edi, dword [ebp - 0xfc]
mov dword [ebx + 0xc], edi
mov edi, dword [ebp - 0xe8]
mov dword [ebx + 0x10], edi
mov edi, ebx
mov ebx, dword [ebp - 0x12c]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x2c], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x30], edx
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x1c], eax
xor eax, eax
mov dword [edi + 0x88], ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421234
mov esp, ebp
pop ebp
ret
push 0x45
push str.f:_sourcecryptlibtomcrypt_src_stream_salsa20xsalsa20_setup.c
push str.st___NULL
call fcn.0040c100
push 0x46
push str.f:_sourcecryptlibtomcrypt_src_stream_salsa20xsalsa20_setup.c
push str.key___NULL
call fcn.0040c100
push 0x47
push str.f:_sourcecryptlibtomcrypt_src_stream_salsa20xsalsa20_setup.c
push str.keylen__32
call fcn.0040c100
push 0x48
push str.f:_sourcecryptlibtomcrypt_src_stream_salsa20xsalsa20_setup.c
push str.nonce___NULL
call fcn.0040c100
push 0x49
push str.f:_sourcecryptlibtomcrypt_src_stream_salsa20xsalsa20_setup.c
push str.noncelen__24
call fcn.0040c100
push 0x4b
push str.f:_sourcecryptlibtomcrypt_src_stream_salsa20xsalsa20_setup.c
push str.rounds___2__0
call fcn.0040c100
int3