Function at 0x596920
Capabilities:
Encrypt data using speck

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movdqa xmm0, xmmword [rcx]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x00724790]
mov rsi, rdx
pshufd xmm2, xmm0, 0xee
pxor xmm2, xmmword [0x007247a0]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
movzx edi, byte [rdx]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call sym._ZN71__LT_core..hash..sip..Hasher_LT_S_GT__u20_as_u20_core..hash..Hasher_GT_5write17h82f678dc5be1dd49E.llvm.111492992087594525
test rdi, rdi
je 0x5969e3
movzx edi, byte [rsi + 1]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call sym._ZN71__LT_core..hash..sip..Hasher_LT_S_GT__u20_as_u20_core..hash..Hasher_GT_5write17h82f678dc5be1dd49E.llvm.111492992087594525
add rsi, 2
test rdi, rdi
je 0x596c18
mov qword [rsp + 0x20], 0x10
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rdi
call sym._ZN71__LT_std..hash..random..DefaultHasher_u20_as_u20_core..hash..Hasher_GT_5write17h52fec5d01fb3d61fE.12495
mov r8d, 0x10
jmp 0x596c3f
mov r8, qword [rsi + 0x18]
test r8, r8
je 0x596c72
mov rsi, qword [rsi + 0x10]
add r8, rsi
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x68]
mov r11, qword [rsp + 0x48]
mov r10, qword [rsp + 0x40]
jmp 0x596a44
add rbx, 4
add r9, 4
mov r15, r12
cmp rsi, r8
je 0x596c4f
movzx eax, byte [rsi]
test al, al
js 0x596a50
inc rsi
jmp 0x596ac0
mov ecx, eax
and ecx, 0x1f
movzx r14d, byte [rsi + 1]
and r14d, 0x3f
cmp al, 0xdf
jbe 0x596a99
movzx ebp, byte [rsi + 2]
shl r14d, 6
and ebp, 0x3f
or ebp, r14d
cmp al, 0xf0
jb 0x596aa7
movzx eax, byte [rsi + 3]
and ecx, 7
shl ecx, 0x12
shl ebp, 6
and eax, 0x3f
or eax, ebp
or eax, ecx
cmp eax, 0x110000
je 0x596c4c
add rsi, 4
jmp 0x596ac0
add rsi, 2
shl ecx, 6
or ecx, r14d
mov eax, ecx
jmp 0x596ac0
add rsi, 3
shl ecx, 0xc
or ebp, ecx
mov eax, ebp
nop word cs:[rax + rax]
lea ecx, [rax - 0x41]
mov ebp, eax
or ebp, 0x20
cmp ecx, 0x1a
cmovae ebp, eax
mov dword [rsp + 0x20], ebp
mov r14d, ebp
test rbx, rbx
je 0x596bb0
mov r13d, 8
sub r13, rbx
xor eax, eax
cmp r13, 4
mov ebp, 4
cmovb rbp, r13
mov r12d, 0
cmovae r12, r14
setae al
shl eax, 2
lea rcx, [rax + 1]
cmp rcx, rbp
jae 0x596b25
movzx edi, word [rsp + rax + 0x20]
lea ecx, [rax*8]
shl rdi, cl
or r12, rdi
or rax, 2
cmp rax, rbp
jae 0x596b3a
movzx edi, byte [rsp + rax + 0x20]
shl eax, 3
mov ecx, eax
shl rdi, cl
or r12, rdi
lea ecx, [rbx*8]
shl r12, cl
or r12, r15
cmp r13, 4
ja 0x596a30
add rdx, r10
rol r10, 0xd
xor r11, r12
xor r10, rdx
rol rdx, 0x20
mov rax, qword [rsp + 0x28]
add rax, r11
rol r11, 0x10
xor r11, rax
add rdx, r11
rol r11, 0x15
xor r11, rdx
add rax, r10
rol r10, 0x11
xor r10, rax
rol rax, 0x20
mov qword [rsp + 0x28], rax
xor rdx, r12
cmp rbx, 8
je 0x596bb0
add rbx, 0xfffffffffffffffc
xor r14d, r14d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jb 0x596bc9
jmp 0x596be8
mov ebx, 4
xor r13d, r13d
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rbx
jae 0x596be8
lea rcx, [rsp + rax]
add rcx, 0x20
movzx edi, word [r13 + rcx]
lea ecx, [rax*8]
shl rdi, cl
or r14, rdi
or rax, 2
cmp rax, rbx
jae 0x596c10
add r13, rax
movzx r12d, byte [rsp + r13 + 0x20]
shl eax, 3
mov ecx, eax
shl r12, cl
or r12, r14
jmp 0x596a34
mov r12, r14
jmp 0x596a34
mov qword [rsp + 0x20], 4
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rdi
call sym._ZN71__LT_std..hash..random..DefaultHasher_u20_as_u20_core..hash..Hasher_GT_5write17h52fec5d01fb3d61fE.12495
mov r8d, 4
mov rcx, rdi
mov rdx, rsi
call sym._ZN71__LT_std..hash..random..DefaultHasher_u20_as_u20_core..hash..Hasher_GT_5write17h52fec5d01fb3d61fE.12495
jmp 0x596c72
mov r12, r15
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], r10
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
add rax, rcx
rol rcx, 0xd
xor rdx, r9
xor rcx, rax
rol rax, 0x20
mov r8, qword [rsp + 0x38]
add r8, rdx
rol rdx, 0x10
xor rdx, r8
add rax, rdx
rol rdx, 0x15
add r8, rcx
rol rcx, 0x11
xor rdx, rax
xor rcx, r8
rol r8, 0x20
xor rax, r9
add rax, rcx
rol rcx, 0xd
xor rcx, rax
rol rax, 0x20
xor r8, 0xff
add r8, rdx
rol rdx, 0x10
xor rdx, r8
add rax, rdx
rol rdx, 0x15
add r8, rcx
rol rcx, 0x11
xor rcx, r8
rol r8, 0x20
xor rdx, rax
add rax, rcx
rol rcx, 0xd
xor rcx, rax
rol rax, 0x20
add r8, rdx
rol rdx, 0x10
xor rdx, r8
add rax, rdx
rol rdx, 0x15
add r8, rcx
rol rcx, 0x11
xor rcx, r8
rol r8, 0x20
xor rdx, rax
add rax, rcx
rol rcx, 0xd
add r8, rdx
rol rdx, 0x10
xor rdx, r8
rol rdx, 0x15
xor rcx, rax
add r8, rcx
rol rcx, 0x11
mov rax, r8
rol rax, 0x20
xor rax, rcx
xor rax, rdx
xor rax, r8
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret