Function at 0x1400aabb0
Capabilities:
Encrypt data using speck

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, rcx
mov rdi, qword [rcx + 0x30]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x1400aac35
cmp byte [rsi], 2
jb 0x1400aac00
mov rdi, qword [rsi + 8]
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x18]
mov r8, qword [rdi + 0x10]
call qword [rax + 0x18]
mov rcx, qword [0x1402f3170]
xor edx, edx
mov r8, rdi
call fcn.1401d7c44
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
lea rcx, [rsi + 0x28]
mov r8, qword [rsi + 0x20]
call qword [rax + 0x18]
mov r8, qword [rsi + 0x30]
lea rax, [r8 + 1]
cmp rax, 2
jae 0x1400aac7d
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi]
nop dword [rax + rax]
test rax, rax
je 0x1400aabd4
js 0x1400ab104
lea rcx, [rax + 1]
lock cmpxchg qword [rdi], rcx
jne 0x1400aac40
lea rbx, [rdi + 0x10]
mov cl, 1
xor eax, eax
lock cmpxchg byte [rdi + 0x10], cl
jne 0x1400aac94
mov rax, qword [0x1402f31c8]
shl rax, 1
test rax, rax
je 0x1400aacab
call fcn.140171c20
xor al, 1
jmp 0x1400aacad
lock dec qword [r8 + 8]
jne 0x1400aac21
mov rcx, qword [0x1402f3170]
xor edx, edx
call fcn.1401d7c44
jmp 0x1400aac21
mov rcx, rbx
call fcn.140171b70
mov rax, qword [0x1402f31c8]
shl rax, 1
test rax, rax
jne 0x1400aac74
xor eax, eax
movabs r14, 0x7fffffffffffffff
movzx ecx, byte [rdi + 0x11]
xor edx, edx
test cl, cl
setne dl
mov qword [rsp + 0xa8], rbx
mov byte [rsp + 0xb0], al
mov qword [rsp + 0xa0], rdx
je 0x1400aace8
test al, al
jne 0x1400ab0bb
jmp 0x1400ab0a2
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov r8, rsi
call fcn.1400a8120
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x30]
mov qword [rsp + 0x40], rdx
mov r8, rdx
and r8, rax
shr rax, 0x39
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
movzx eax, byte [rsi]
mov rdx, qword [rsi + 8]
mov qword [rsp + 0x60], rdx
movzx edx, byte [rsi + 1]
mov byte [rsp + 0x2f], dl
mov rdx, qword [rsi + 0x18]
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0x30], rsi
mov rdx, qword [rsi + 0x20]
mov qword [rsp + 0x68], rdx
xor edx, edx
pcmpeqd xmm1, xmm1
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0xb8], rdx
movdqu xmm2, xmmword [rcx + r8]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb r9d, xmm3
test r9d, r9d
jne 0x1400aaddf
pcmpeqb xmm2, xmm1
pmovmskb edx, xmm2
test edx, edx
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xb8]
jne 0x1400ab02b
add r8, rdx
add r8, 0x10
add rdx, 0x10
and r8, qword [rsp + 0x40]
jmp 0x1400aad67
test dl, dl
je 0x1400ab10b
lea r9d, [rbx - 1]
and r9d, ebx
test r9w, r9w
mov rcx, r13
mov r8, rsi
mov eax, dword [rsp + 0x4c]
je 0x1400aad87
mov ebx, r9d
tzcnt r12d, ebx
mov rsi, r8
add r12, r8
and r12, qword [rsp + 0x40]
mov rdx, r12
neg rdx
lea rdx, [rdx + rdx*2]
shl rdx, 4
lea r14, [rcx + rdx]
mov r13, rcx
lea r15, [rcx + rdx]
add r15, 0xffffffffffffffd0
cmp eax, 1
je 0x1400aae90
cmp eax, 2
jne 0x1400ab10b
movzx edx, byte [r15]
cmp dl, 2
jne 0x1400aadc0
mov rax, qword [rsp + 0x60]
mov rbp, qword [rax + 0x10]
mov rdx, qword [r14 - 0x28]
cmp rbp, qword [rdx + 0x10]
jne 0x1400aadc8
mov rax, qword [rsp + 0x60]
mov r10, qword [rax + 8]
mov r9, qword [rdx + 8]
xor edx, edx
nop dword [rax + rax]
cmp rbp, rdx
je 0x1400aaeba
movzx r8d, byte [r10 + rdx]
movzx eax, byte [r9 + rdx]
inc rdx
lea r11d, [r8 - 0x41]
cmp r11b, 0x1a
setb r11b
shl r11b, 5
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or r11b, r8b
or cl, al
cmp r11b, cl
je 0x1400aae50
jmp 0x1400aadc8
movzx edx, byte [r15]
cmp dl, 1
jne 0x1400aadc0
movzx edx, byte [r14 - 0x2f]
cmp byte [rsp + 0x2f], 0
je 0x1400aaeb2
test dl, dl
jne 0x1400aaeba
jmp 0x1400aadc8
test dl, dl
jne 0x1400aadc8
mov rax, qword [rsp + 0x68]
cmp rax, qword [r14 - 0x10]
jne 0x1400aadc8
mov r9, qword [r14 - 0x18]
xor edx, edx
nop
cmp qword [rsp + 0x68], rdx
je 0x1400aaf1b
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + rdx]
movzx ecx, byte [r9 + rdx]
inc rdx
lea r8d, [rax - 0x41]
cmp r8b, 0x1a
setb r8b
shl r8b, 5
lea r10d, [rcx - 0x41]
cmp r10b, 0x1a
setb r10b
shl r10b, 5
or r8b, al
or r10b, cl
cmp r8b, r10b
je 0x1400aaed0
jmp 0x1400aadc8
shl r12, 4
lea rcx, [r12 + r12*2]
sar rcx, 4
movabs rax, 0xaaaaaaaaaaaaaaab
imul rax, rcx
lea r8, [rax - 0x10]
and r8, qword [rsp + 0x40]
movdqu xmm0, xmmword [r13 + r8]
pcmpeqd xmm1, xmm1
pcmpeqb xmm0, xmm1
psllw xmm0, 7
pmovmskb r9d, xmm0
movdqu xmm0, xmmword [r13 + rax]
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
test r9d, r9d
je 0x1400aaf76
bsr r9w, r9w
xor r9d, 0xf
jmp 0x1400aaf7b
mov r9w, 0x10
mov rsi, qword [rsp + 0x30]
or edx, 0x10000
tzcnt ecx, edx
add r9d, ecx
mov dl, pe_nt_image_headers64
cmp r9w, 0xf
ja 0x1400aaf9c
inc qword [rdi + 0x38]
mov dl, 0xff
mov byte [r13 + rax], dl
mov byte [r13 + r8 + 0x10], dl
dec qword [rdi + 0x40]
movdqu xmm0, xmmword [r15]
movdqu xmm1, xmmword [r15 + 0x10]
movdqu xmm2, xmmword [r15 + 0x20]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x90], xmm2
movdqa xmmword [rsp + 0x80], xmm1
movzx eax, byte [rsp + 0x70]
cmp al, 3
je 0x1400ab02b
cmp al, 2
jb 0x1400ab008
mov r15, qword [rsp + 0x78]
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
lea rcx, [r15 + 0x18]
mov r8, qword [r15 + 0x10]
call qword [rax + 0x18]
mov rcx, qword [0x1402f3170]
xor edx, edx
mov r8, r15
call fcn.1401d7c44
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x98]
mov r8, qword [rsp + 0x90]
call qword [rax + 0x18]
lea rdx, [rdi + 0x88]
lea rcx, [rsp + 0x70]
mov r8, rsi
call fcn.1400a7d40
movabs rax, 0x7fffffffffffffff
inc rax
cmp qword [rsp + 0x70], rax
je 0x1400ab05d
lea rcx, [rsp + 0x70]
call fcn.1400879b0
cmp byte [rsp + 0x3c], 0
mov rbx, qword [rsp + 0x58]
movabs r14, 0x7fffffffffffffff
je 0x1400ab0e2
xor eax, eax
xchg byte [rbx], al
cmp al, 2
jne 0x1400ab083
mov rcx, rbx
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
cmp qword [rsp + 0xa0], 0
je 0x1400ab0cb
movzx eax, byte [rsp + 0xb0]
mov rbx, qword [rsp + 0xa8]
test al, al
jne 0x1400ab0bb
mov rax, qword [0x1402f31c8]
test rax, r14
je 0x1400ab0bb
call fcn.140171c20
test al, al
jne 0x1400ab0bb
mov byte [rbx + 1], 1
xor eax, eax
xchg byte [rbx], al
cmp al, 2
jne 0x1400ab0cb
mov rcx, rbx
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
lock dec qword [rdi]
jne 0x1400aabd4
mov rcx, rdi
call fcn.140085090
jmp 0x1400aabd4
mov rax, qword [0x1402f31c8]
test rax, r14
je 0x1400ab073
call fcn.140171c20
test al, al
jne 0x1400ab073
mov byte [rdi + 0x11], 1
jmp 0x1400ab073
call fcn.1400a7a10
jmp 0x1400ab123
lea rcx, str.internal_error:_entered_unreachable_codeEndOfInput_home_rifat_.cargo_registry_src_index.crates.io_6f17d22bba15001f_untrusted_0.9.0_src_reader.rs_home_rifat_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rustls_webpki_0.102.5_src_der.rs
lea r8, str._home_rifat_.cargo_registry_src_index.crates.io_6f17d22bba15001f_http_1.1.0_src_uri_scheme.rs
mov edx, 0x28
call fcn.14002e2c0
ud2