Function at 0x14018e490
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha256

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x14042eb28]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor ebx, ebx
mov dword [rsp + 0x20], r8d
mov esi, r8d
mov r14, rdx
mov rdi, rcx
cmp qword [rdx], rbx
jne 0x14018e502
test r8d, r8d
je 0x14018e507
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14036e5e0
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r8d, r8d
je 0x14018e4cf
mov ecx, dword [rcx]
sub ecx, 1
je 0x14018e530
cmp ecx, 1
jne 0x14018e543
lea r8d, [rcx + 7]
lea rdx, [0x1403d3f60]
mov rcx, rdi
call fcn.14018e438
mov ebx, eax
test eax, eax
jns 0x14018e53f
mov ecx, eax
jmp 0x14018e4d6
mov r8d, 5
lea rdx, [0x1403d3e40]
jmp 0x14018e51e
mov esi, dword [rsp + 0x20]
test esi, esi
je 0x14018e4db
movups xmm0, xmmword [r14]
cmp esi, 0x40
jbe 0x14018e5b9
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rdi
movdqu xmmword [rsp + 0x30], xmm0
call fcn.14018e778
mov ebx, eax
test eax, eax
js 0x14018e52c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14018e9f8
mov ebx, eax
test eax, eax
js 0x14018e52c
and qword [rbp - 0x79], 0
lea rdx, [rsp + 0x30]
and dword [rbp - 0x71], 0
xor r8d, r8d
movaps xmm0, xmmword [rbp - 0x79]
mov rcx, rdi
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14018e490
mov ebx, eax
test eax, eax
jns 0x14018e609
jmp 0x14018e52c
movq qword [rbp - 0x79], xmm0
lea r15, [rbp - 0x69]
psrldq xmm0, 8
xor r14d, r14d
movd ebx, xmm0
mov r12d, esi
mov dword [rbp - 0x71], ebx
test esi, esi
je 0x14018e60d
movaps xmm1, xmmword [rbp - 0x79]
inc ebx
movdqa xmm0, xmm1
mov dword [rbp - 0x71], ebx
psrldq xmm0, 8
movq rcx, xmm1
movd edx, xmm0
call fcn.1401842a8
inc r14d
mov byte [r15], al
inc r15
mov eax, r14d
cmp rax, r12
jb 0x14018e5d8
mov esi, dword [rsp + 0x20]
mov r8d, esi
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
mov r14d, esi
call sub.msvcrt.dll_memcpy
mov eax, 0x40
lea rcx, [rbp - 0x69]
sub eax, esi
add rcx, r14
mov r8d, eax
mov edx, 0x36
mov ebx, eax
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x29]
mov r8d, ebx
add rcx, r14
mov edx, 0x5c
call sub.msvcrt.dll_memset
test esi, esi
je 0x14018e66a
xor eax, eax
xor byte [rbp + rax - 0x69], 0x36
xor byte [rbp + rax - 0x29], 0x5c
inc rax
sub r14, 1
jne 0x14018e657
and dword [rsp + 0x38], 0
lea rax, [rbp - 0x29]
and dword [rbp - 0x71], 0
lea rdx, [rsp + 0x30]
mov qword [rbp - 0x79], rax
mov r8d, 0x40
mov rax, qword [0x140438658]
mov ecx, dword [rax]
lea rax, [rbp - 0x79]
add rax, rcx
mov rcx, rdi
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14018e778
mov ebx, eax
test eax, eax
js 0x14018e52c
movups xmm0, xmmword [rdi + 0x54]
and qword [rsp + 0x30], 0
xor r8d, r8d
movups xmm1, xmmword [rdi + 0x64]
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x30]
movups xmmword [rdi + 0x9c], xmm0
mov rcx, rdi
movups xmm0, xmmword [rdi + 0x74]
movups xmmword [rdi + 0xac], xmm1
movups xmm1, xmmword [rdi + 0x84]
movups xmmword [rdi + 0xbc], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + 0xcc], xmm1
call fcn.14018e490
mov ebx, eax
test eax, eax
js 0x14018e52c
and dword [rsp + 0x38], 0
lea rax, [rbp - 0x69]
and dword [rbp - 0x71], 0
lea rdx, [rsp + 0x30]
mov qword [rbp - 0x79], rax
mov r8d, 0x40
mov rax, qword [0x140438658]
mov ecx, dword [rax]
lea rax, [rbp - 0x79]
add rax, rcx
mov rcx, rdi
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14018e778
mov ebx, eax
test eax, eax
js 0x14018e52c
mov byte [rdi + 0x9a], 1
jmp 0x14018e4db