Function at 0x180049d60
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 [0x1801d0100]
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 0x180049e44
mov qword [rsp + 0x60], rbx
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.180048bd0
lea rcx, [rbp - 0x20]
call fcn.180048d10
lea rcx, [rbp - 0x20]
call fcn.180048f90
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 0x180049dd7
mov rbx, qword [rsp + 0x60]
mov r8d, r9d
mov eax, r9d
lea r9, [0x180148e20]
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.180048d10
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.18007bb00
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret