Function at 0x140007458
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, 0xa8
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x140007483
jmp 0x140007ab8
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x3d0], 0x10
jne 0x1400074b6
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.140007ac0
jmp 0x140007ab8
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x3d0]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
jne 0x1400074e2
mov dword [rsp + 0x48], 0
jmp 0x140007503
cmp dword [rsp + 0x24], 6
jne 0x1400074f3
mov dword [rsp + 0x44], 1
jmp 0x1400074fb
mov dword [rsp + 0x44], 2
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x20
lea rcx, [0x14002cec0]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 1
add rax, rcx
mov ecx, 4
imul rcx, rcx, 1
mov eax, dword [rax + rcx]
mov dword [rsp + 0x4c], eax
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x20
lea rcx, [0x14002cec0]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 2
add rax, rcx
mov ecx, 4
imul rcx, rcx, 1
mov eax, dword [rax + rcx]
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x20
lea rcx, [0x14002cec0]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 3
add rax, rcx
mov ecx, 4
imul rcx, rcx, 1
mov eax, dword [rax + rcx]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0xb0]
add rax, 0x458
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x1400075c8
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x14000772c
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x60]
shl eax, 0x18
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x64]
shl eax, 0x10
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x68]
shl eax, 8
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rsp + 0x20]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x38]
add rax, 4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x70]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x78]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x1400075be
mov dword [rsp + 0x2c], 1
jmp 0x140007740
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x3d4]
cmp dword [rsp + 0x2c], eax
jge 0x140007902
mov dword [rsp + 0x20], 0
jmp 0x14000776c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x1400078b8
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 0x18
and eax, 0xff
cdqe
mov qword [rsp + 0x90], rax
lea rcx, [0x14002aea0]
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x20]
add r8d, edx
mov edx, r8d
mov eax, edx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
mov rdx, qword [rsp + 0xb0]
mov eax, dword [rdx + rax*4 + 0x458]
sar eax, 0x10
and eax, 0xff
cdqe
lea rdx, [0x14002b2a0]
mov eax, dword [rdx + rax*4]
mov rdx, qword [rsp + 0x90]
mov ecx, dword [rcx + rdx*4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x20]
add edx, ecx
mov ecx, edx
mov eax, ecx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x14002b6a0]
mov edx, dword [rsp + 0x7c]
xor edx, dword [rcx + rax*4]
mov eax, edx
mov dword [rsp + 0x80], eax
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x20]
add edx, ecx
mov ecx, edx
mov eax, ecx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4 + 0x458]
and eax, 0xff
cdqe
lea rcx, [0x14002baa0]
mov edx, dword [rsp + 0x80]
xor edx, dword [rcx + rax*4]
mov eax, edx
movsxd rcx, dword [rsp + 0x2c]
imul rcx, rcx, 0x20
mov rdx, qword [rsp + 0xb0]
lea rcx, [rdx + rcx + 0x1ec]
movsxd rdx, dword [rsp + 0x20]
xor eax, dword [rcx + rdx*4]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0xb0]
mov dword [rdx + rcx*4 + 0x438], eax
jmp 0x140007762
mov eax, dword [rsp + 0x24]
shl eax, 2
cdqe
mov rcx, qword [rsp + 0xb0]
add rcx, 0x438
mov rdx, qword [rsp + 0xb0]
add rdx, 0x458
mov qword [rsp + 0x98], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x98]
mov rcx, rax
call fcn.140027380
jmp 0x140007736
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
jmp 0x14000791e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x140007ab8
mov rax, qword [rsp + 0xb0]
movsxd rax, dword [rax + 0x3d4]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb0]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rsp + 0x20]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140029da0]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x30]
sar ecx, 0x18
xor eax, ecx
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xc0]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x140029da0]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x30]
sar ecx, 0x10
xor eax, ecx
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xc0]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x140029da0]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x30]
sar ecx, 8
xor eax, ecx
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xc0]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4 + 0x458]
and eax, 0xff
cdqe
lea rcx, [0x140029da0]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xc0]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x140007914
add rsp, 0xa8
ret