Function at 0x14002bddc
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x14006e368]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14d, dword [rcx + 4]
xor edi, edi
movups xmm0, xmmword [rdx]
sub r14d, 6
xor r11d, r11d
movsxd r9, r14d
mov rsi, rcx
lea r12d, [rdi + 4]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm1
test r14d, r14d
jle 0x14002be9f
xor r8d, r8d
xor ebx, ebx
xor edx, edx
cmp edi, dword [rsi + 4]
jg 0x14002c00a
cmp r8, r9
jge 0x14002be6c
lea r10, [rbp - 0x30]
lea r10, [r10 + r8*4]
cmp rdx, r12
jge 0x14002be6c
mov eax, dword [r10]
lea rcx, [rdx + rbx*4]
add r10, r12
mov dword [rsi + rcx*4 + 0x18], eax
inc rdx
inc r8
inc r11d
cmp r8, r9
jl 0x14002be4b
cmp rdx, r12
lea eax, [rdi + 1]
cmovne eax, edi
mov edi, eax
xor eax, eax
cmp rdx, r12
cmovne eax, r11d
mov r11d, eax
lea rax, [rbx + 1]
cmovne rax, rbx
mov rbx, rax
xor eax, eax
cmp rdx, r12
cmovne rax, rdx
mov rdx, rax
cmp r8, r9
jl 0x14002be35
cmp edi, dword [rsi + 4]
jg 0x14002c00a
movsxd r10, r11d
lea r13, str.cw
lea r11, [0x14006dd60]
movsxd rbx, edi
movzx eax, byte [rbp + r9*4 - 0x33]
mov cl, byte [rbp - 0x30]
xor cl, byte [rax + r13]
mov byte [rbp - 0x30], cl
movzx eax, byte [rbp + r9*4 - 0x32]
xor cl, byte [r11]
inc r11
mov al, byte [rax + r13]
xor byte [rbp - 0x2f], al
movzx eax, byte [rbp + r9*4 - 0x31]
mov al, byte [rax + r13]
xor byte [rbp - 0x2e], al
movzx eax, byte [rbp + r9*4 - 0x34]
mov byte [rbp - 0x30], cl
mov al, byte [rax + r13]
xor byte [rbp - 0x2d], al
cmp r14d, 8
je 0x14002bf2d
cmp r9, 1
jle 0x14002bfa3
lea rcx, [rbp - 0x2c]
lea r8, [r9 - 1]
mov rdx, r12
mov al, byte [rcx - 4]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14002bf17
sub r8, 1
jne 0x14002bf14
jmp 0x14002bf9f
lea rcx, [rbp - 0x2c]
mov r8d, 3
mov rdx, r12
mov al, byte [rcx - 4]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14002bf3a
sub r8, 1
jne 0x14002bf37
movzx eax, byte [rbp - 0x24]
mov al, byte [rax + r13]
xor byte [rbp - 0x20], al
movzx eax, byte [rbp - 0x23]
mov al, byte [rax + r13]
xor byte [rbp - 0x1f], al
movzx eax, byte [rbp - 0x22]
mov al, byte [rax + r13]
xor byte [rbp - 0x1e], al
movzx eax, byte [rbp - 0x21]
mov al, byte [rax + r13]
xor byte [rbp - 0x1d], al
cmp r9, 5
jle 0x14002bfa3
lea rcx, [rbp - 0x1c]
lea r8, [r9 - 5]
mov rdx, r12
mov al, byte [rcx - 4]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14002bf8b
sub r8, 1
jne 0x14002bf88
xor edx, edx
jmp 0x14002bfaa
xor edx, edx
test r14d, r14d
jle 0x14002c001
cmp edi, dword [rsi + 4]
jg 0x14002c00a
cmp rdx, r9
jge 0x14002bfda
lea r8, [rbp - 0x30]
lea r8, [r8 + rdx*4]
cmp r10, r12
jge 0x14002bfda
mov eax, dword [r8]
lea rcx, [r10 + rbx*4]
add r8, r12
mov dword [rsi + rcx*4 + 0x18], eax
inc r10
inc rdx
cmp rdx, r9
jl 0x14002bfbc
cmp r10, r12
lea eax, [rdi + 1]
cmovne eax, edi
mov edi, eax
lea rax, [rbx + 1]
cmovne rax, rbx
mov rbx, rax
xor eax, eax
cmp r10, r12
cmovne rax, r10
mov r10, rax
cmp rdx, r9
jl 0x14002bfaa
cmp edi, dword [rsi + 4]
jle 0x14002bebc
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140041030
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret