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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r13d, dword [rcx + 0xf0]
mov rdi, rdx
shr r13d, 1
mov rbx, rcx
lea eax, [r13 - 1]
cmp eax, 6
ja 0x1800ae4b0
mov esi, 4
lea rcx, [rbp + 0x40]
mov r8d, esi
call fcn.1800baef0
lea rdx, [rdi + 4]
mov r8d, esi
lea rcx, [rbp + 0x58]
call fcn.1800baef0
lea rdx, [rdi + 8]
mov r8d, esi
lea rcx, [rbp - 0x10]
call fcn.1800baef0
lea rdx, [rdi + 0xc]
mov r8d, esi
lea rcx, [rbp - 0xc]
call fcn.1800baef0
mov eax, dword [rbp + 0x40]
lea r15, [0x1800fd330]
mov r8d, eax
lea rdi, [0x1800fe330]
rol eax, 8
mov ecx, 0xff00ff00
ror r8d, 8
mov edx, 0xff00ff
and eax, edx
and r8d, ecx
or r8d, eax
mov eax, dword [rbp + 0x58]
xor r8d, dword [rbx]
mov r9d, eax
rol eax, 8
and eax, edx
ror r9d, 8
and r9d, ecx
or r9d, eax
mov eax, dword [rbp - 0x10]
xor r9d, dword [rbx + 4]
mov r10d, eax
rol eax, 8
and eax, edx
ror r10d, 8
and r10d, ecx
or r10d, eax
mov eax, dword [rbp - 0xc]
xor r10d, dword [rbx + 8]
mov r11d, eax
ror r11d, 8
and r11d, ecx
rol eax, 8
and eax, edx
or r11d, eax
mov rax, r15
xor r11d, dword [rbx + 0xc]
xor r12d, r12d
mov ecx, r12d
mov edx, 0x10
and ecx, dword [rax]
add rax, 0x40
sub rdx, 1
jne 0x1800adfdf
cmp rax, rdi
jl 0x1800adfda
or r8d, ecx
mov eax, r11d
shr eax, 0x10
movzx edx, al
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, r8d
mov r14d, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor r14d, dword [r15 + rcx*4 + 0x800]
mov edx, r10d
shr rdx, 0x18
xor r14d, dword [r15 + rax*4]
movzx eax, r9b
mov esi, dword [r15 + rdx*4]
xor r14d, dword [r15 + rax*4 + 0xc00]
mov eax, r11d
xor r14d, dword [rbx + 0x10]
shr eax, 8
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov edi, dword [r15 + rcx*4 + 0x800]
xor edi, dword [r15 + rax*4]
mov eax, r8d
shr eax, 0x10
movzx ecx, al
movzx eax, r10b
shr r10d, 0x10
xor edi, dword [r15 + rcx*4 + 0x400]
xor edi, dword [r15 + rax*4 + 0xc00]
mov eax, r9d
xor edi, dword [rbx + 0x14]
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
shr r9d, 8
xor esi, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r11b
xor esi, dword [r15 + rcx*4 + 0x800]
xor esi, dword [r15 + rax*4 + 0xc00]
xor esi, dword [rbx + 0x18]
movzx eax, r10b
mov ecx, r11d
shr rcx, 0x18
mov r15d, dword [r15 + rcx*4]
lea rcx, [0x1800fd330]
xor r15d, dword [rcx + rax*4 + 0x400]
movzx eax, r9b
xor r15d, dword [rcx + rax*4 + 0x800]
movzx eax, r8b
xor r15d, dword [rcx + rax*4 + 0xc00]
xor r15d, dword [rbx + 0x1c]
add rbx, 0x20
add r13d, 0xffffffff
je 0x1800ae2eb
lea r12, [0x1800fd330]
mov eax, r15d
shr eax, 0x10
movzx edx, al
mov eax, esi
shr eax, 8
movzx ecx, al
mov eax, r14d
mov r11d, dword [r12 + rdx*4 + 0x400]
shr rax, 0x18
xor r11d, dword [r12 + rcx*4 + 0x800]
mov edx, esi
shr rdx, 0x18
xor r11d, dword [r12 + rax*4]
movzx eax, dil
mov r9d, dword [r12 + rdx*4]
xor r11d, dword [r12 + rax*4 + 0xc00]
mov eax, r15d
xor r11d, dword [rbx]
shr eax, 8
movzx ecx, al
mov eax, edi
shr rax, 0x18
mov r10d, dword [r12 + rcx*4 + 0x800]
xor r10d, dword [r12 + rax*4]
mov eax, r14d
shr eax, 0x10
movzx ecx, al
movzx eax, sil
shr esi, 0x10
xor r10d, dword [r12 + rcx*4 + 0x400]
xor r10d, dword [r12 + rax*4 + 0xc00]
mov eax, edi
xor r10d, dword [rbx + 4]
shr eax, 0x10
movzx ecx, al
mov eax, r14d
shr eax, 8
shr edi, 8
xor r9d, dword [r12 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r15b
xor r9d, dword [r12 + rcx*4 + 0x800]
xor r9d, dword [r12 + rax*4 + 0xc00]
xor r9d, dword [rbx + 8]
movzx eax, sil
mov ecx, r15d
shr rcx, 0x18
mov r8d, dword [r12 + rcx*4]
xor r8d, dword [r12 + rax*4 + 0x400]
movzx eax, dil
xor r8d, dword [r12 + rax*4 + 0x800]
movzx eax, r14b
xor r8d, dword [r12 + rax*4 + 0xc00]
xor r8d, dword [rbx + 0xc]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, r11d
mov r14d, dword [r12 + rdx*4 + 0x400]
shr rax, 0x18
xor r14d, dword [r12 + rcx*4 + 0x800]
xor r14d, dword [r12 + rax*4]
movzx eax, r10b
xor r14d, dword [r12 + rax*4 + 0xc00]
mov eax, r8d
xor r14d, dword [rbx + 0x10]
shr eax, 8
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edi, dword [r12 + rcx*4 + 0x800]
xor edi, dword [r12 + rax*4]
mov eax, r11d
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor edi, dword [r12 + rcx*4 + 0x400]
xor edi, dword [r12 + rax*4 + 0xc00]
xor edi, dword [rbx + 0x14]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
mov edx, r9d
shr rdx, 0x18
shr r9d, 0x10
shr r10d, 8
mov esi, dword [r12 + rdx*4]
xor esi, dword [r12 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor esi, dword [r12 + rcx*4 + 0x800]
xor esi, dword [r12 + rax*4 + 0xc00]
xor esi, dword [rbx + 0x18]
movzx eax, r9b
mov ecx, r8d
shr rcx, 0x18
mov r15d, dword [r12 + rcx*4]
xor r15d, dword [r12 + rax*4 + 0x400]
movzx eax, r10b
xor r15d, dword [r12 + rax*4 + 0x800]
movzx eax, r11b
xor r15d, dword [r12 + rax*4 + 0xc00]
xor r15d, dword [rbx + 0x1c]
add rbx, 0x20
add r13d, 0xffffffff
jne 0x1800ae0ff
xor r12d, r12d
mov rcx, r12
lea r8, [0x1800fd200]
movzx eax, byte [rcx + r8]
add rcx, 0x40
and r12d, eax
cmp rcx, 0x100
jl 0x1800ae2f5
or r14d, r12d
mov r9d, 0xff00ff00
mov eax, r14d
mov r10d, 0xff00ff
shr rax, 0x18
movzx edx, byte [rax + r8]
mov eax, r15d
shr eax, 0x10
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + r8]
xor edx, eax
mov eax, esi
shr eax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + r8]
xor edx, eax
movzx eax, dil
shl edx, 8
movzx ecx, byte [rax + r8]
xor edx, ecx
xor edx, dword [rbx]
mov eax, edx
rol edx, 8
ror eax, 8
and edx, r10d
and eax, r9d
or eax, edx
mov dword [rbp + 0x40], eax
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r8]
mov eax, r14d
shr eax, 0x10
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + r8]
xor edx, eax
mov eax, r15d
shr eax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + r8]
xor edx, eax
movzx eax, sil
shl edx, 8
movzx ecx, byte [rax + r8]
xor edx, ecx
xor edx, dword [rbx + 4]
mov eax, edx
rol edx, 8
ror eax, 8
and edx, r10d
and eax, r9d
or eax, edx
mov dword [rbp + 0x58], eax
mov eax, esi
shr rax, 0x18
movzx edx, byte [rax + r8]
mov eax, edi
shr eax, 0x10
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + r8]
xor edx, eax
mov eax, r14d
shr eax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + r8]
xor edx, eax
movzx eax, r15b
shl edx, 8
movzx ecx, byte [rax + r8]
xor edx, ecx
xor edx, dword [rbx + 8]
mov eax, edx
ror eax, 8
and eax, r9d
rol edx, 8
and edx, r10d
shr edi, 8
or eax, edx
shr esi, 0x10
mov dword [rbp - 0x10], eax
mov eax, r15d
shr rax, 0x18
movzx edx, byte [rax + r8]
shl edx, 8
movzx eax, sil
movzx ecx, byte [rax + r8]
xor edx, ecx
movzx eax, dil
shl edx, 8
mov edi, 4
movzx ecx, byte [rax + r8]
xor edx, ecx
movzx eax, r14b
shl edx, 8
movzx ecx, byte [rax + r8]
mov r8d, edi
xor edx, ecx
xor edx, dword [rbx + 0xc]
mov rbx, qword [rbp + 0x50]
mov eax, edx
ror eax, 8
mov rcx, rbx
rol edx, 8
and eax, r9d
and edx, r10d
or eax, edx
lea rdx, [rbp + 0x40]
mov dword [rbp - 0xc], eax
call fcn.1800baef0
lea rcx, [rbx + 4]
mov r8d, edi
lea rdx, [rbp + 0x58]
call fcn.1800baef0
lea rcx, [rbx + 8]
mov r8d, edi
lea rdx, [rbp - 0x10]
call fcn.1800baef0
lea rcx, [rbx + 0xc]
mov r8d, edi
lea rdx, [rbp - 0xc]
call fcn.1800baef0
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret