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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x18050b500]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
je 0x1802e9aa4
mov rcx, qword [rcx]
test rcx, rcx
je 0x1802e9aa4
cmp qword [rsi + 0x10], 0
je 0x1802e9aa4
movzx eax, byte [rcx + 0xd]
cmp r8, rax
jbe 0x1802e98ed
mov rcx, rsi
call fcn.1802e9dc0
mov ebx, eax
test eax, eax
jne 0x1802e9a8a
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.1802e9e60
mov ebx, eax
test eax, eax
jne 0x1802e9a8a
mov rax, qword [rsi]
test rax, rax
je case.default.0x1802e9887
mov eax, dword [rax + 8]
add eax, 0xfffffffd
cmp eax, 6
ja case.default.0x1802e9887
lea rdx, [0x180000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x2e9ac0]
add rcx, rdx
jmp rcx
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
call fcn.1802ecae0
jmp 0x1802e98d7
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
call fcn.1802ff4c0
jmp 0x1802e98d7
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
call fcn.1802ee6f0
jmp 0x1802e98d7
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
call fcn.1802efa50
jmp 0x1802e98d7
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
call fcn.1802f0b70
mov ebx, eax
test eax, eax
jne 0x1802e9a8a
mov rcx, qword [rsi]
lea r14, [rsp + 0x20]
movzx edi, byte [rcx + 0xc]
mov qword [rsp + 0xb8], rbp
mov edx, 0x36
mov rbp, qword [rsi + 0x10]
mov qword [rsp + 0x70], r15
movzx r15d, byte [rcx + 0xd]
mov rcx, rbp
mov r8d, r15d
lea rbx, [r15 + rbp]
call fcn.1803bc5c0
mov rax, qword [rsi]
mov edx, 0x5c
mov rcx, rbx
movzx r8d, byte [rax + 0xd]
call fcn.1803bc5c0
xor eax, eax
test rdi, rdi
je 0x1802e9a5a
cmp rdi, 8
jb 0x1802e9a2a
lea rcx, [rbx - 1]
lea r8, [r14 - 1]
add rcx, rdi
add r8, rdi
cmp rbx, r8
ja 0x1802e995d
cmp rcx, r14
jae 0x1802e9a2a
lea rdx, [rbp - 1]
add rdx, rdi
cmp rbx, rdx
ja 0x1802e9972
cmp rcx, rbp
jae 0x1802e9a2a
cmp rbp, r8
ja 0x1802e9980
cmp rdx, r14
jae 0x1802e9a2a
cmp rdi, 0x10
jb 0x1802e99da
mov rdx, rdi
mov r8, rdi
and edx, 0xf
sub r8, rdx
mov r9, r14
mov rcx, rbp
sub r9, rbp
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
add rax, 0x10
movdqu xmm2, xmmword [r9 + rcx]
lea rcx, [rcx + 0x10]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx + r15 - 0x10]
movdqu xmmword [rcx - 0x10], xmm1
xorps xmm2, xmm0
movdqu xmmword [rcx + r15 - 0x10], xmm2
cmp rax, r8
jb 0x1802e99a0
cmp rdx, 8
jb 0x1802e9a25
mov rdx, rdi
and rdx, 0xfffffffffffffff8
mov r8, r14
lea rcx, [rax + rbp]
sub r8, rbp
mov r9, rbx
sub r9, rbp
movq xmm0, qword [rcx]
add rax, 8
movq xmm2, qword [rcx + r8]
lea rcx, [rcx + 8]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movq xmm0, qword [r9 + rcx - 8]
movq qword [rcx - 8], xmm1
xorps xmm2, xmm0
movq qword [r9 + rcx - 8], xmm2
cmp rax, rdx
jb 0x1802e99f1
cmp rax, rdi
jae 0x1802e9a5a
mov rcx, rbp
lea r8, [r14 + rax]
sub rcx, r14
sub rbx, r14
sub rdi, rax
nop word [rax + rax]
movzx eax, byte [r8]
xor byte [r8 + rcx], al
movzx eax, byte [r8]
xor byte [rbx + r8], al
lea r8, [r8 + 1]
sub rdi, 1
jne 0x1802e9a40
mov rcx, rsi
call fcn.1802e9dc0
mov r15, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
jne 0x1802e9a82
mov rax, qword [rsi]
mov rdx, rbp
mov rcx, rsi
movzx r8d, byte [rax + 0xd]
call fcn.1802e9e60
mov ebx, eax
mov rbp, qword [rsp + 0xb8]
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.1802e9240
mov eax, ebx
jmp 0x1802e9aa9
mov ebx, 0xffffaf00
jmp 0x1802e9a8a
mov eax, 0xffffaf00
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180313c00
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret