Function at 0x14013d4c0
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
movaps xmmword [rsp + 0x450], xmm6
mov sil, 1
cmp r8, 0x20
jne 0x14013da19
cmp qword [rsp + 0x4d0], 0x40
jne 0x14013da19
mov rbx, rdx
mov r14, r9
mov rdi, qword [rsp + 0x4c8]
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x30]
call sym.ring::ec::curve25519::scalar::Scalar::from_bytes_checked::h84ec521d932518fb
cmp byte [rsp + 0x30], 0
jne 0x14013da19
movdqu xmm0, xmmword [rsp + 0x31]
movdqu xmm1, xmmword [rsp + 0x41]
movdqa xmmword [rsp + 0x330], xmm1
movdqa xmmword [rsp + 0x320], xmm0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x50], 0
movups xmmword [rsp + 0x58], xmm6
movups xmmword [rsp + 0x68], xmm6
mov qword [rsp + 0x78], 0
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
lea rcx, [rsp + 0x30]
mov rdx, rbx
call sym.ring_core_0_17_8_x25519_ge_frombytes_vartime
cmp eax, 1
jne 0x14013da19
mov r15, qword [rsp + 0x4c0]
lea r12, [rsp + 0x3b0]
lea rdx, [rsp + 0x30]
mov r8d, 0xa0
mov rcx, r12
call sym.memcpy
mov rcx, r12
call sym.ring_core_0_17_8_x25519_fe_neg
lea rcx, [rsp + 0x428]
call sym.ring_core_0_17_8_x25519_fe_neg
movups xmm0, xmmword [0x1403697a0]
movups xmmword [rsp + 0x168], xmm0
movups xmm0, xmmword [0x140369790]
movups xmmword [rsp + 0x158], xmm0
movups xmm0, xmmword [0x140369780]
movups xmmword [rsp + 0x148], xmm0
movups xmm0, xmmword [0x140369770]
movups xmmword [rsp + 0x138], xmm0
lea rax, [0x140369740]
movups xmmword [rsp + 0x180], xmm6
movups xmmword [rsp + 0x190], xmm6
movups xmmword [rsp + 0x1a0], xmm6
movups xmmword [rsp + 0x1b0], xmm6
movups xmmword [rsp + 0x1c0], xmm6
movups xmmword [rsp + 0x1d0], xmm6
movups xmmword [rsp + 0x1e0], xmm6
movups xmmword [rsp + 0x1f0], xmm6
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x178], 0
mov qword [rsp + 0x200], 0
lea r12, [rsp + 0x130]
mov r8d, 0x20
mov rcx, r12
mov rdx, rdi
call sym.ring::digest::Context::update::h618cffff1b46597a
mov r8d, 0x20
mov rcx, r12
mov rdx, rbx
call sym.ring::digest::Context::update::h618cffff1b46597a
mov rcx, r12
mov rdx, r14
mov r8, r15
call sym.ring::digest::Context::update::h618cffff1b46597a
lea rcx, [rsp + 0x30]
mov r8d, 0xd8
mov rdx, r12
call sym.memcpy
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0x250], xmm0
movups xmm0, xmmword [rsp + 0x130]
movups xmm1, xmmword [rsp + 0x140]
movups xmm2, xmmword [rsp + 0x150]
movups xmm3, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x240], xmm3
movaps xmmword [rsp + 0x230], xmm2
movaps xmmword [rsp + 0x220], xmm1
movaps xmmword [rsp + 0x210], xmm0
cmp r9, 0x81
jae 0x14013da34
lea r8, [rsp + 0x80]
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x368]
lea rdx, [rsp + 0x210]
call sym._ZN4ring6digest12BlockContext6finish17h7aa756d6c830ca19E.llvm.15867344178575990571
mov rax, qword [rsp + 0x368]
mov rax, qword [rax + 0x10]
cmp rax, 0x41
jae 0x14013da48
cmp rax, 0x40
jne 0x14013da5c
movups xmm0, xmmword [rsp + 0x370]
movups xmm1, xmmword [rsp + 0x380]
movups xmm2, xmmword [rsp + 0x390]
movups xmm3, xmmword [rsp + 0x3a0]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call sym.ring_core_0_17_8_x25519_sc_reduce
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x350], xmm1
movaps xmmword [rsp + 0x340], xmm0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x190], xmm6
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x160], xmm6
movaps xmmword [rsp + 0x150], xmm6
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
mov qword [rsp + 0x1a0], 0
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x340]
lea r8, [rsp + 0x3b0]
lea r9, [rsp + 0x320]
call sym.ring_core_0_17_8_x25519_ge_double_scalarmult_vartime
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [rsp + 0x190]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0x180]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [rsp + 0x130]
movaps xmm1, xmmword [rsp + 0x140]
movaps xmm2, xmmword [rsp + 0x150]
movaps xmm3, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x280], rax
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x270], xmm0
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x260], xmm0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x2a0], xmm1
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x2d0], xmm6
movaps xmmword [rsp + 0x2c0], xmm6
mov qword [rsp + 0x2e0], 0
lea rbx, [rsp + 0x2c0]
lea rdx, [rsp + 0x290]
mov rcx, rbx
call sym.ring_core_0_17_8_x25519_fe_invert
movaps xmmword [rsp + 0x300], xmm6
movaps xmmword [rsp + 0x2f0], xmm6
mov qword [rsp + 0x310], 0
lea r14, [rsp + 0x2f0]
lea rdx, [rsp + 0x30]
mov rcx, r14
mov r8, rbx
call sym.ring_core_0_17_8_x25519_fe_mul_ttt
movaps xmmword [rsp + 0x220], xmm6
movaps xmmword [rsp + 0x210], xmm6
mov qword [rsp + 0x230], 0
lea r15, [rsp + 0x210]
lea rdx, [rsp + 0x260]
mov rcx, r15
mov r8, rbx
call sym.ring_core_0_17_8_x25519_fe_mul_ttt
lea rcx, [rsp + 0x110]
mov rdx, r15
call sym.ring_core_0_17_8_x25519_fe_tobytes
mov rcx, r14
call sym.ring_core_0_17_8_x25519_fe_isnegative
shl al, 7
xor byte [rsp + 0x12f], al
movdqa xmm0, xmmword [rsp + 0x120]
movdqa xmmword [rsp + 0x220], xmm0
movdqa xmm1, xmmword [rsp + 0x110]
movdqa xmmword [rsp + 0x210], xmm1
movdqu xmm2, xmmword [rdi]
movdqu xmm3, xmmword [rdi + 0x10]
pcmpeqb xmm3, xmm0
pcmpeqb xmm2, xmm1
pand xmm2, xmm3
pmovmskb eax, xmm2
cmp eax, 0xffff
jne 0x14013da19
xor esi, esi
mov eax, esi
movaps xmm6, xmmword [rsp + 0x450]
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x140369340]
mov edx, pe_nt_image_headers64
mov rcx, r9
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
lea r8, [0x14036a228]
mov edx, 0x40
mov rcx, rax
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
lea r8, str._home_kali_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_ec_curve25519_scalar.rs
mov ecx, 0x40
mov rdx, rax
call sym.core::slice::__impl__T__::copy_from_slice::len_mismatch_fail::hb35627ec2fcf69a1
int3