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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
shr r8, 2
mov rdi, rdx
mov rsi, rcx
mov rdx, r8
add rcx, 0x10
call fcn.140050720
mov rcx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
sub r8, rcx
sar r8, 2
test r8, r8
je 0x140065dde
lea r8, [r8*4]
mov rdx, rdi
call fcn.140153a80
lea rcx, [rsi + 0x28]
mov edx, reloc.WS2_32.dll_recv
call fcn.140050720
mov rbp, qword [rsi + 0x48]
mov ebx, 0x200
mov rdx, qword [rsi + 0x40]
mov rcx, rbp
sub rcx, rdx
cmp rcx, rbx
jbe 0x140065e0d
lea rax, [rdx + 0x200]
jmp 0x140065e42
jae 0x140065e46
mov rax, qword [rsi + 0x50]
sub rax, rdx
cmp rax, rbx
jae 0x140065e2e
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsi + 0x40]
call fcn.14003b0b0
jmp 0x140065e46
sub rbx, rcx
xor edx, edx
mov r8, rbx
mov rcx, rbp
call fcn.140154200
lea rax, [rbx + rbp]
mov qword [rsi + 0x48], rax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp method.Botan::ChaCha.virtual_56
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1401ce680]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rcx + 0x30]
cmp qword [rcx + 0x28], rax
jne 0x140066336
call fcn.140041540
cmp rdi, 0x18
ja 0x1400665f6
mov eax, 0x1001101
bt rax, rdi
jae 0x1400665f6
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax]
mov dword [rcx + 0x10], eax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 4]
mov dword [rcx + 0x14], eax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 8]
mov dword [rcx + 0x18], eax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x1c], eax
mov rax, qword [rbx + 0x18]
sub rax, qword [rbx + 0x10]
sar rax, 2
mov rcx, qword [rbx + 0x28]
mov dword [rcx], 0x61707865
cmp rax, 4
mov rax, qword [rbx + 0x28]
jne 0x1400663f5
mov dword [rax + 4], 0x3120646e
mov rax, qword [rbx + 0x28]
mov dword [rax + 8], 0x79622d36
mov rax, qword [rbx + 0x28]
mov dword [rax + 0xc], 0x6b206574
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax]
mov dword [rcx + 0x20], eax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 4]
mov dword [rcx + 0x24], eax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 8]
mov dword [rcx + 0x28], eax
mov rax, qword [rbx + 0x10]
mov eax, dword [rax + 0xc]
jmp 0x140066443
mov dword [rax + 4], 0x3320646e
mov rax, qword [rbx + 0x28]
mov dword [rax + 8], 0x79622d32
mov rax, qword [rbx + 0x28]
mov dword [rax + 0xc], 0x6b206574
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x20], eax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 0x14]
mov dword [rcx + 0x24], eax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rcx + 0x28], eax
mov rax, qword [rbx + 0x10]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbx + 0x28]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx + 0x28]
xor ebp, ebp
mov dword [rax + 0x30], ebp
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x34], ebp
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x38], ebp
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x3c], ebp
mov qword [rbx + 0x58], rbp
test rdi, rdi
jne 0x140066484
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x38], ebp
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x3c], ebp
jmp 0x1400665be
cmp rdi, 8
jne 0x1400664a2
mov rcx, qword [rbx + 0x28]
mov eax, dword [rsi]
mov dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rsi + 4]
mov dword [rcx + 0x3c], eax
jmp 0x1400665be
cmp rdi, 0xc
jne 0x1400664ca
mov rcx, qword [rbx + 0x28]
mov eax, dword [rsi]
mov dword [rcx + 0x34], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rsi + 4]
mov dword [rcx + 0x38], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rsi + 8]
mov dword [rcx + 0x3c], eax
jmp 0x1400665be
cmp rdi, 0x18
jne 0x1400665be
mov ecx, dword [rsi]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x30], ecx
mov ecx, dword [rsi + 4]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x34], ecx
mov ecx, dword [rsi + 8]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x38], ecx
mov ecx, dword [rsi + 0xc]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x3c], ecx
lea edx, [rdi - 0x14]
lea ecx, [rdi - 0x10]
call fcn.140041590
mov rdi, rax
mov qword [rsp + 0x20], rax
lea rcx, [rax + 0x20]
mov qword [rsp + 0x30], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rsp + 0x28], rcx
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call fcn.140065ac0
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi]
mov dword [rcx + 0x10], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi + 4]
mov dword [rcx + 0x14], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi + 8]
mov dword [rcx + 0x18], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi + 0xc]
mov dword [rcx + 0x1c], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi + 0x10]
mov dword [rcx + 0x20], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi + 0x14]
mov dword [rcx + 0x24], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi + 0x18]
mov dword [rcx + 0x28], eax
mov rcx, qword [rbx + 0x28]
mov eax, dword [rdi + 0x1c]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x30], ebp
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x34], ebp
mov ecx, dword [rsi + 0x10]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x38], ecx
mov ecx, dword [rsi + 0x14]
mov rax, qword [rbx + 0x28]
mov dword [rax + 0x3c], ecx
test rdi, rdi
je 0x1400665be
mov edx, 8
lea r8d, [rdx - 4]
mov rcx, rdi
call fcn.140041650
nop
mov r9, qword [rbx + 8]
mov r8, qword [rbx + 0x28]
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
call fcn.140065330
mov qword [rbx + 0x58], rbp
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010f1d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140065e90
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140045420
lea rdx, [0x1401cbcb8]
lea rcx, [rsp + 0x40]
call fcn.140111204
int3