Function at 0x180004890
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 0x1800048b2
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 4
jae 0x18000496a
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]
movzx eax, 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]
movzx eax, 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]
movzx eax, 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]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x1800048a8
mov dword [rsp + 8], 4
jmp 0x18000497e
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x2c
jae 0x180004c56
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]
movzx eax, 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]
movzx eax, 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]
movzx eax, 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]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 4], al
xor edx, edx
mov eax, dword [rsp + 8]
mov ecx, 4
div ecx
mov eax, edx
test eax, eax
jne 0x180004b73
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 4]
mov byte [rsp], al
mov eax, 1
imul rax, rax, 1
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 4]
mov byte [rsp + rcx + 4], al
mov eax, 1
imul rax, rax, 2
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 4]
mov byte [rsp + rcx + 4], al
mov eax, 1
imul rax, rax, 3
mov ecx, 1
imul rcx, rcx, 2
movzx eax, byte [rsp + rax + 4]
mov byte [rsp + rcx + 4], al
mov eax, 1
imul rax, rax, 3
movzx ecx, byte [rsp]
mov byte [rsp + rax + 4], cl
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 4]
lea rcx, [0x18004fd40]
mov edx, 1
imul rdx, rdx, 0
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 4]
lea rcx, [0x18004fd40]
mov edx, 1
imul rdx, rdx, 1
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 4]
lea rcx, [0x18004fd40]
mov edx, 1
imul rdx, rdx, 2
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 4], al
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 4]
lea rcx, [0x18004fd40]
mov edx, 1
imul rdx, rdx, 3
movzx eax, 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, 4
div ecx
mov eax, eax
lea rcx, [0x18004fc30]
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
mov eax, dword [rsp + 8]
shl eax, 2
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
lea eax, [rax*4 - 0x10]
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 0x180004974
add rsp, 0x28
ret