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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov edi, dword [rbp + 0xc0]
mov r14, r9
mov rsi, r8
mov r12, rcx
lea r15d, [rdi + 6]
cmp edi, r15d
jae 0x180031725
mov qword [rax + 8], rbx
lea rdx, [0x180000000]
mov rbx, qword [rbp + 0xc8]
add edi, 0xfffffee0
mov qword [rax + 0x18], r13
mov r13, qword [rbp + 0xd0]
nop
cmp edi, 9
ja case.0x180031453.2
mov ecx, dword [rdx + rdi*4 + 0x31740]
add rcx, rdx
jmp rcx
mov r9d, 0x110
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.18003fb00
xor eax, eax
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
lea edx, [rax + 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call fcn.180007140
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [r12], xmm1
movsd qword [r12 + 0x10], xmm0
jmp case.0x180031453.2
lea rax, [rbp + 0xc0]
mov dword [rbp + 0xc0], 0x40
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], 0
lea rcx, [rbp - 0x30]
xor r8d, r8d
mov dword [rsp + 0x20], 0xd
xor edx, edx
call fcn.180007670
mov rcx, qword [rbp + 0xa8]
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov eax, dword [rcx]
lea rcx, [rbp - 0x30]
mov dword [rbp + 0xc0], eax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xd
call fcn.180007670
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8d, 0x88
lea rdx, [rbp - 0x30]
xor ecx, ecx
call fcn.18002f060
jmp case.0x180031453.2
mov r8, qword [rsi]
lea rcx, [rsp + 0x50]
mov rdx, r14
call fcn.180069040
mov r8, qword [rsi]
lea rcx, [rbp - 0x70]
mov rdx, r14
call fcn.180069040
xor eax, eax
mov ecx, 0x40
nop
xor byte [rsp + rax + 0x50], 0x36
xor byte [rbp + rax - 0x70], 0x5c
lea rax, [rax + 1]
sub rcx, 1
jne 0x180031570
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea ecx, [r8 + 0x7b]
call fcn.18000a630
jmp case.0x180031453.2
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea ecx, [r8 + 0x7b]
call fcn.18000a630
lea rax, [rbp + 0xc0]
mov dword [rbp + 0xc0], 0x40
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x70]
xor ebx, ebx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xd
call fcn.180007670
lea rax, [rbp + 0xc0]
mov dword [rbp + 0xc0], 0x14
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rbx
mov r9, r13
xor r8d, r8d
mov dword [rsp + 0x20], 0xd
xor edx, edx
call fcn.180007670
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8d, 0x88
lea rdx, [rbp - 0x30]
xor ecx, ecx
call fcn.18002f060
jmp case.0x180031453.2
cmp qword [rsi], 0x40
jbe 0x1800316cd
mov ebx, 0x100
mov eax, ebx
sub eax, 0x100
je 0x1800316af
cmp eax, 1
jne 0x1800316bf
mov eax, dword [rsi]
lea rcx, [rbp - 0x30]
mov dword [rbp + 0xc0], eax
mov r9, r14
lea rax, [rbp + 0xc0]
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xd
call fcn.180007670
lea rax, [rbp + 0x30]
xor r9d, r9d
mov r8d, 0x88
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
xor ecx, ecx
call fcn.18002f060
lea r14, [rbp + 0x30]
mov qword [rsi], 0x14
jmp 0x1800316bf
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea ecx, [r8 + 0x7b]
call fcn.18000a630
inc ebx
cmp ebx, 0x102
jb 0x180031641
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
mov rbx, qword [rbp + 0xc8]
lea rdx, [0x180000000]
inc edi
lea eax, [rdi + 0x120]
cmp eax, r15d
jb 0x180031440
mov rbx, qword [rsp + 0x1a0]
mov r13, qword [rsp + 0x1b0]
mov rsi, qword [rsp + 0x1b8]
mov rax, r12
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret