Function at 0x7ffd51cee21c
Capabilities:
Encrypt data using chaskey

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c48]
mov eax, 0x1d20
call fcn.7ffd51cdeb10
sub rsp, rax
mov rax, qword [0x7ffd51cfa088]
xor rax, rsp
mov qword [rbp + 0x1c10], rax
lea r12, [rcx + 0xf0]
mov qword [rbp - 0x40], rdx
mov rdi, rcx
cmp dword [r12], 0
je 0x7ffd51cee695
xor ebx, ebx
mov rcx, r12
xor r15d, r15d
or ebx, 3
xor r14d, r14d
mov qword [rbp - 0x58], rbx
call fcn.7ffd51cb2d60
xor esi, esi
mov dword [rbp - 0x78], esi
mov rdx, rax
mov qword [rbp - 0x70], rax
cmp dword [rdi + 0xc8], esi
jbe 0x7ffd51cee695
lea r13, [rsi + rsi*4]
shl r13, 4
add r13, qword [rdi + 0xb0]
cmp dword [r13 + 0x28], 0xffffffff
je 0x7ffd51cee2ec
mov eax, dword [r13 + 0x28]
xor r9d, r9d
lea rcx, [rax + rax*4]
mov rax, qword [rdi + 0xd0]
lea rdx, [rax + rcx*8]
lea rcx, [rbp - 0x28]
lea r8, [rdx + 0x10]
call fcn.7ffd51cbc120
mov rdx, qword [rbp - 0x70]
mov byte [rbp - 0x80], 1
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x38], xmm0
jmp 0x7ffd51cee2f0
mov byte [rbp - 0x80], 0
and dword [rbp - 0x7c], 0
cmp dword [r13 + 8], 0
jbe 0x7ffd51cee5d2
test rdx, rdx
je 0x7ffd51cee5cf
mov r12, rdx
mov rdx, qword [rdx + 0x20]
lea rax, [rdi + 0xf8]
xor ecx, ecx
cmp rdx, rax
je 0x7ffd51cee321
lea rcx, [rdx - 0x20]
mov qword [rbp - 0x70], rcx
cmp r14d, 0xc8
jb 0x7ffd51cee3e8
test byte [0x7ffd51cfa080], 0x40
je 0x7ffd51cee3db
movss xmm0, dword [rdi + 0x17c]
movss xmm1, dword [rdi + 0x178]
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x20]
movzx eax, r14w
shl r15w, 3
mov r9d, dword [rcx + 0xc]
mov r8d, dword [rdx + 0x4c]
shl ax, 2
add r14w, ax
lea rax, [rbp + 0xc70]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x10]
shl r14w, 2
mov word [rsp + 0x70], r14w
mov qword [rsp + 0x68], rax
mov eax, dword [rdi + 0xf0]
mov word [rsp + 0x60], r15w
movss dword [rsp + 0x50], xmm0
movss xmm0, dword [rdi + 0x174]
movss dword [rsp + 0x48], xmm1
movss xmm1, dword [rdi + 0x170]
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x38], xmm1
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0xc8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.7ffd51cef368
and ebx, 0xfffffffe
xor r14d, r14d
xor r15d, r15d
mov qword [rbp - 0x58], rbx
lea rcx, [r14 + r14*4]
xor edx, edx
lea rsi, [rbp + 0xc70]
lea rsi, [rsi + rcx*4]
lea r8d, [rdx + 0x14]
inc r14d
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rax, qword [r12]
mov rbx, qword [rax + 0xa0]
mov rcx, rbx
call qword [0x7ffd51d072d8]
mov rcx, r12
call rbx
and dword [rsi + 0x10], 0xffffffe0
mov bl, byte [rbp - 0x80]
and eax, 0x1f
or dword [rsi + 0x10], eax
movups xmm0, xmmword [r12 + 0xc0]
movdqu xmmword [rbp - 0x68], xmm0
test bl, bl
je 0x7ffd51cee44d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x68]
call fcn.7ffd51cb5f00
movss xmm0, dword [rbp - 0x68]
movss xmm1, dword [rbp - 0x64]
xor ecx, ecx
cmp dword [rbp - 0x7c], ecx
movzx eax, bl
sete cl
and dword [rsi + 0x10], 0xffffff9f
and eax, 1
movss dword [rbp - 0x50], xmm0
movss xmm0, dword [rbp - 0x60]
movss dword [rbp - 0x4c], xmm1
add eax, eax
and ecx, 1
or eax, ecx
movss xmm1, dword [rbp - 0x5c]
movss dword [rbp - 0x48], xmm0
shl eax, 5
or dword [rsi + 0x10], eax
movss dword [rbp - 0x44], xmm1
movups xmm0, xmmword [rbp - 0x50]
movdqu xmmword [rsi], xmm0
movss xmm0, dword [r12 + 0x68]
subss xmm0, dword [0x7ffd51cd7a28]
cvtps2pd xmm1, xmm0
comisd xmm1, xmmword [0x7ffd51cd9158]
ja 0x7ffd51cee4bf
xorps xmm1, xmmword [0x7ffd51cd7a40]
movsd xmm2, qword [0x7ffd51cd7a30]
xor edx, edx
comisd xmm2, xmm1
setb dl
shl edx, 7
xor edx, dword [rsi + 0x10]
and edx, 0x80
xor edx, dword [rsi + 0x10]
mov dword [rsi + 0x10], edx
test dl, dl
jns 0x7ffd51cee51b
movss xmm0, dword [r12 + 0x68]
cvtps2pd xmm0, xmm0
comisd xmm0, xmmword [0x7ffd51cd9158]
ja 0x7ffd51cee501
xorps xmm0, xmmword [0x7ffd51cd7a40]
comisd xmm2, xmm0
setae al
movzx ecx, al
shl ecx, 8
xor ecx, edx
and ecx, 0x100
xor ecx, edx
mov dword [rsi + 0x10], ecx
mov rax, qword [r12]
mov rbx, qword [rax + 0x48]
mov rcx, rbx
call qword [0x7ffd51d072d8]
mov rcx, r12
call rbx
xor ecx, ecx
test al, al
mov rax, qword [rbp - 0x40]
sete cl
btr dword [rsi + 0x10], 0xb
and ecx, 1
shl ecx, 0xb
or dword [rsi + 0x10], ecx
test rax, rax
je 0x7ffd51cee56e
cmp r12, qword [rax + 0x18]
jne 0x7ffd51cee56e
movzx eax, byte [rax + 0x10]
shl eax, 0xd
xor eax, dword [rsi + 0x10]
and eax, 0x2000
xor eax, dword [rsi + 0x10]
bts eax, 0xc
mov dword [rsi + 0x10], eax
mov rax, qword [r12 + 0x70]
test rax, rax
je 0x7ffd51cee589
mov rax, qword [rax + 0x10]
mov qword [rbp + r15*8 - 0x10], rax
inc r15d
bts dword [rsi + 0x10], 9
mov rax, qword [r12]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [0x7ffd51d072d8]
mov rcx, r12
call rbx
test rax, rax
je 0x7ffd51cee5b5
mov rax, qword [rax + 0x10]
mov qword [rbp + r15*8 - 0x10], rax
inc r15d
bts dword [rsi + 0x10], 0xa
mov eax, dword [rbp - 0x7c]
mov rbx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x70]
inc eax
mov dword [rbp - 0x7c], eax
cmp eax, dword [r13 + 8]
jb 0x7ffd51cee2ff
mov esi, dword [rbp - 0x78]
inc esi
mov dword [rbp - 0x78], esi
cmp esi, dword [rdi + 0xc8]
jb 0x7ffd51cee2a1
test r14d, r14d
je 0x7ffd51cee695
test byte [0x7ffd51cfa080], 0x40
je 0x7ffd51cee695
movss xmm0, dword [rdi + 0x17c]
movss xmm1, dword [rdi + 0x178]
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x20]
movzx eax, r14w
shl r15w, 3
mov r9d, dword [rcx + 0xc]
mov r8d, dword [rdx + 0x4c]
shl ax, 2
add r14w, ax
lea rax, [rbp + 0xc70]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x10]
shl r14w, 2
mov word [rsp + 0x70], r14w
mov qword [rsp + 0x68], rax
mov eax, dword [rdi + 0xf0]
mov word [rsp + 0x60], r15w
movss dword [rsp + 0x50], xmm0
movss xmm0, dword [rdi + 0x174]
movss dword [rsp + 0x48], xmm1
movss xmm1, dword [rdi + 0x170]
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x38], xmm1
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0xc8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.7ffd51cef368
mov rcx, qword [rbp + 0x1c10]
xor rcx, rsp
call fcn.7ffd51cb1560
lea r11, [rsp + 0x1d20]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret