Function at 0x140001380
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 [0x140044020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x1400013b4
jmp 0x140001c15
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0xc]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x28], 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 + 0x28]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], 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 + 0x28]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], 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 + 0x28]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
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 + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x2c], 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 + 0x2c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], 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 + 0x2c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], 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 + 0x2c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
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 + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x30], 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 + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], 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 + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], 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 + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
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 + 0x58]
movzx eax, byte [rax]
shl eax, 0x18
mov dword [rsp + 0x24], 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 + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], 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 + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], 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 + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x24]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x10], 1
jmp 0x140001668
mov eax, dword [rsp + 0x10]
inc eax
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x3d4]
cmp dword [rsp + 0x10], eax
jge 0x1400018a6
movsxd rax, dword [rsp + 0x10]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0xc]
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x28]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003c250]
mov edx, dword [rsp + 0x2c]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x14003be50]
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, [0x14003ba50]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x24]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x14003cf50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x2c]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003c250]
mov edx, dword [rsp + 0x30]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x14003be50]
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, [0x14003ba50]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x14003cf50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x30]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003c250]
mov edx, dword [rsp + 0x24]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x14003be50]
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, [0x14003ba50]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x2c]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x14003cf50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x24]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003c250]
mov edx, dword [rsp + 0x28]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x14003be50]
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, [0x14003ba50]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x30]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x14003cf50]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 8]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x14]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x18]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x1c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
jmp 0x14000165e
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3d4]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0xc]
mov qword [rsp + 8], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x2c]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x30]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x24]
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 8]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 0x2c]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x30]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x24]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x28]
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 8]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 0x30]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x24]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x28]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x2c]
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 8]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov eax, dword [rsp + 0x24]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x28]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x2c]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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 + 0x30]
and eax, 0xff
cdqe
lea rcx, [0x14003ca50]
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
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000aea0
add rsp, 0x48
ret