Function at 0x140002310
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 0x140002332
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 8
jae 0x1400023ea
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 0x140002328
mov dword [rsp + 8], 8
jmp 0x1400023fe
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x3c
jae 0x140002786
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, 8
div ecx
mov eax, edx
test eax, eax
jne 0x1400025f3
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, str.cw
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, str.cw
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, str.cw
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, str.cw
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, 8
div ecx
mov eax, eax
lea rcx, [0x140016520]
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 0x1400026a3
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 4]
lea rcx, str.cw
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, str.cw
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, str.cw
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, str.cw
mov edx, 1
imul rdx, rdx, 3
movzx eax, 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 0x1400023f4
add rsp, 0x28
ret