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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x430
vmovups xmmword [rsp + 0x390], xmm6
vmovups xmmword [rsp + 0x3a0], xmm7
vmovups xmmword [rsp + 0x3b0], xmm8
vmovups xmmword [rsp + 0x3c0], xmm9
vmovups xmmword [rsp + 0x3d0], xmm10
vmovups xmmword [rsp + 0x3e0], xmm11
vmovups xmmword [rsp + 0x3f0], xmm12
vmovups xmmword [rsp + 0x400], xmm13
vmovups xmmword [rsp + 0x410], xmm14
vmovups xmmword [rsp + 0x420], xmm15
mov rsi, rcx
mov rax, r8
movzx ecx, r9b
mov rdi, rdx
add rcx, 1
shr rax, 4
xor edx, edx
mov ebp, r9d
div rcx
mov rbx, qword [rsi + 0xe0]
mov r12, qword [rdi + 0xe0]
lea r11, [rsp + 0x25f]
mov rdx, rdi
mov rcx, rsi
and r11, 0xffffffffffffffe0
mov qword [rsp + 0x58], r11
lea r9, [r11 + 0x100]
lea r8, [r11 + 0x120]
mov r10, rax
lea rax, [r11 + 0x20]
mov qword [rsp + 0x50], rax
lea rax, [r11 + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [r11 + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [r11 + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [r11 + 0xa0]
mov qword [rsp + 0x30], rax
lea rax, [r11 + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [r11 + 0xe0]
mov qword [rsp + 0x20], rax
call fcn.140120f20
test bpl, bpl
je 0x1401217ec
cmp byte [rsi + 0x1b0], 0
je 0x140121e08
lea rcx, [rsi + 0x40]
lea rdx, [rdi + 0x40]
vmovdqu xmm0, xmmword [rcx]
vinserti128 ymm5, ymm0, xmmword [rdx], 1
add r10, 0xffffffffffffff80
lea r8, [rbx + 0x800]
vmovdqu xmm0, xmmword [rcx + 0x10]
vmovdqu ymm15, ymmword [r11]
shl r10, 4
vinserti128 ymm6, ymm0, xmmword [rdx + 0x10], 1
vmovdqu xmm0, xmmword [rcx + 0x20]
add r10, rbx
vmovdqu ymmword [rsp + 0x70], ymm5
vinserti128 ymm7, ymm0, xmmword [rdx + 0x20], 1
vmovdqu xmm0, xmmword [rcx + 0x30]
lea r9, [r10 + 0x1000]
vinserti128 ymm5, ymm0, xmmword [rdx + 0x30], 1
vmovdqu xmm0, xmmword [rcx + 0x40]
vmovdqu ymmword [rsp + 0x90], ymm6
vmovdqu ymmword [rsp + 0xb0], ymm7
vinserti128 ymm6, ymm0, xmmword [rdx + 0x40], 1
vmovdqu xmm0, xmmword [rcx + 0x50]
vinserti128 ymm7, ymm0, xmmword [rdx + 0x50], 1
vmovdqu xmm0, xmmword [rcx + 0x60]
vmovdqu ymmword [rsp + 0xd0], ymm5
vmovdqu ymmword [rsp + 0xf0], ymm6
vinserti128 ymm5, ymm0, xmmword [rdx + 0x60], 1
vmovdqu xmm0, xmmword [rcx + 0x70]
lea rcx, [r12 + 0x800]
vinserti128 ymm6, ymm0, xmmword [rdx + 0x70], 1
vmovdqu ymm14, ymmword [r11 + 0x20]
vmovdqu ymmword [rsp + 0x110], ymm7
vmovdqu ymm7, ymmword [r11 + 0xe0]
vmovdqu ymm13, ymmword [r11 + 0x40]
vmovdqu ymmword [rsp + 0x130], ymm5
vmovdqu ymm11, ymmword [r11 + 0x80]
vmovdqu ymm12, ymmword [r11 + 0x60]
vmovdqu ymmword [rsp + 0x150], ymm6
vmovdqu ymm10, ymmword [r11 + 0xa0]
vmovdqu ymm9, ymmword [r11 + 0xc0]
vmovdqu ymmword [rsp + 0x190], ymm7
vmovdqu ymm5, ymmword [r11 + 0x100]
vmovdqu ymm8, ymmword [r11 + 0x120]
xor r11d, r11d
vmovdqu ymmword [rsp + 0x1b0], ymm5
vmovdqu ymmword [rsp + 0x170], ymm8
mov rdx, r12
mov rax, rbx
nop dword [rax]
vmovdqu ymm8, ymmword [rsp + 0x170]
prefetcht0 byte [r8]
prefetcht0 byte [rcx]
vmovdqu ymm1, ymmword [rsp + 0x70]
prefetcht0 byte [r8 + 0x40]
prefetcht0 byte [rcx + 0x40]
sub rax, 0xffffffffffffff80
vmovdqu ymm2, ymmword [rsp + 0x90]
vaesenc ymm7, ymm1, ymm8
sub r8, 0xffffffffffffff80
sub rdx, 0xffffffffffffff80
sub rcx, 0xffffffffffffff80
vmovdqu ymm4, ymmword [rsp + 0xb0]
vmovdqu ymm0, ymmword [rsp + 0xd0]
vmovdqu ymm1, ymmword [rsp + 0xf0]
vaesenc ymm6, ymm2, ymm8
vmovdqu ymm2, ymmword [rsp + 0x110]
vaesenc ymm5, ymm4, ymm8
vaesenc ymm3, ymm1, ymm8
vmovdqu ymm1, ymmword [rsp + 0x130]
vaesenc ymm4, ymm0, ymm8
vaesenc ymm0, ymm2, ymm8
vmovdqu ymm2, ymmword [rsp + 0x150]
vaesenc ymm1, ymm1, ymm8
vaesenc ymm2, ymm2, ymm8
vmovdqu ymm8, ymmword [rsp + 0x1b0]
vaesenc ymm7, ymm7, ymm8
vaesenc ymm6, ymm6, ymm8
vaesenc ymm5, ymm5, ymm8
vaesenc ymm4, ymm4, ymm8
vaesenc ymm3, ymm3, ymm8
vaesenc ymm0, ymm0, ymm8
vaesenc ymm1, ymm1, ymm8
vaesenc ymm2, ymm2, ymm8
vmovdqu ymm8, ymmword [rsp + 0x190]
vaesenc ymm7, ymm7, ymm8
vaesenc ymm6, ymm6, ymm8
vaesenc ymm5, ymm5, ymm8
vaesenc ymm4, ymm4, ymm8
vaesenc ymm3, ymm3, ymm8
vaesenc ymm0, ymm0, ymm8
vaesenc ymm1, ymm1, ymm8
vaesenc ymm2, ymm2, ymm8
vaesenc ymm7, ymm7, ymm9
vaesenc ymm6, ymm6, ymm9
vaesenc ymm5, ymm5, ymm9
vaesenc ymm4, ymm4, ymm9
vaesenc ymm3, ymm3, ymm9
vaesenc ymm0, ymm0, ymm9
vaesenc ymm1, ymm1, ymm9
vaesenc ymm2, ymm2, ymm9
vaesenc ymm7, ymm7, ymm10
vaesenc ymm6, ymm6, ymm10
vaesenc ymm5, ymm5, ymm10
vaesenc ymm4, ymm4, ymm10
vaesenc ymm3, ymm3, ymm10
vaesenc ymm0, ymm0, ymm10
vaesenc ymm1, ymm1, ymm10
vaesenc ymm2, ymm2, ymm10
vaesenc ymm7, ymm7, ymm11
vaesenc ymm6, ymm6, ymm11
vaesenc ymm5, ymm5, ymm11
vaesenc ymm4, ymm4, ymm11
vaesenc ymm3, ymm3, ymm11
vaesenc ymm0, ymm0, ymm11
vaesenc ymm1, ymm1, ymm11
vaesenc ymm2, ymm2, ymm11
vaesenc ymm7, ymm7, ymm12
vaesenc ymm6, ymm6, ymm12
vaesenc ymm5, ymm5, ymm12
vaesenc ymm4, ymm4, ymm12
vaesenc ymm3, ymm3, ymm12
vaesenc ymm0, ymm0, ymm12
vaesenc ymm1, ymm1, ymm12
vaesenc ymm2, ymm2, ymm12
vaesenc ymm7, ymm7, ymm13
vaesenc ymm6, ymm6, ymm13
vaesenc ymm5, ymm5, ymm13
vaesenc ymm4, ymm4, ymm13
vaesenc ymm3, ymm3, ymm13
vaesenc ymm0, ymm0, ymm13
vaesenc ymm1, ymm1, ymm13
vaesenc ymm2, ymm2, ymm13
vaesenc ymm7, ymm7, ymm14
vaesenc ymm6, ymm6, ymm14
vaesenc ymm5, ymm5, ymm14
vaesenc ymm4, ymm4, ymm14
vaesenc ymm3, ymm3, ymm14
vaesenc ymm0, ymm0, ymm14
vaesenc ymm1, ymm1, ymm14
vaesenc ymm2, ymm2, ymm14
vaesenc ymm7, ymm7, ymm15
vaesenc ymm6, ymm6, ymm15
vaesenc ymm5, ymm5, ymm15
vaesenc ymm3, ymm3, ymm15
vaesenc ymm4, ymm4, ymm15
vaesenc ymm0, ymm0, ymm15
vaesenc ymm1, ymm1, ymm15
vmovdqu xmmword [rax - 0x80], xmm7
vaesenc ymm2, ymm2, ymm15
vmovdqu ymmword [rsp + 0x70], ymm7
vmovdqu xmmword [rsp + 0x1d0], xmm7
vextracti128 xmm7, ymm7, 1
vmovdqu xmmword [rdx - 0x80], xmm7
vmovdqu ymmword [rsp + 0x90], ymm6
vmovdqu xmmword [rax - 0x70], xmm6
vmovdqu xmmword [rsp + 0x1e0], xmm6
vextracti128 xmm6, ymm6, 1
vmovdqu xmmword [rdx - 0x70], xmm6
vmovdqu ymmword [rsp + 0xb0], ymm5
vmovdqu xmmword [rax - 0x60], xmm5
vmovdqu xmmword [rsp + 0x1f0], xmm5
vextracti128 xmm5, ymm5, 1
vmovdqu ymmword [rsp + 0xd0], ymm4
vmovdqu ymmword [rsp + 0xf0], ymm3
vmovdqu ymmword [rsp + 0x110], ymm0
vmovdqu ymmword [rsp + 0x130], ymm1
vmovdqu ymmword [rsp + 0x150], ymm2
vmovdqu xmmword [rdx - 0x60], xmm5
vmovdqu xmmword [rsp + 0x200], xmm4
vextracti128 xmmword [rsp + 0x60], ymm3, 1
vmovdqu xmmword [rax - 0x50], xmm4
vextracti128 xmm4, ymm4, 1
vmovdqu xmmword [rdx - 0x50], xmm4
vmovdqu xmmword [rsp + 0x210], xmm3
vmovdqu xmmword [rax - 0x40], xmm3
vmovdqu xmm3, xmmword [rsp + 0x60]
vmovdqu xmmword [rsp + 0x220], xmm0
vmovdqu xmmword [rdx - 0x40], xmm3
vmovdqa xmm3, xmm2
vmovdqu xmmword [rax - 0x30], xmm0
vextracti128 xmm0, ymm0, 1
vmovdqu xmmword [rdx - 0x30], xmm0
vmovdqu xmmword [rsp + 0x230], xmm1
vmovdqu xmmword [rax - 0x20], xmm1
vextracti128 xmm1, ymm1, 1
vmovdqu xmmword [rdx - 0x20], xmm1
vmovdqu xmmword [rax - 0x10], xmm2
vextracti128 xmm2, ymm2, 1
vmovdqu xmmword [rdx - 0x10], xmm2
cmp rax, r10
jb 0x140121930
vmovdqu ymm8, ymmword [rsp + 0x170]
lea rdx, [r10 + 0x800]
cmp rdx, r9
je 0x140121ca8
mov rax, r10
lea rcx, [rbx + 1]
sub rax, rbx
sub rax, 1
and rax, 0xffffffffffffff80
cmp r10, rcx
mov r10, rdx
cmovb rax, r11
lea rcx, [r12 + rax + 0x80]
lea r8, [rbx + rax + 0x80]
mov r12, rcx
mov rbx, r8
jmp 0x14012191a
vmovdqa xmm9, xmm2
vmovdqa xmm2, xmm0
test bpl, bpl
je 0x140121d98
cmp byte [rsi + 0x1b0], 0
je 0x140121d98
cmp byte [rdi + 0x1b0], 0
je 0x140121d98
vmovdqu xmm10, xmmword [rsp + 0x1d0]
vmovdqu xmmword [rsi + 0x130], xmm10
vmovdqu xmmword [rdi + 0x130], xmm7
vmovdqu xmm7, xmmword [rsp + 0x1e0]
vmovdqu xmmword [rsi + 0x140], xmm7
vmovdqu xmm7, xmmword [rsp + 0x210]
vmovdqu xmmword [rdi + 0x140], xmm6
vmovdqu xmm6, xmmword [rsp + 0x1f0]
vmovdqu xmmword [rsi + 0x150], xmm6
vmovdqu xmm6, xmmword [rsp + 0x200]
vmovdqu xmmword [rdi + 0x150], xmm5
vmovdqu xmmword [rsi + 0x160], xmm6
vmovdqu xmm6, xmmword [rsp + 0x60]
vmovdqu xmmword [rdi + 0x160], xmm4
vmovdqu xmmword [rsi + 0x170], xmm7
vmovdqu xmm7, xmmword [rsp + 0x220]
vmovdqu xmmword [rdi + 0x170], xmm6
vmovdqu xmm6, xmmword [rsp + 0x230]
vmovdqu xmmword [rsi + 0x180], xmm7
vmovdqu xmmword [rdi + 0x180], xmm2
vmovdqu xmmword [rsi + 0x190], xmm6
vmovdqu xmmword [rdi + 0x190], xmm1
vmovdqu xmmword [rsi + 0x1a0], xmm3
vmovdqu xmmword [rdi + 0x1a0], xmm9
vzeroupper
vmovups xmm6, xmmword [rsp + 0x390]
vmovups xmm7, xmmword [rsp + 0x3a0]
vmovups xmm8, xmmword [rsp + 0x3b0]
vmovups xmm9, xmmword [rsp + 0x3c0]
vmovups xmm10, xmmword [rsp + 0x3d0]
vmovups xmm11, xmmword [rsp + 0x3e0]
vmovups xmm12, xmmword [rsp + 0x3f0]
vmovups xmm13, xmmword [rsp + 0x400]
vmovups xmm14, xmmword [rsp + 0x410]
vmovups xmm15, xmmword [rsp + 0x420]
add rsp, 0x430
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp byte [rdi + 0x1b0], 0
jne 0x1401217ec
lea rcx, [rsi + 0x130]
lea rdx, [rdi + 0x130]
jmp 0x1401217f4