Function at 0x140066c60
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, 8
call fcn.140050720
mov rcx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
sub r8, rcx
sar r8, 2
test r8, r8
je 0x140066cae
lea r8, [r8*4]
mov rdx, rdi
call fcn.140153a80
lea rcx, [rsi + 0x20]
mov edx, reloc.WS2_32.dll_recv
call fcn.140050720
mov rbp, qword [rsi + 0x40]
mov rdx, qword [rsi + 0x38]
mov rcx, rbp
sub rcx, rdx
cmp rcx, 0x40
jbe 0x140066cd6
lea rax, [rdx + 0x40]
jmp 0x140066d13
jae 0x140066d17
mov rax, qword [rsi + 0x48]
sub rax, rdx
cmp rax, 0x40
jae 0x140066cfa
lea r8, [rsp + 0x30]
mov edx, 0x40
lea rcx, [rsi + 0x38]
call fcn.14003b0b0
jmp 0x140066d17
mov edi, 0x40
xor edx, edx
sub rdi, rcx
mov rcx, rbp
mov r8, rdi
call fcn.140154200
lea rax, [rdi + rbp]
mov qword [rsi + 0x40], 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::Salsa20.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 + 0x28]
cmp qword [rcx + 0x20], rax
jne 0x140067176
call fcn.140041540
test rdi, 0xffffffffffffffe7
jne 0x14006740b
cmp rdi, 0x10
je 0x14006740b
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax]
mov dword [rcx + 4], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 4]
mov dword [rcx + 8], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 8]
mov dword [rcx + 0xc], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x10], eax
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx + 8]
sar rax, 2
mov rcx, qword [rbx + 0x20]
mov dword [rcx], 0x61707865
cmp rax, 4
mov rax, qword [rbx + 0x20]
jne 0x140067233
mov dword [rax + 0x14], 0x3120646e
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x28], 0x79622d36
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x3c], 0x6b206574
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 4]
mov dword [rcx + 0x30], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 8]
mov dword [rcx + 0x34], eax
mov rax, qword [rbx + 8]
mov eax, dword [rax + 0xc]
jmp 0x140067281
mov dword [rax + 0x14], 0x3320646e
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x28], 0x79622d32
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x3c], 0x6b206574
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 0x14]
mov dword [rcx + 0x30], eax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 0x18]
mov dword [rcx + 0x34], eax
mov rax, qword [rbx + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbx + 0x20]
mov dword [rcx + 0x38], eax
mov rax, qword [rbx + 0x20]
xor ebp, ebp
mov dword [rax + 0x18], ebp
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x1c], ebp
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x20], ebp
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x24], ebp
mov qword [rbx + 0x50], rbp
test rdi, rdi
jne 0x1400672c2
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x18], ebp
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x1c], ebp
jmp 0x1400673b0
cmp rdi, 8
jne 0x1400672e0
mov rcx, qword [rbx + 0x20]
mov eax, dword [rsi]
mov dword [rcx + 0x18], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rsi + 4]
mov dword [rcx + 0x1c], eax
jmp 0x1400673b0
mov ecx, dword [rsi]
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x18], ecx
mov ecx, dword [rsi + 4]
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x1c], ecx
mov ecx, dword [rsi + 8]
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x20], ecx
mov ecx, dword [rsi + 0xc]
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x24], ecx
mov edx, 4
lea ecx, [rdx + 4]
call fcn.140041590
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call fcn.140066a60
mov rcx, qword [rbx + 0x20]
mov eax, dword [rdi]
mov dword [rcx + 4], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rdi + 4]
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rdi + 8]
mov dword [rcx + 0xc], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rdi + 0xc]
mov dword [rcx + 0x10], eax
mov ecx, dword [rsi + 0x10]
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x18], ecx
mov ecx, dword [rsi + 0x14]
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x1c], ecx
mov rcx, qword [rbx + 0x20]
mov eax, dword [rdi + 0x10]
mov dword [rcx + 0x2c], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rdi + 0x14]
mov dword [rcx + 0x30], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rdi + 0x18]
mov dword [rcx + 0x34], eax
mov r8, qword [rbx + 0x20]
mov eax, dword [rdi + 0x1c]
mov dword [r8 + 0x38], eax
test rdi, rdi
je 0x1400673a8
mov edx, 8
lea r8d, [rdx - 4]
mov rcx, rdi
call fcn.140041650
nop
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x20], ebp
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x24], ebp
mov r8d, reloc.WS2_32.dll_sendto
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x38]
call fcn.140066d90
mov rax, qword [rbx + 0x20]
inc dword [rax + 0x20]
mov rcx, qword [rbx + 0x20]
mov eax, ebp
cmp dword [rcx + 0x20], eax
sete al
add dword [rcx + 0x24], eax
mov qword [rbx + 0x50], 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 + 0x58]
mov rcx, rbx
call fcn.140066d40
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140045420
lea rdx, [0x1401cbcb8]
lea rcx, [rsp + 0x20]
call fcn.140111204
int3