Function at 0x14002f620
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d6a80]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rdx
mov r15, rcx
mov qword [rbp - 0x28], rcx
xor ecx, ecx
lea eax, [r8 - 0x10]
test eax, 0xfffffff7
je 0x14002f669
cmp r8d, 0x20
jne 0x14002f919
mov dword [rbp - 0x60], ecx
mov dword [rbp - 0x5c], 1
mov dword [rbp - 0x58], 2
mov dword [rbp - 0x54], 4
mov dword [rbp - 0x50], 8
mov dword [rbp - 0x4c], 0x10
mov dword [rbp - 0x48], 0x20
mov dword [rbp - 0x44], 0x40
mov dword [rbp - 0x40], 0x80
mov dword [rbp - 0x3c], 0x1b
mov dword [rbp - 0x38], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
cmp r8d, 0x10
je 0x14002f6f1
cmp r8d, 0x18
je 0x14002f6e3
cmp r8d, 0x20
jne 0x14002f93a
lea r14d, [r8 + 0x1c]
mov r13d, 0xf0
jmp 0x14002f6fd
mov r14d, 0x34
mov r13d, IStream_Reset
jmp 0x14002f6fd
mov r14d, 0x2c
mov r13d, 0xb0
xorps xmm0, xmm0
mov eax, r14d
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rcx
lea rdi, [rax*4]
mov rcx, rdi
call fcn.140078550
mov qword [rbp - 0x20], rax
lea rbx, [rdi + rax]
mov qword [rbp - 0x10], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400a80d0
mov qword [rbp - 0x18], rbx
test esi, esi
jle 0x14002f753
xor edx, edx
nop
mov ecx, dword [r12 + rdx*4]
mov rax, qword [rbp - 0x20]
mov dword [rax + rdx*4], ecx
inc rdx
cmp rdx, rsi
jl 0x14002f740
mov r10d, esi
cmp esi, r14d
jge 0x14002f851
xor r9d, r9d
lea rbx, [rsi*4]
lea r12, str.cw
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbx + r9]
mov r11, qword [rbp - 0x20]
mov ecx, dword [rcx + r11 - 4]
mov eax, r10d
cdq
idiv esi
movsxd rdi, eax
test edx, edx
jne 0x14002f7e7
ror ecx, 8
mov r8d, ecx
mov eax, ecx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + r12]
mov eax, r8d
shr rax, 0x18
movzx eax, byte [rax + r12]
shl eax, 8
or ecx, eax
shl ecx, 8
mov eax, r8d
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + r12]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + r12]
or ecx, edx
xor ecx, dword [rbp + rdi*4 - 0x60]
jmp 0x14002f836
cmp esi, 6
jle 0x14002f836
cmp edx, 4
jne 0x14002f836
mov r8, rcx
mov rax, rcx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + r12]
mov rax, r8
shr rax, 0x18
movzx eax, byte [rax + r12]
shl eax, 8
or ecx, eax
shl ecx, 8
mov rax, r8
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + r12]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + r12]
or ecx, edx
xor ecx, dword [r9 + r11]
lea rax, [r9 + r11]
mov dword [rax + rbx], ecx
inc r10d
add r9, 4
cmp r10d, r14d
jl 0x14002f780
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r15], xmm0
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
mov rcx, r13
call fcn.140078550
mov rbx, rax
mov qword [r15], rax
add rax, r13
mov qword [r15 + 0x10], rax
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.1400a80d0
lea rax, [rbx + r13]
mov qword [r15 + 8], rax
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
sub r8, rdx
sar r8, 2
lea r8, [r8*4]
mov rcx, qword [r15]
call fcn.1400a7a30
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14002f8e9
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f8e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f913
call fcn.14007858c
mov rax, r15
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400786a0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14007f7cc
int3
lea rdx, [0x1400aeae8]
lea rcx, [rbp - 0x60]
call fcn.140028d30
lea rdx, [0x1400d4a90]
lea rcx, [rbp - 0x60]
call fcn.140079b24
int3
lea rdx, [0x1400aeae8]
lea rcx, [rbp - 0x60]
call fcn.140028d30
lea rdx, [0x1400d4a90]
lea rcx, [rbp - 0x60]
call fcn.140079b24
int3