Function at 0x140016b70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebp, 0xffffaf00
test rcx, rcx
je 0x140016deb
mov rsi, rcx
mov rax, qword [rcx]
test rax, rax
je 0x140016deb
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140016deb
mov r14, r8
mov rdi, rdx
movzx r15d, byte [rax + 0xd]
cmp r15, r8
jae 0x140016c1c
mov rcx, rsi
call fcn.1400169d0
mov ebp, eax
test eax, eax
jne 0x140016ddc
mov rcx, rsi
mov rdx, rdi
mov r8, r14
call fcn.140016a70
mov ebp, eax
test eax, eax
jne 0x140016ddc
lea rdi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.140016af0
mov ebp, eax
test eax, eax
jne 0x140016ddc
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
movzx r14d, byte [rax + 0xc]
movzx r15d, byte [rax + 0xd]
lea r12, [rbx + r15]
mov rcx, rbx
mov dl, 0x36
mov r8, r15
call fcn.140022fe0
mov rax, qword [rsi]
movzx r8d, byte [rax + 0xd]
mov rcx, r12
mov dl, 0x5c
call fcn.140022fe0
test r14, r14
je 0x140016db9
cmp r14, 8
jae 0x140016c55
xor eax, eax
jmp 0x140016d5e
lea rax, [rbx + r14]
lea rbp, [r15 + r14]
add rbp, rbx
lea rdx, [rdi + r14]
cmp rbx, rbp
setb r10b
cmp r12, rax
setb r11b
cmp rbx, rdx
setb cl
cmp rdi, rax
setb r8b
cmp r12, rdx
setb dl
cmp rdi, rbp
setb r9b
xor eax, eax
test r10b, r11b
jne 0x140016d5e
and cl, r8b
jne 0x140016d5e
and dl, r9b
jne 0x140016d5e
cmp r14, 0x20
jae 0x140016cb3
xor eax, eax
jmp 0x140016d2a
mov rax, r14
and rax, 0xffffffffffffffe0
lea rcx, [rbx + 0x10]
lea rdx, [rbx + r15]
add rdx, 0x10
xor ebp, ebp
nop dword [rax + rax]
movups xmm0, xmmword [rcx + rbp - 0x10]
movups xmm1, xmmword [rcx + rbp]
movups xmm2, xmmword [rdi + rbp]
xorps xmm2, xmm0
movups xmm0, xmmword [rdi + rbp + 0x10]
xorps xmm0, xmm1
movups xmmword [rcx + rbp - 0x10], xmm2
movups xmmword [rcx + rbp], xmm0
movups xmm0, xmmword [rdx + rbp - 0x10]
movups xmm1, xmmword [rdx + rbp]
movups xmm2, xmmword [rdi + rbp]
xorps xmm2, xmm0
movups xmm0, xmmword [rdi + rbp + 0x10]
xorps xmm0, xmm1
movups xmmword [rdx + rbp - 0x10], xmm2
movups xmmword [rdx + rbp], xmm0
add rbp, 0x20
cmp rax, rbp
jne 0x140016cd0
cmp r14, rax
je 0x140016db9
test r14b, 0x18
je 0x140016d5e
mov rcx, rax
mov rax, r14
and rax, 0xfffffffffffffff8
nop word cs:[rax + rax]
nop
mov rdx, qword [rdi + rcx]
xor qword [rbx + rcx], rdx
mov rdx, qword [rdi + rcx]
xor qword [r12 + rcx], rdx
add rcx, 8
cmp rax, rcx
jne 0x140016d40
cmp r14, rax
je 0x140016db9
mov rcx, rax
or rcx, 1
test r14b, 1
je 0x140016d7b
mov dl, byte [rdi + rax]
xor byte [rbx + rax], dl
mov dl, byte [rdi + rax]
xor byte [r12 + rax], dl
mov rax, rcx
cmp r14, rcx
je 0x140016db9
lea rcx, [r15 + rbx]
add rcx, 1
nop dword [rax + rax]
movzx edx, byte [rdi + rax]
xor byte [rbx + rax], dl
movzx edx, byte [rdi + rax]
xor byte [rcx + rax - 1], dl
movzx edx, byte [rdi + rax + 1]
xor byte [rbx + rax + 1], dl
movzx edx, byte [rdi + rax + 1]
xor byte [rcx + rax], dl
add rax, 2
cmp r14, rax
jne 0x140016d90
mov rcx, rsi
call fcn.1400169d0
mov ebp, eax
test eax, eax
jne 0x140016ddc
mov rax, qword [rsi]
movzx r8d, byte [rax + 0xd]
mov rcx, rsi
mov rdx, rbx
call fcn.140016a70
mov ebp, eax
lea rcx, [rsp + 0x20]
mov edx, 0x40
call fcn.140016760
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140021820
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret