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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x10], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
shl ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 4]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 4]
shl ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 4]
shl ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 4]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 4], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 8]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 8]
shl ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 8]
shl ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 8]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 8], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 0xc]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0xc]
shl ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0xc]
shl ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0xc]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xf0]
sar eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp + 0xc]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 8]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 4]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 4]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0xc]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 8]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 8]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp + 4]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0xc]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0xc]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp + 8]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 4]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x18], eax
mov rax, qword [rsp + 0x10]
add rax, 0x20
mov qword [rsp + 0x10], rax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x140172115
jmp 0x1401722e5
mov eax, dword [rsp + 0x24]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp + 0x18]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x1c]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp + 0x24]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x18]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x1c]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x1c]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp + 0x20]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x24]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x18]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x18]
shr eax, 0x18
mov eax, eax
lea rcx, [0x140179150]
mov edx, dword [rsp + 0x1c]
shr edx, 0x10
and edx, 0xff
mov edx, edx
lea r8, [0x140179550]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x20]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179950]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x24]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140179d50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0xc], eax
jmp 0x140171f29
mov eax, dword [rsp + 0x24]
shr eax, 0x18
mov eax, eax
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x18]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x1c]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp], eax
mov eax, dword [rsp]
shr eax, 0x18
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
shr eax, 0x10
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
shr eax, 0x18
mov eax, eax
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x24]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x18]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x1c]
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 0x18
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 4]
shr eax, 0x10
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 4], al
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rsp + 4]
mov byte [rcx + rax + 4], dl
mov eax, dword [rsp + 0x1c]
shr eax, 0x18
mov eax, eax
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x20]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x24]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x18]
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shr eax, 0x18
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 8]
shr eax, 0x10
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 8]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 8], al
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rsp + 8]
mov byte [rcx + rax + 8], dl
mov eax, dword [rsp + 0x18]
shr eax, 0x18
mov eax, eax
lea rcx, str.RRRR_t_t_t_tjjjj
mov eax, dword [rcx + rax*4]
and eax, 0xff000000
mov ecx, dword [rsp + 0x1c]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x20]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x24]
and ecx, 0xff
mov ecx, ecx
lea rdx, str.RRRR_t_t_t_tjjjj
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shr eax, 0x18
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0xc]
shr eax, 0x10
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0xc]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 0xc], al
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rsp + 0xc]
mov byte [rcx + rax + 0xc], dl
add rsp, 0x38
ret