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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 8], 0
jmp 0x1800012c6
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 8
jae 0x18000137a
mov eax, dword [rsp + 8]
shl eax, 2
mov eax, eax
mov ecx, dword [rsp + 8]
shl ecx, 2
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 8]
lea eax, [rax*4 + 1]
mov eax, eax
mov ecx, dword [rsp + 8]
lea ecx, [rcx*4 + 1]
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 8]
lea eax, [rax*4 + 2]
mov eax, eax
mov ecx, dword [rsp + 8]
lea ecx, [rcx*4 + 2]
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 8]
lea eax, [rax*4 + 3]
mov eax, eax
mov ecx, dword [rsp + 8]
lea ecx, [rcx*4 + 3]
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x1800012bc
mov dword [rsp + 8], 8
jmp 0x18000138e
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x3c
jae 0x180001705
mov eax, dword [rsp + 8]
lea eax, [rax*4 - 4]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
mov eax, eax
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 4], al
mov eax, dword [rsp + 0xc]
inc eax
mov eax, eax
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x30]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 4], al
mov eax, dword [rsp + 0xc]
add eax, 2
mov eax, eax
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x30]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 4], al
mov eax, dword [rsp + 0xc]
add eax, 3
mov eax, eax
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x30]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 4], al
xor edx, edx
mov eax, dword [rsp + 8]
mov ecx, 8
div ecx
mov eax, edx
test eax, eax
jne 0x180001576
mov eax, 1
imul rax, rax, 0
mov al, byte [rsp + rax + 4]
mov byte [rsp], al
mov eax, 1
imul rax, rax, 1
mov ecx, 1
imul rcx, rcx, 0
mov al, byte [rsp + rax + 4]
mov byte [rsp + rcx + 4], al
mov eax, 1
imul rax, rax, 2
mov ecx, 1
imul rcx, rcx, 1
mov al, byte [rsp + rax + 4]
mov byte [rsp + rcx + 4], al
mov eax, 1
imul rax, rax, 3
mov ecx, 1
imul rcx, rcx, 2
mov al, byte [rsp + rax + 4]
mov byte [rsp + rcx + 4], al
mov eax, 1
imul rax, rax, 3
mov cl, byte [rsp]
mov byte [rsp + rax + 4], cl
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 0
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 1
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 2
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 3
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 4]
mov dword [rsp + 0x14], eax
xor edx, edx
mov eax, dword [rsp + 8]
mov ecx, 8
div ecx
mov eax, eax
lea rcx, [0x180010240]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x14]
xor ecx, eax
mov eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov byte [rsp + rcx + 4], al
xor edx, edx
mov eax, dword [rsp + 8]
mov ecx, 8
div ecx
mov eax, edx
cmp eax, 4
jne 0x180001622
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 0
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 1
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 2
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 3
mov al, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, dword [rsp + 8]
shl eax, 2
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
lea eax, [rax*4 - 0x20]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
mov eax, eax
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
movzx ecx, byte [rsp + rcx + 4]
xor eax, ecx
mov ecx, dword [rsp + 0x10]
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0xc]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 1
movzx ecx, byte [rsp + rcx + 4]
xor eax, ecx
mov ecx, dword [rsp + 0x10]
inc ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0xc]
add eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 2
movzx ecx, byte [rsp + rcx + 4]
xor eax, ecx
mov ecx, dword [rsp + 0x10]
add ecx, 2
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0xc]
add eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 3
movzx ecx, byte [rsp + rcx + 4]
xor eax, ecx
mov ecx, dword [rsp + 0x10]
add ecx, 3
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x180001384
add rsp, 0x28
ret