Function at 0x14002a8b0
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, 0x78
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x14002a8f5
mov rdx, qword [0x14009a898]
lea rcx, [rsp + 0x58]
call fcn.14003a6c0
lea rdx, [0x140096b28]
lea rcx, [rsp + 0x58]
call fcn.140046c50
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax + 0x1ec]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x30]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x2c]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 0x28]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 0x28]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
mov ecx, dword [rsp + 0x28]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 0x10
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
shl eax, 8
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x24]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x40], 1
jmp 0x14002ac3f
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x3d4]
cmp dword [rsp + 0x40], eax
jge 0x14002ae86
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax + 0x1ec]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140081b20]
mov edx, dword [rsp + 0x24]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140081720]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x28]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140081320]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x2c]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140080f20]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x38]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x2c]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140081b20]
mov edx, dword [rsp + 0x30]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140081720]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x24]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140081320]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140080f20]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x38]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x28]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140081b20]
mov edx, dword [rsp + 0x2c]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140081720]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x30]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140081320]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x24]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140080f20]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x38]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x24]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140081b20]
mov edx, dword [rsp + 0x28]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140081720]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x2c]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140081320]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x30]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140080f20]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x38]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
jmp 0x14002ac35
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 0x3d4]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax + 0x1ec]
mov qword [rsp + 0x38], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x28]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x2c]
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x2c]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x30]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x28]
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 8
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x2c]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 9
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x30]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0xb
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x18
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x28]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 0x10
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xd
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x2c]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x20]
sar ecx, 8
xor eax, ecx
mov ecx, 1
imul rcx, rcx, 0xe
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x30]
and eax, 0xff
cdqe
lea rcx, [0x140082f20]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0xf
mov rdx, qword [rsp + 0x90]
mov byte [rdx + rcx], al
add rsp, 0x78
ret