Function at 0x1400044e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400670c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r9d, dword [rdx]
mov esi, 1
mov r10d, dword [rdx + 4]
mov r15, r8
mov r11d, dword [rdx + 8]
mov r14, rcx
mov edi, dword [rdx + 0xc]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
xor r9d, dword [rdx]
dec rax
xor r10d, dword [rdx + 4]
xor r11d, dword [rdx + 8]
xor edi, dword [rdx + 0xc]
mov dword [rbp - 0x20], r9d
mov dword [rbp - 0x1c], r10d
mov dword [rbp - 0x18], r11d
mov dword [rbp - 0x14], edi
cmp rax, rsi
jbe 0x1400045c4
mov qword [rsp + 0x60], rbx
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.140003ab0
lea rcx, [rbp - 0x20]
call fcn.140003bf0
lea rcx, [rbp - 0x20]
call fcn.140003d30
mov rcx, qword [r14]
add rbx, rbx
mov r9d, dword [rbp - 0x20]
inc esi
mov r10d, dword [rbp - 0x1c]
mov r11d, dword [rbp - 0x18]
xor r9d, dword [rcx + rbx*8]
xor r10d, dword [rcx + rbx*8 + 4]
xor r11d, dword [rcx + rbx*8 + 8]
mov edi, dword [rbp - 0x14]
xor edi, dword [rcx + rbx*8 + 0xc]
mov rax, qword [r14 + 8]
sub rax, rcx
mov ebx, esi
sar rax, 4
dec rax
mov dword [rbp - 0x20], r9d
mov dword [rbp - 0x1c], r10d
mov dword [rbp - 0x18], r11d
mov dword [rbp - 0x14], edi
cmp rbx, rax
jb 0x140004557
mov rbx, qword [rsp + 0x60]
mov r8d, r9d
mov eax, r9d
lea r9, str.cw
shr rax, 0x10
movzx ecx, al
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rcx + r9]
movzx eax, byte [rax + r9]
shl eax, 8
or edx, eax
mov eax, r8d
shr rax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + r9]
or edx, eax
movzx eax, r8b
shl edx, 8
movzx ecx, byte [rax + r9]
or edx, ecx
mov eax, r10d
shr rax, 0x10
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov dword [rbp - 0x20], edx
movzx r8d, byte [rcx + r9]
movzx eax, byte [rax + r9]
shl eax, 8
or r8d, eax
mov eax, r10d
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r9]
or r8d, eax
movzx eax, r10b
shl r8d, 8
movzx ecx, byte [rax + r9]
or r8d, ecx
mov eax, r11d
shr rax, 0x10
movzx ecx, al
mov dword [rbp - 0x1c], r8d
mov eax, r11d
shr rax, 0x18
movzx r8d, byte [rcx + r9]
movzx eax, byte [rax + r9]
shl eax, 8
or r8d, eax
mov eax, r11d
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r9]
or r8d, eax
movzx eax, r11b
shl r8d, 8
movzx ecx, byte [rax + r9]
or r8d, ecx
mov eax, edi
shr rax, 0x10
movzx ecx, al
mov dword [rbp - 0x18], r8d
mov eax, edi
shr rax, 0x18
movzx r8d, byte [rcx + r9]
movzx eax, byte [rax + r9]
shl eax, 8
or r8d, eax
mov eax, edi
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r9]
or r8d, eax
movzx eax, dil
shl r8d, 8
movzx ecx, byte [rax + r9]
or r8d, ecx
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x14], r8d
call fcn.140003bf0
mov r9, qword [r14 + 8]
mov r8d, dword [rbp - 0x20]
mov edx, dword [rbp - 0x1c]
mov ecx, dword [rbp - 0x18]
xor r8d, dword [r9 - 0x10]
xor edx, dword [r9 - 0xc]
xor ecx, dword [r9 - 8]
mov eax, dword [rbp - 0x14]
xor eax, dword [r9 - 4]
mov dword [r15 + 0xc], eax
mov dword [r15], r8d
mov dword [r15 + 4], edx
mov dword [r15 + 8], ecx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001ada0
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret