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

Disassembly:
jmp 0x140012460
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, [0x140035068]
call fcn.1400116bd
mov rax, qword [rbp + 0x250]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x14001249d
jmp 0x140012ad7
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x10
jne 0x1400124cc
mov r8, qword [rbp + 0x260]
mov rdx, qword [rbp + 0x258]
mov rcx, qword [rbp + 0x250]
call fcn.1400112d0
jmp 0x140012ad7
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 0x1400124f7
mov dword [rbp + 0x214], 0
jmp 0x14001251f
cmp dword [rbp + 4], 6
jne 0x140012509
mov dword [rbp + 0x218], 1
jmp 0x140012513
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, [0x1400285d0]
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, [0x1400285d0]
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, [0x1400285d0]
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 0x1400125e9
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xa4], eax
jge 0x140012715
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 0x1400125db
mov dword [rbp + 0x104], 1
jmp 0x14001272f
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 0x1400128f9
mov dword [rbp + 0xa4], 0
jmp 0x140012762
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xa4], eax
jge 0x1400128b4
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, [0x1400265b0]
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, [0x1400269b0]
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, [0x140026db0]
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, [0x1400271b0]
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 0x140012754
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.14001135c
jmp 0x140012721
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0x124], 0
jmp 0x14001291d
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xa4], eax
jge 0x140012ad7
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, [0x1400254b0]
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, [0x1400254b0]
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, [0x1400254b0]
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, [0x1400254b0]
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 0x14001290f
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret