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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x328
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov rsi, qword [rsp + 0x398]
mov dword [rbp], r9d
mov qword [rbp + 0x10], r8
mov r12d, edx
mov dword [rbp + 8], edx
mov r14, rcx
mov ebx, 0x20
cmp edx, 0x40
jle 0x14003bb2b
lea rcx, [rbp + 0x20]
call fcn.14005bd20
lea r8, [rbp + 0x20]
mov edx, r12d
mov rcx, r14
call fcn.14005beb0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x2a0]
call fcn.14005bde0
mov edx, 0x80
lea rdi, [rbp + 0x20]
mov ecx, edx
xor eax, eax
lea r14, [rbp + 0x2a0]
mov r12d, ebx
mov dword [rbp + 8], ebx
lea r8, [rbp + 0x20]
rep stosb byte [rdi], al
nop dword [rax]
mov byte [r8], al
inc r8
dec rdx
jne 0x14003bb20
mov r15d, dword [rsp + 0x3a0]
mov eax, r15d
cdq
and edx, 0x1f
add eax, edx
mov r13d, eax
and eax, 0x1f
sar r13d, 5
cmp eax, edx
je 0x14003bb4d
inc r13d
mov eax, r13d
lea rcx, [rbp + 0x120]
shl eax, 5
sub r15d, eax
add r15d, ebx
call fcn.14005bd20
xor edi, edi
movsxd r12, r12d
mov edx, edi
test r12, r12
jle 0x14003bb99
lea rax, [rbp + 0x220]
mov r8, r14
sub r8, rax
nop
lea rcx, [rbp + rdx + 0x220]
inc rdx
movzx eax, byte [r8 + rcx]
xor al, 0x36
mov byte [rcx], al
cmp rdx, r12
jl 0x14003bb80
mov eax, 0x40
lea rcx, [rbp + r12 + 0x220]
mov edx, 0x36
sub eax, dword [rbp + 8]
mov qword [rbp + 0x18], rcx
cdqe
mov r8, rax
mov qword [rbp + 8], rax
call fcn.1400a4ea0
lea r8, [rbp + 0x120]
lea rcx, [rbp + 0x220]
mov edx, 0x40
call fcn.14005beb0
lea rcx, [rbp + 0x1a0]
call fcn.14005bd20
test r12, r12
jle 0x14003bc19
lea rax, [rbp + 0x220]
sub r14, rax
nop word [rax + rax]
lea rcx, [rbp + rdi + 0x220]
inc rdi
movzx eax, byte [r14 + rcx]
xor al, 0x5c
mov byte [rcx], al
cmp rdi, r12
jl 0x14003bc00
mov r8, qword [rbp + 8]
mov rcx, qword [rbp + 0x18]
mov edx, 0x5c
call fcn.1400a4ea0
lea r8, [rbp + 0x1a0]
lea rcx, [rbp + 0x220]
mov edx, 0x40
call fcn.14005beb0
mov r12d, dword [rsp + 0x390]
mov r14, qword [rbp + 0x10]
mov edi, 1
cmp r13d, edi
jle 0x14003bcb7
mov ebx, dword [rbp]
nop dword [rax]
lea rax, [rbp + 0xa0]
mov r9d, edi
mov r8d, r12d
mov edx, ebx
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14003b900
mov rax, qword [rbp + 0x264]
inc edi
mov qword [rsi], rax
mov rax, qword [rbp + 0x26c]
add rsi, 0x20
mov qword [rsi - 0x18], rax
mov rax, qword [rbp + 0x274]
mov qword [rsi - 0x10], rax
mov rax, qword [rbp + 0x27c]
mov qword [rsi - 8], rax
cmp edi, r13d
jl 0x14003bc60
mov ebx, 0x20
mov edx, dword [rbp]
lea rax, [rbp + 0xa0]
mov r9d, edi
mov r8d, r12d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14003b900
lea rdx, [rbp + 0x264]
movsxd r8, r15d
mov rcx, rsi
call fcn.1400a4990
mov edx, 0x200
lea rdi, [rbp + 0xa0]
mov ecx, edx
xor eax, eax
lea r11, [rbp + 0xa0]
rep stosb byte [rdi], al
nop
mov byte [r11], al
inc r11
dec rdx
jne 0x14003bd00
lea rdi, [rbp + 0x2a0]
mov rcx, rbx
lea rdx, [rbp + 0x2a0]
rep stosb byte [rdi], al
nop
mov byte [rdx], al
inc rdx
dec rbx
jne 0x14003bd20
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.1400a4e70
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret