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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push rdi
push r13
push r14
lea rbp, [r11 - 0x178]
sub rsp, 0x248
mov rax, qword [0x180e681c0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x1a0]
mov rdi, rdx
mov r14, qword [rbp + 0x1b8]
mov rsi, rcx
mov r13, qword [rbp + 0x1c0]
mov qword [r11 - 0x38], r12
mov r12, qword [rbp + 0x1b0]
mov qword [r11 - 0x40], r15
mov r15, qword [rbp + 0x1a8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r8
cmp rdx, 0x40
jbe 0x18022e924
lea rcx, [rbp + 0x20]
call fcn.180230400
mov r8, rdi
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.180230440
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x20]
call fcn.1802302d0
lea rsi, [rbp + 0xd0]
mov edi, 0x20
xor ebx, ebx
movaps xmmword [rsp + 0x220], xmm6
test r15, r15
je 0x18022e982
cmp byte [r12], bl
je 0x18022e982
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmm2, xmmword [r15 + 0x20]
movups xmm3, xmmword [r15 + 0x30]
movups xmm4, xmmword [r15 + 0x40]
movups xmm5, xmmword [r15 + 0x50]
movsd xmm6, qword [r15 + 0x60]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rsp + 0x70], xmm3
movups xmmword [rbp - 0x80], xmm4
movups xmmword [rbp - 0x70], xmm5
movsd qword [rbp - 0x60], xmm6
jmp 0x18022ead3
mov rdx, rbx
test rdi, rdi
je 0x18022ea6c
cmp rdi, 0x40
jb 0x18022ea44
lea rax, [rsi - 1]
add rax, rdi
lea r8, [rbp + 0x90]
lea rcx, [rbp + rdi + 0x8f]
cmp r8, rax
ja 0x18022e9bc
cmp rcx, rsi
jae 0x18022ea44
mov r9, rdi
and r9, 0xffffffffffffffc0
movdqa xmm2, xmmword [str.6666666666666666C]
lea rcx, [rbp + 0x90]
sub rcx, rsi
lea r8, [rbp + 0xa0]
sub r8, rsi
lea rax, [rsi + 0x20]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
add rdx, 0x40
movdqu xmm1, xmmword [rax - 0x10]
lea rax, [rax + 0x40]
pxor xmm0, xmm2
pxor xmm1, xmm2
movdqu xmmword [rcx + rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [r8 + rax - 0x60], xmm1
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmmword [rcx + rax - 0x40], xmm1
pxor xmm0, xmm2
movdqu xmmword [r8 + rax - 0x40], xmm0
cmp rdx, r9
jb 0x18022e9f0
cmp rdx, rdi
jae 0x18022ea8c
lea rax, [rbp + 0x90]
mov r8, rsi
sub r8, rax
lea rcx, [rbp + 0x90]
add rcx, rdx
inc rdx
movzx eax, byte [r8 + rcx]
xor al, 0x36
mov byte [rcx], al
cmp rdx, rdi
jb 0x18022ea51
cmp rdi, 0x40
jae 0x18022ea8c
mov r8d, 0x40
lea rcx, [rbp + 0x90]
sub r8, rdi
add rcx, rdi
mov dl, 0x36
call fcn.180281510
lea rcx, [rsp + 0x40]
call fcn.180230400
mov r8d, 0x40
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.180230440
test r15, r15
je 0x18022eb01
movsd xmm6, qword [rbp - 0x60]
movups xmm5, xmmword [rbp - 0x70]
movups xmm4, xmmword [rbp - 0x80]
movups xmm3, xmmword [rsp + 0x70]
movups xmm2, xmmword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x40]
cmp byte [r12], bl
jne 0x18022eb01
movups xmmword [r15], xmm0
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15 + 0x20], xmm2
movups xmmword [r15 + 0x30], xmm3
movups xmmword [r15 + 0x40], xmm4
movups xmmword [r15 + 0x50], xmm5
movsd qword [r15 + 0x60], xmm6
mov byte [r12], 1
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0x28]
call fcn.180230440
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x40]
call fcn.1802302d0
mov r15, qword [rsp + 0x238]
mov r12, qword [rsp + 0x240]
test r14, r14
je 0x18022eb86
cmp byte [r13], bl
je 0x18022eb86
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmm2, xmmword [r14 + 0x20]
movups xmm3, xmmword [r14 + 0x30]
movups xmm4, xmmword [r14 + 0x40]
movups xmm5, xmmword [r14 + 0x50]
movsd xmm6, qword [r14 + 0x60]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm2
movups xmmword [rbp - 0x20], xmm3
movups xmmword [rbp - 0x10], xmm4
movups xmmword [rbp], xmm5
movsd qword [rbp + 0x10], xmm6
jmp 0x18022ecbb
test rdi, rdi
je 0x18022ec5a
cmp rdi, 0x40
jb 0x18022ec2e
lea rax, [rsi - 1]
add rax, rdi
lea rdx, [rbp + 0x90]
lea rcx, [rbp + rdi + 0x8f]
cmp rdx, rax
ja 0x18022ebb9
cmp rcx, rsi
jae 0x18022ec2e
mov r8, rdi
and r8, 0xffffffffffffffc0
movdqa xmm2, xmmword [0x180369410]
lea rcx, [rbp + 0x90]
sub rcx, rsi
lea rdx, [rbp + 0xa0]
sub rdx, rsi
lea rax, [rsi + 0x20]
movdqu xmm0, xmmword [rax - 0x20]
add rbx, 0x40
movdqu xmm1, xmmword [rax - 0x10]
lea rax, [rax + 0x40]
pxor xmm0, xmm2
pxor xmm1, xmm2
movdqu xmmword [rcx + rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rdx + rax - 0x60], xmm1
pxor xmm0, xmm2
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rcx + rax - 0x40], xmm0
pxor xmm1, xmm2
movdqu xmmword [rdx + rax - 0x40], xmm1
cmp rbx, r8
jb 0x18022ebe0
cmp rbx, rdi
jae 0x18022ec7a
lea rax, [rbp + 0x90]
sub rsi, rax
nop dword [rax + rax]
lea rcx, [rbp + 0x90]
add rcx, rbx
inc rbx
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx], al
cmp rbx, rdi
jb 0x18022ec40
cmp rdi, 0x40
jae 0x18022ec7a
mov r8d, 0x40
lea rcx, [rbp + 0x90]
sub r8, rdi
add rcx, rdi
mov dl, 0x5c
call fcn.180281510
lea rcx, [rbp - 0x50]
call fcn.180230400
mov r8d, 0x40
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x50]
call fcn.180230440
test r14, r14
je 0x18022ecea
movsd xmm6, qword [rbp + 0x10]
movups xmm5, xmmword [rbp]
movups xmm4, xmmword [rbp - 0x10]
movups xmm3, xmmword [rbp - 0x20]
movups xmm2, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x40]
movups xmm0, xmmword [rbp - 0x50]
cmp byte [r13], 0
jne 0x18022ecea
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm1
movups xmmword [r14 + 0x20], xmm2
movups xmmword [r14 + 0x30], xmm3
movups xmmword [r14 + 0x40], xmm4
movups xmmword [r14 + 0x50], xmm5
movsd qword [r14 + 0x60], xmm6
mov byte [r13], 1
mov r8d, 0x20
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x50]
call fcn.180230440
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.1802302d0
movaps xmm6, xmmword [rsp + 0x220]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18024b290
add rsp, 0x248
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret