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

Disassembly:
mov qword [rsp + 0x18], r8
push r12
push r13
push r14
sub rsp, 0x10
mov r13d, dword [rcx + 0xf0]
mov r12, r8
shr r13d, 1
mov r14, rcx
lea eax, [r13 - 1]
cmp eax, 6
ja 0x1800c79c7
mov eax, dword [rdx]
mov r8d, eax
mov r9d, dword [rdx + 4]
mov r11d, r9d
mov r10d, dword [rdx + 8]
mov edx, dword [rdx + 0xc]
rol r9d, 8
and r9d, 0xff00ff
mov qword [rsp + 0x30], rbx
ror r11d, 8
ror r8d, 8
and r11d, 0xff00ff00
or r11d, r9d
rol eax, 8
xor r11d, dword [rcx + 4]
mov r9d, r10d
rol r10d, 8
and r8d, 0xff00ff00
and r10d, 0xff00ff
ror r9d, 8
and r9d, 0xff00ff00
mov qword [rsp + 0x38], rbp
or r9d, r10d
mov qword [rsp + 0x48], rsi
xor r9d, dword [rcx + 8]
mov r10d, edx
ror r10d, 8
and eax, 0xff00ff
rol edx, 8
and r10d, 0xff00ff00
and edx, 0xff00ff
mov qword [rsp + 8], rdi
or r10d, edx
mov qword [rsp], r15
xor r10d, dword [rcx + 0xc]
lea r15, [0x1801141f0]
or r8d, eax
lea rdi, [0x1801151f0]
xor r8d, dword [rcx]
mov rax, r15
xor ebx, ebx
mov edx, ebx
mov ecx, 0x10
nop word [rax + rax]
and edx, dword [rax]
add rax, 0x40
sub rcx, 1
jne 0x1800c74f0
cmp rax, rdi
jl 0x1800c74e0
or r8d, edx
mov eax, r10d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, r8d
mov ebp, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor ebp, dword [r15 + rcx*4 + 0x800]
mov edx, r9d
shr rdx, 0x18
xor ebp, dword [r15 + rax*4]
movzx eax, r11b
mov esi, dword [r15 + rdx*4]
xor ebp, dword [r15 + rax*4 + 0xc00]
mov eax, r10d
xor ebp, dword [r14 + 0x10]
shr eax, 8
movzx ecx, al
mov eax, r11d
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, r9b
shr r9d, 0x10
xor edi, dword [r15 + rcx*4 + 0x400]
xor edi, dword [r15 + rax*4 + 0xc00]
mov eax, r11d
xor edi, dword [r14 + 0x14]
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
shr r11d, 8
xor esi, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r10b
xor esi, dword [r15 + rcx*4 + 0x800]
xor esi, dword [r15 + rax*4 + 0xc00]
xor esi, dword [r14 + 0x18]
movzx eax, r9b
mov ecx, r10d
shr rcx, 0x18
mov r15d, dword [r15 + rcx*4]
lea rcx, [0x1801141f0]
xor r15d, dword [rcx + rax*4 + 0x400]
movzx eax, r11b
xor r15d, dword [rcx + rax*4 + 0x800]
movzx eax, r8b
xor r15d, dword [rcx + rax*4 + 0xc00]
xor r15d, dword [r14 + 0x1c]
add r14, 0x20
add r13d, 0xffffffff
je 0x1800c77ff
lea r12, [0x1801141f0]
mov eax, r15d
shr eax, 0x10
movzx edx, al
mov eax, esi
shr eax, 8
movzx ecx, al
mov eax, ebp
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 [r14]
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, ebp
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 [r14 + 4]
shr eax, 0x10
movzx ecx, al
mov eax, ebp
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 [r14 + 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, bpl
xor r8d, dword [r12 + rax*4 + 0xc00]
xor r8d, dword [r14 + 0xc]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, r11d
mov ebp, dword [r12 + rdx*4 + 0x400]
shr rax, 0x18
xor ebp, dword [r12 + rcx*4 + 0x800]
xor ebp, dword [r12 + rax*4]
movzx eax, r10b
xor ebp, dword [r12 + rax*4 + 0xc00]
mov eax, r8d
xor ebp, dword [r14 + 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 [r14 + 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 [r14 + 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 [r14 + 0x1c]
add r14, 0x20
add r13d, 0xffffffff
jne 0x1800c7612
mov r12, qword [rsp + 0x40]
mov rcx, rbx
lea r11, [0x1801151f0]
nop dword [rax]
movzx eax, byte [rcx + r11]
add rcx, 0x40
and ebx, eax
cmp rcx, 0x100
jl 0x1800c7810
or ebp, ebx
mov eax, ebp
shr rax, 0x18
movzx r10d, byte [rax + r11]
mov eax, r15d
shr eax, 0x10
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + r11]
xor r10d, eax
mov eax, esi
shr eax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + r11]
xor r10d, eax
movzx eax, dil
shl r10d, 8
movzx ecx, byte [rax + r11]
xor r10d, ecx
mov eax, edi
xor r10d, dword [r14]
shr rax, 0x18
movzx r9d, byte [rax + r11]
mov eax, ebp
shr eax, 0x10
movzx ecx, al
shl r9d, 8
movzx eax, byte [rcx + r11]
xor r9d, eax
mov eax, r15d
shr eax, 8
movzx ecx, al
shl r9d, 8
movzx eax, byte [rcx + r11]
xor r9d, eax
movzx eax, sil
shl r9d, 8
movzx ecx, byte [rax + r11]
xor r9d, ecx
mov eax, esi
xor r9d, dword [r14 + 4]
shr rax, 0x18
shr esi, 0x10
movzx r8d, byte [rax + r11]
mov eax, edi
shr eax, 0x10
movzx ecx, al
shl r8d, 8
shr edi, 8
movzx eax, byte [rcx + r11]
xor r8d, eax
mov eax, ebp
shr eax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r11]
xor r8d, eax
movzx eax, r15b
shl r8d, 8
movzx ecx, byte [rax + r11]
xor r8d, ecx
mov eax, r15d
xor r8d, dword [r14 + 8]
shr rax, 0x18
movzx edx, byte [rax + r11]
shl edx, 8
movzx eax, sil
movzx ecx, byte [rax + r11]
xor edx, ecx
movzx eax, dil
shl edx, 8
movzx ecx, byte [rax + r11]
xor edx, ecx
movzx eax, bpl
shl edx, 8
movzx ecx, byte [rax + r11]
mov eax, r10d
xor edx, ecx
xor edx, dword [r14 + 0xc]
ror eax, 8
mov r15, qword [rsp]
and eax, 0xff00ff00
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
rol r10d, 8
and r10d, 0xff00ff
or eax, r10d
mov dword [r12], eax
mov eax, r9d
ror eax, 8
and eax, 0xff00ff00
rol r9d, 8
and r9d, 0xff00ff
or eax, r9d
mov dword [r12 + 4], eax
mov eax, r8d
ror eax, 8
and eax, 0xff00ff00
rol r8d, 8
and r8d, 0xff00ff
or eax, r8d
mov dword [r12 + 8], eax
mov eax, edx
ror eax, 8
rol edx, 8
and eax, 0xff00ff00
and edx, 0xff00ff
or eax, edx
mov dword [r12 + 0xc], eax
add rsp, 0x10
pop r14
pop r13
pop r12
ret