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

Disassembly:
jmp 0x140013f30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rcx, [0x14004006a]
call fcn.14001193d
nop
mov rax, qword [rbp + 0x250]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x140013f6e
jmp 0x1400145aa
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x10
jne 0x140013f9e
mov r8, qword [rbp + 0x260]
mov rdx, qword [rbp + 0x258]
mov rcx, qword [rbp + 0x250]
call fcn.1400113bb
nop
jmp 0x1400145aa
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3d0]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 4
jne 0x140013fc9
mov dword [rbp + 0x214], 0
jmp 0x140013ff1
cmp dword [rbp + 4], 6
jne 0x140013fdb
mov dword [rbp + 0x218], 1
jmp 0x140013fe5
mov dword [rbp + 0x218], 2
mov eax, dword [rbp + 0x218]
mov dword [rbp + 0x214], eax
mov eax, dword [rbp + 0x214]
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x20
lea rcx, [0x1400306e0]
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 [rbp + 0x44], eax
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x20
lea rcx, [0x1400306e0]
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 [rbp + 0x64], eax
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x20
lea rcx, [0x1400306e0]
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 [rbp + 0x84], eax
mov rax, qword [rbp + 0x250]
add rax, 0x458
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xa4], 0
jmp 0x1400140bb
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xa4], eax
jge 0x1400141e7
mov rax, qword [rbp + 0x258]
movzx eax, byte [rax]
shl eax, 0x18
mov rcx, qword [rbp + 0xe8]
mov dword [rcx], eax
mov rax, qword [rbp + 0x258]
inc rax
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0x258]
movzx eax, byte [rax]
shl eax, 0x10
mov rcx, qword [rbp + 0xe8]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0xe8]
mov dword [rcx], eax
mov rax, qword [rbp + 0x258]
inc rax
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0x258]
movzx eax, byte [rax]
shl eax, 8
mov rcx, qword [rbp + 0xe8]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0xe8]
mov dword [rcx], eax
mov rax, qword [rbp + 0x258]
inc rax
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x258]
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x208]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x208]
mov dword [rcx], eax
mov rax, qword [rbp + 0x258]
inc rax
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0xe8]
add rax, 4
mov qword [rbp + 0xe8], rax
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rbp + 0xa4]
mov rdx, qword [rbp + 0x208]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rdx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x208]
mov dword [rcx], eax
jmp 0x1400140ad
mov dword [rbp + 0x104], 1
jmp 0x140014201
mov eax, dword [rbp + 0x104]
inc eax
mov dword [rbp + 0x104], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3d4]
cmp dword [rbp + 0x104], eax
jge 0x1400143cc
mov dword [rbp + 0xa4], 0
jmp 0x140014234
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xa4], eax
jge 0x140014386
movsxd rax, dword [rbp + 0xa4]
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 0x18
and eax, 0xff
cdqe
mov qword [rbp + 0x218], rax
lea rcx, [0x14002e6c0]
mov edx, dword [rbp + 0x44]
mov r8d, dword [rbp + 0xa4]
add r8d, edx
mov edx, r8d
mov eax, edx
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rdx, qword [rbp + 0x250]
mov eax, dword [rdx + rax*4 + 0x458]
sar eax, 0x10
and eax, 0xff
cdqe
lea rdx, [0x14002eac0]
mov eax, dword [rdx + rax*4]
mov rdx, qword [rbp + 0x218]
mov ecx, dword [rcx + rdx*4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 0x220], eax
mov ecx, dword [rbp + 0x64]
mov edx, dword [rbp + 0xa4]
add edx, ecx
mov ecx, edx
mov eax, ecx
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x14002eec0]
mov edx, dword [rbp + 0x220]
xor edx, dword [rcx + rax*4]
mov eax, edx
mov dword [rbp + 0x224], eax
mov ecx, dword [rbp + 0x84]
mov edx, dword [rbp + 0xa4]
add edx, ecx
mov ecx, edx
mov eax, ecx
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x458]
and eax, 0xff
cdqe
lea rcx, [0x14002f2c0]
mov edx, dword [rbp + 0x224]
xor edx, dword [rcx + rax*4]
mov eax, edx
movsxd rcx, dword [rbp + 0x104]
imul rcx, rcx, 0x20
mov rdx, qword [rbp + 0x250]
lea rcx, [rdx + rcx + 0x1ec]
movsxd rdx, dword [rbp + 0xa4]
xor eax, dword [rcx + rdx*4]
movsxd rcx, dword [rbp + 0xa4]
mov rdx, qword [rbp + 0x250]
mov dword [rdx + rcx*4 + 0x438], eax
jmp 0x140014226
mov eax, dword [rbp + 4]
shl eax, 2
cdqe
mov rcx, qword [rbp + 0x250]
add rcx, 0x438
mov rdx, qword [rbp + 0x250]
add rdx, 0x458
mov qword [rbp + 0x218], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rbp + 0x218]
mov rcx, rax
call fcn.140011460
nop
jmp 0x1400141f3
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0x124], 0
jmp 0x1400143f0
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xa4], eax
jge 0x1400145aa
mov rax, qword [rbp + 0x250]
movsxd rax, dword [rax + 0x3d4]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rbp + 0xa4]
mov eax, dword [rax + rcx*4]
mov dword [rbp + 0xc4], eax
movsxd rax, dword [rbp + 0xa4]
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x14002d5c0]
movsx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0xc4]
sar ecx, 0x18
xor eax, ecx
movsxd rcx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x44]
mov ecx, dword [rbp + 0xa4]
add ecx, eax
mov eax, ecx
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 0x10
and eax, 0xff
cdqe
lea rcx, [0x14002d5c0]
movsx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0xc4]
sar ecx, 0x10
xor eax, ecx
movsxd rcx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x64]
mov ecx, dword [rbp + 0xa4]
add ecx, eax
mov eax, ecx
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x458]
sar eax, 8
and eax, 0xff
cdqe
lea rcx, [0x14002d5c0]
movsx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0xc4]
sar ecx, 8
xor eax, ecx
movsxd rcx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x84]
mov ecx, dword [rbp + 0xa4]
add ecx, eax
mov eax, ecx
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x458]
and eax, 0xff
cdqe
lea rcx, [0x14002d5c0]
movsx eax, byte [rcx + rax]
xor eax, dword [rbp + 0xc4]
movsxd rcx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
jmp 0x1400143e2
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret