Function at 0x1400c5cd0
Capabilities:
Encrypt data using chaskey

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400c63b8
test rdx, rdx
je 0x1400c63b8
mov rsi, qword [rcx]
test rsi, rsi
je 0x1400c5d04
mov rcx, rsi
call fcn.1400cbca0
lock inc dword [rdi + 8]
movzx eax, word [rbx + 0xe8fc]
mov ebp, 1
mov qword [rbx], rdi
test al, 6
jne 0x1400c5d2c
test al, 8
jne 0x1400c5d2c
mov rax, qword [rdi]
movzx ecx, word [rax]
mov word [rbx + 0xe900], cx
movzx eax, word [rbx + 0xea6c]
mov r10d, 0xfffe
mov edx, dword [rdi + 0x310]
movzx ecx, ax
mov dword [rbx + 0xea68], edx
mov r11d, 0x7fff
xor cx, word [rdi + 0x306]
and cx, bp
xor cx, ax
mov word [rbx + 0xea6c], cx
movzx eax, cx
xor ax, word [rdi + 0x306]
and ax, 2
xor ax, cx
mov word [rbx + 0xea6c], ax
movzx eax, byte [rbx + 0xe901]
cmp al, 4
jne 0x1400c5da1
bt edx, 0x1d
jae 0x1400c5da1
mov rax, qword [rdi]
cmp byte [rax + 3], 0
je 0x1400c5e2e
mov byte [rbx + 0xe901], 3
jmp 0x1400c5da5
cmp al, 3
jne 0x1400c5dc3
mov al, 3
bt edx, 0x1b
jae 0x1400c5dc3
mov rax, qword [rdi]
cmp byte [rax + 3], 0
je 0x1400c5e2e
mov byte [rbx + 0xe901], 2
mov al, 2
mov ecx, edx
jmp 0x1400c5dc9
mov ecx, edx
cmp al, 2
jne 0x1400c5de9
bt edx, 0x1a
jae 0x1400c5de9
mov rax, qword [rdi]
cmp byte [rax + 3], 0
je 0x1400c5e2e
and word [rbx + 0xea7a], r10w
mov byte [rbx + 0xe901], bpl
jmp 0x1400c5dee
cmp al, bpl
jne 0x1400c5e1c
movzx eax, bpl
bt ecx, 0xd
jae 0x1400c5e26
mov rax, qword [rdi]
cmp byte [rax + 3], 0
je 0x1400c5e2e
and word [rbx + 0xea78], r11w
and word [rbx + 0xea7a], r10w
xor al, al
mov byte [rbx + 0xe901], 0
jmp 0x1400c5e20
test al, al
jne 0x1400c5e26
bt ecx, 0xc
jb 0x1400c5e2e
cmp al, byte [rbx + 0xea8b]
jae 0x1400c5e40
mov eax, 0xfffffeba
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rdi + 0x4e0]
mov word [rbx + 0xecb8], ax
mov eax, dword [rdi + 0x4dc]
mov dword [rbx + 0xec90], eax
mov eax, dword [rdi + 0x4e4]
mov dword [rbx + 0xecbc], eax
mov rax, qword [rdi + 0x348]
mov qword [rbx + 0xeaa0], rax
mov eax, dword [rdi + 0x4d8]
mov dword [rbx + 0xe8ec], eax
mov rax, qword [rdi + 0x4a8]
mov qword [rbx + 0x5fc8], rax
mov rax, qword [rdi]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
test rsi, rsi
je 0x1400c5ea6
cmp byte [rax + 2], 3
je 0x1400c5ecc
movzx eax, byte [rax + 2]
mov edx, 0xff9f
and al, 3
movzx ecx, al
movzx eax, word [rbx + 0xea78]
and ax, dx
shl cx, 5
or cx, ax
mov word [rbx + 0xea78], cx
mov rax, qword [rdi]
lea rsi, [rdi + 0x2f8]
mov r8d, 0xf7ff
mov r15d, 0xfbff
mov r14d, 0xbfff
movzx ecx, byte [rax + 3]
movzx eax, word [rbx + 0xea78]
and cl, bpl
and ax, r8w
movzx r9d, cl
shl r9w, 0xb
or r9w, ax
mov word [rbx + 0xea78], r9w
movzx eax, byte [rdi + 0x2fc]
mov byte [rbx + 0xea8b], al
movzx eax, byte [rdi + 0x2fa]
and al, bpl
movzx edx, al
movzx eax, word [rbx + 0xea7a]
and ax, r15w
shl dx, 0xa
or dx, ax
mov word [rbx + 0xea7a], dx
movzx eax, byte [rdi + 0x2fa]
shr al, 2
and al, bpl
movzx ecx, al
mov eax, 0xefff
and dx, ax
shl cx, 0xc
or cx, dx
mov word [rbx + 0xea7a], cx
movzx eax, byte [rdi + 0x2fa]
shr al, 3
and al, bpl
movzx edx, al
mov eax, 0xdfff
and cx, ax
shl dx, 0xd
or dx, cx
mov word [rbx + 0xea7a], dx
and dx, r8w
movzx eax, byte [rdi + 0x2fa]
shr al, 1
and al, bpl
movzx ecx, al
shl cx, 0xb
or cx, dx
mov word [rbx + 0xea7a], cx
and cx, r14w
movzx eax, byte [rdi + 0x2fa]
shr al, 6
and al, bpl
movzx edx, al
shl dx, 0xe
or dx, cx
mov word [rbx + 0xea7a], dx
and dx, r11w
movzx eax, byte [rdi + 0x2fa]
shr al, 4
movzx ecx, al
shl cx, 0xf
or cx, dx
mov word [rbx + 0xea7a], cx
movzx eax, byte [rdi + 0x2fa]
shr al, 5
and al, bpl
movzx r8d, al
movzx eax, word [rbx + 0xea7c]
and ax, r10w
or r8w, ax
mov word [rbx + 0xea7c], r8w
movzx eax, word [rdi + 0x308]
mov word [rbx + 0xea92], ax
movzx eax, word [rdi + 0x30a]
mov word [rbx + 0xea94], ax
movzx eax, word [rdi + 0x30c]
mov word [rbx + 0xea98], ax
movzx eax, word [rdi + 0x30e]
mov word [rbx + 0xea9a], ax
movzx eax, byte [rsi]
mov byte [rbx + 0xea9c], al
mov r10d, 0xff7f
movzx eax, byte [rdi + 0x2f9]
mov r11d, 0xfeff
shr al, 4
and r8w, r10w
and al, bpl
movzx edx, al
mov eax, 0xfff7
and r9w, ax
shl dx, 3
or dx, r9w
mov word [rbx + 0xea78], dx
movzx eax, byte [rdi + 0x2f9]
shr al, 5
and al, bpl
movzx ecx, al
mov eax, 0xffef
and dx, ax
shl cx, 4
or cx, dx
mov word [rbx + 0xea78], cx
and cx, r10w
movzx eax, byte [rdi + 0x2f9]
and al, bpl
movzx edx, al
shl dx, 7
or dx, cx
mov word [rbx + 0xea78], dx
and dx, r11w
movzx eax, byte [rdi + 0x2f9]
shr al, 1
and al, bpl
movzx ecx, al
shl cx, 8
or cx, dx
mov word [rbx + 0xea78], cx
movzx eax, byte [rdi + 0x2f9]
shr al, 2
and al, bpl
movzx edx, al
mov eax, 0xfdff
and cx, ax
shl dx, 9
or dx, cx
mov word [rbx + 0xea78], dx
and dx, r15w
movzx eax, byte [rdi + 0x2f9]
shr al, 3
and al, bpl
movzx ecx, al
shl cx, 0xa
or cx, dx
mov word [rbx + 0xea78], cx
movzx eax, byte [rdi + 0x2f9]
shr al, 6
movzx r9d, al
mov eax, 0xfff9
and cx, ax
add r9w, r9w
or r9w, cx
mov word [rbx + 0xea78], r9w
movzx eax, byte [rdi + 0x2fa]
shr al, 7
movzx ecx, al
shl cx, 7
or cx, r8w
mov word [rbx + 0xea7c], cx
and cx, r11w
movzx eax, byte [rdi + 0x2fb]
shr al, 1
and al, bpl
movzx edx, al
shl dx, 8
or dx, cx
mov word [rbx + 0xea7c], dx
movzx eax, byte [rdi + 0x2fb]
shr al, 2
and al, bpl
movzx ecx, al
shl cx, 0xa
and dx, r15w
mov r15, qword [rsp + 0x50]
or cx, dx
mov word [rbx + 0xea7c], cx
movzx eax, byte [rdi + 0x304]
shr al, 4
and al, bpl
movzx ecx, al
movzx eax, word [rbx + 0xea7e]
and ax, r14w
shl cx, 0xe
mov r14, qword [rsp + 0x48]
or cx, ax
mov word [rbx + 0xea7e], cx
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + 0xe630], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0xe640], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0xe678], rax
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0xe698], rax
mov eax, dword [rdi + 0x68]
mov dword [rbx + 0xe6a0], eax
mov rax, qword [rdi + 0x70]
mov qword [rbx + 0xe680], rax
movzx eax, byte [rbx + 0xe688]
movzx ecx, al
xor cl, byte [rdi + 0x78]
and cl, 0x3f
xor cl, al
mov byte [rbx + 0xe688], cl
movzx edx, cl
xor dl, byte [rdi + 0x78]
and dl, 0x40
xor dl, cl
mov byte [rbx + 0xe688], dl
movzx ecx, byte [rdi + 0x78]
xor cl, dl
lea rdx, [rbx + 8]
and cl, 0x7f
xor cl, byte [rdi + 0x78]
mov byte [rbx + 0xe688], cl
mov ecx, 2
mov eax, dword [rdi + 0x7c]
mov dword [rbx + 0xe68c], eax
mov eax, dword [rdi + 0x80]
mov dword [rbx + 0xe690], eax
lea rax, [rdi + 0x194]
nop word [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rcx, rbp
jne 0x1400c62a0
movups xmm0, xmmword [rax]
and r9b, 0x60
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
mov rcx, qword [rax + 0x50]
mov qword [rdx + 0x50], rcx
cmp r9b, 0x60
je 0x1400c6334
mov rcx, rbx
call fcn.1400ccfe0
mov ebp, eax
mov edx, dword [rdi + 0x310]
mov rcx, rsi
test edx, edx
je 0x1400c6354
mov rcx, rbx
call fcn.140098870
test eax, eax
je 0x1400c63b8
lea rcx, [rdi + 0x2f8]
movzx eax, byte [rdi + 0xd08]
mov byte [rbx + 0xec38], al
lea rax, [0x140146560]
cmp qword [rbx + 0x5fe0], rax
je 0x1400c6382
mov rax, qword [rdi + 0x498]
mov rsi, rcx
mov qword [rbx + 0x5fe0], rax
lea rax, [0x140146660]
cmp qword [rbx + 0x5fe8], rax
je 0x1400c63a0
mov rax, qword [rdi + 0x4a0]
mov qword [rbx + 0x5fe8], rax
movzx eax, byte [rsi]
mov byte [rbx + 0xe8f6], al
mov eax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x58]
mov eax, 0xffffff53
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret