Function at 0x140003ff0
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, 0x48
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
test eax, eax
jne 0x140004014
jmp 0x140004875
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 4]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 8]
or ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 8]
or ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov ecx, dword [rsp + 8]
or ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 0xc]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 0xc]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov ecx, dword [rsp + 0xc]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0xc]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 0x10]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 0x10]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov ecx, dword [rsp + 0x10]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x10]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 4]
or ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 4]
or ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov ecx, dword [rsp + 4]
or ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov dword [rsp + 0x20], 1
jmp 0x1400042c8
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x3cc]
cmp dword [rsp + 0x20], eax
jge 0x140004506
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 4]
mov qword [rsp + 0x18], rax
mov eax, dword [rsp + 8]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065210]
mov edx, dword [rsp + 0xc]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140065610]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x10]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065a10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 4]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065e10]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0xc]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065210]
mov edx, dword [rsp + 0x10]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140065610]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 4]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065a10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 8]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065e10]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x10]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065210]
mov edx, dword [rsp + 4]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140065610]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 8]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065a10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0xc]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065e10]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 4]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065210]
mov edx, dword [rsp + 8]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140065610]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0xc]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065a10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x10]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140065e10]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 4], eax
jmp 0x1400042be
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3cc]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 4]
mov qword [rsp + 0x18], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 8]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0xc]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x10]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp]
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 0xc]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x10]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 8]
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp]
mov ecx, 1
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 0x10]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 8
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 9
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 8]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0xc]
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp]
mov ecx, 1
imul rcx, rcx, 0xb
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 4]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 8]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xd
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0xc]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xe
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x10]
and eax, 0xff
cdqe
lea rcx, [0x140065010]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp]
mov ecx, 1
imul rcx, rcx, 0xf
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx], al
add rsp, 0x48
ret