Function at 0x1401649b0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
sub rsp, 0x320
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
movaps xmmword [rax - 0x78], xmm11
movaps xmmword [rax - 0x88], xmm12
movaps xmmword [rax - 0x98], xmm13
movaps xmmword [rax - 0xa8], xmm14
movaps xmmword [rax - 0xb8], xmm15
lea rbp, [rax - 0x2b8]
and rbp, 0xffffffffffffffe0
mov rdi, rdx
movzx r15d, r9b
mov rbx, rcx
shr r8, 4
xor edx, edx
lea r9, [rbp + 0x1e0]
mov rax, r8
lea r8, [rbp + 0xc0]
mov r14, qword [rdi + 0xe0]
lea rcx, [r15 + 1]
mov rsi, qword [rbx + 0xe0]
div rcx
mov rdx, rdi
mov rcx, rbx
mov r13, rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x140]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
call fcn.140164220
test r15b, r15b
je 0x140164ad6
cmp byte [rbx + 0x1b0], 0
jne 0x140164ad6
cmp byte [rdi + 0x1b0], 0
mov eax, 0x130
je 0x140164adb
mov eax, 0x40
movdqu xmm1, xmmword [rax + rbx]
vmovdqu ymm4, ymmword [rbp + 0xe0]
vmovdqu ymm5, ymmword [rbp + 0x100]
vinsertf128 ymm14, ymm1, xmmword [rax + rdi], 1
vmovdqu xmm1, xmmword [rax + rbx + 0x10]
vmovdqu ymm6, ymmword [rbp + 0x120]
vmovdqu ymm7, ymmword [rbp + 0x140]
vinsertf128 ymm15, ymm1, xmmword [rax + rdi + 0x10], 1
vmovdqu xmm1, xmmword [rax + rbx + 0x20]
vmovdqu ymm8, ymmword [rbp + 0x160]
vmovdqu ymm9, ymmword [rbp + 0x180]
vinsertf128 ymm0, ymm1, xmmword [rax + rdi + 0x20], 1
vmovdqu xmm1, xmmword [rax + rbx + 0x30]
vmovdqu ymm10, ymmword [rbp + 0x1a0]
vmovdqu ymm11, ymmword [rbp + 0x1c0]
vmovdqu ymm12, ymmword [rbp + 0x1e0]
vmovdqu ymm13, ymmword [rbp + 0xc0]
vmovdqu ymmword [rbp + 0x40], ymm0
vinsertf128 ymm0, ymm1, xmmword [rax + rdi + 0x30], 1
vmovdqu xmm1, xmmword [rax + rbx + 0x40]
vmovdqu ymmword [rbp + 0x60], ymm0
mov rcx, rax
lea rdx, [rsi + 0x800]
vinsertf128 ymm0, ymm1, xmmword [rax + rdi + 0x40], 1
vmovdqu xmm1, xmmword [rax + rbx + 0x50]
vmovdqu ymmword [rbp + 0x80], ymm0
lea rcx, [r13 - 0x80]
vinsertf128 ymm0, ymm1, xmmword [rax + rdi + 0x50], 1
vmovdqu xmm1, xmmword [rax + rbx + 0x60]
vmovdqu ymmword [rbp + 0xa0], ymm0
shl rcx, 4
lea r8, [r14 + 0x800]
vinsertf128 ymm0, ymm1, xmmword [rax + rdi + 0x60], 1
vmovdqu xmm1, xmmword [rax + rbx + 0x70]
vmovdqu ymmword [rbp], ymm0
add rcx, rsi
vinsertf128 ymm0, ymm1, xmmword [rax + rdi + 0x70], 1
vmovdqu ymmword [rbp + 0x20], ymm0
xor eax, eax
nop dword [rax + rax]
prefetcht0 byte [rdx]
prefetcht0 byte [rdx + 0x40]
prefetcht0 byte [r8]
prefetcht0 byte [r8 + 0x40]
vaesenc ymm0, ymm14, ymm13
vaesenc ymm1, ymm0, ymm12
vaesenc ymm2, ymm1, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm0, ymm3, ymm9
vaesenc ymm1, ymm0, ymm8
vaesenc ymm2, ymm1, ymm7
vaesenc ymm3, ymm2, ymm6
vaesenc ymm0, ymm3, ymm5
vaesenc ymm14, ymm0, ymm4
vaesenc ymm1, ymm15, ymm13
vaesenc ymm0, ymm1, ymm12
vaesenc ymm2, ymm0, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm1, ymm3, ymm9
vaesenc ymm0, ymm1, ymm8
vaesenc ymm2, ymm0, ymm7
vmovdqu ymm0, ymmword [rbp + 0x40]
vaesenc ymm0, ymm0, ymm13
vaesenc ymm3, ymm2, ymm6
vaesenc ymm1, ymm3, ymm5
vaesenc ymm15, ymm1, ymm4
vaesenc ymm1, ymm0, ymm12
vaesenc ymm2, ymm1, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm0, ymm3, ymm9
vaesenc ymm1, ymm0, ymm8
vaesenc ymm2, ymm1, ymm7
vmovdqu ymm1, ymmword [rbp + 0x60]
vaesenc ymm1, ymm1, ymm13
vaesenc ymm3, ymm2, ymm6
vaesenc ymm0, ymm3, ymm5
vaesenc ymm0, ymm0, ymm4
vmovdqu ymmword [rbp + 0x40], ymm0
vaesenc ymm0, ymm1, ymm12
vaesenc ymm2, ymm0, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm1, ymm3, ymm9
vaesenc ymm0, ymm1, ymm8
vaesenc ymm2, ymm0, ymm7
vaesenc ymm3, ymm2, ymm6
vmovdqu ymm2, ymmword [rbp + 0x80]
vaesenc ymm1, ymm3, ymm5
vaesenc ymm0, ymm1, ymm4
vmovdqu ymmword [rbp + 0x60], ymm0
vaesenc ymm0, ymm2, ymm13
vaesenc ymm1, ymm0, ymm12
vaesenc ymm2, ymm1, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm0, ymm3, ymm9
vaesenc ymm1, ymm0, ymm8
vaesenc ymm2, ymm1, ymm7
vmovdqu ymm1, ymmword [rbp + 0xa0]
vaesenc ymm3, ymm2, ymm6
vaesenc ymm1, ymm1, ymm13
vaesenc ymm0, ymm3, ymm5
vaesenc ymm0, ymm0, ymm4
vmovdqu ymmword [rbp + 0x80], ymm0
vaesenc ymm0, ymm1, ymm12
vaesenc ymm2, ymm0, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm1, ymm3, ymm9
vaesenc ymm0, ymm1, ymm8
vaesenc ymm2, ymm0, ymm7
vaesenc ymm3, ymm2, ymm6
vaesenc ymm1, ymm3, ymm5
vaesenc ymm0, ymm1, ymm4
vmovdqu ymmword [rbp + 0xa0], ymm0
vmovdqu ymm0, ymmword [rbp]
vaesenc ymm0, ymm0, ymm13
vaesenc ymm1, ymm0, ymm12
vaesenc ymm2, ymm1, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm0, ymm3, ymm9
vaesenc ymm1, ymm0, ymm8
vaesenc ymm2, ymm1, ymm7
vmovdqu ymm1, ymmword [rbp + 0x20]
vaesenc ymm3, ymm2, ymm6
vaesenc ymm0, ymm3, ymm5
vaesenc ymm0, ymm0, ymm4
vmovdqu ymmword [rbp], ymm0
vmovdqu xmmword [rsi], xmm14
vaesenc ymm1, ymm1, ymm13
vaesenc ymm0, ymm1, ymm12
vaesenc ymm2, ymm0, ymm11
vaesenc ymm3, ymm2, ymm10
vaesenc ymm1, ymm3, ymm9
vaesenc ymm0, ymm1, ymm8
vaesenc ymm2, ymm0, ymm7
vaesenc ymm3, ymm2, ymm6
vaesenc ymm1, ymm3, ymm5
vaesenc ymm0, ymm1, ymm4
vmovdqu ymmword [rbp + 0x20], ymm0
vextractf128 xmm0, ymm14, 1
vmovdqu xmmword [r14], xmm0
vextractf128 xmm0, ymm15, 1
vmovdqu xmmword [rsi + 0x10], xmm15
lea rdx, [rdx + 0x80]
vmovdqu xmmword [r14 + 0x10], xmm0
vmovdqu ymm0, ymmword [rbp + 0x40]
vmovdqu xmmword [rsi + 0x20], xmm0
vextractf128 xmm1, ymm0, 1
vmovdqu xmmword [r14 + 0x20], xmm1
vmovdqu ymm1, ymmword [rbp + 0x60]
vmovdqu xmmword [rsi + 0x30], xmm1
vextractf128 xmm2, ymm1, 1
vmovdqu xmmword [r14 + 0x30], xmm2
vmovdqu ymm2, ymmword [rbp + 0x80]
vmovdqu xmmword [rsi + 0x40], xmm2
vextractf128 xmm3, ymm2, 1
vmovdqu xmmword [r14 + 0x40], xmm3
vmovdqu ymm3, ymmword [rbp + 0xa0]
vmovdqu xmmword [rsi + 0x50], xmm3
vextractf128 xmm13, ymm3, 1
vmovdqu xmmword [r14 + 0x50], xmm13
vmovdqu ymm13, ymmword [rbp]
vmovdqu xmmword [rsi + 0x60], xmm13
vextractf128 xmm13, ymm13, 1
vmovdqu xmmword [r14 + 0x60], xmm13
vmovdqu ymm13, ymmword [rbp + 0x20]
vmovdqu xmmword [rsi + 0x70], xmm13
vextractf128 xmm13, ymm13, 1
vmovdqu xmmword [r14 + 0x70], xmm13
vmovdqu ymm13, ymmword [rbp + 0xc0]
sub r14, 0xffffffffffffff80
lea r8, [r8 + 0x80]
sub rsi, 0xffffffffffffff80
cmp rsi, rcx
jb 0x140164be0
add rcx, 0x800
inc eax
mov rdx, rsi
mov r8, r14
cmp eax, 2
jl 0x140164be0
test r15b, r15b
je 0x140164f8e
cmp byte [rbx + 0x1b0], 0
je 0x140164f8e
cmp byte [rdi + 0x1b0], 0
je 0x140164f8e
vmovdqu xmmword [rbx + 0x130], xmm14
vextractf128 xmm4, ymm14, 1
vmovdqu xmmword [rdi + 0x130], xmm4
vextractf128 xmm4, ymm15, 1
vmovdqu xmmword [rbx + 0x140], xmm15
vmovdqu xmmword [rdi + 0x140], xmm4
vextractf128 xmm4, ymm0, 1
vmovdqu xmmword [rbx + 0x150], xmm0
vextractf128 xmm0, ymm1, 1
vmovdqu xmmword [rdi + 0x150], xmm4
vmovdqu xmmword [rbx + 0x160], xmm1
vmovdqu xmmword [rdi + 0x160], xmm0
vextractf128 xmm0, ymm2, 1
vmovdqu xmmword [rbx + 0x170], xmm2
vmovdqu xmmword [rdi + 0x170], xmm0
vextractf128 xmm0, ymm3, 1
vmovdqu xmmword [rbx + 0x180], xmm3
vmovdqu xmmword [rdi + 0x180], xmm0
vmovdqu ymm0, ymmword [rbp]
vmovdqu xmmword [rbx + 0x190], xmm0
vextractf128 xmm1, ymm0, 1
vmovdqu xmmword [rdi + 0x190], xmm1
vmovdqu ymm1, ymmword [rbp + 0x20]
vextractf128 xmm0, ymm1, 1
vmovdqu xmmword [rbx + 0x1a0], xmm1
vmovdqu xmmword [rdi + 0x1a0], xmm0
vzeroupper
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop rbp
ret