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

Disassembly:
sub rsp, 0xe8
cmp byte [0x140732906], 0
je 0x14012abe4
xor r8d, r8d
mov edx, 0x200000
add rsp, 0xe8
jmp 0x14013cc70
movdqu xmm2, xmmword [rcx + 0x30]
movdqu xmm1, xmmword [rcx + 0x20]
mov rax, qword [rcx + 0xe0]
pslldq xmm1, 4
movdqa xmm0, xmm1
movaps xmmword [rsp + 0xd0], xmm6
pxor xmm0, xmmword [rcx + 0x20]
pslldq xmm1, 4
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm8
movaps xmmword [rsp + 0xa0], xmm9
movaps xmmword [rsp + 0x90], xmm10
movdqa xmm10, xmm1
pslldq xmm1, 4
pxor xmm10, xmm0
pxor xmm10, xmm1
movaps xmmword [rsp + 0x80], xmm11
movaps xmmword [rsp + 0x70], xmm12
movaps xmmword [rsp + 0x60], xmm13
movaps xmmword [rsp + 0x50], xmm14
aeskeygenassist xmm0, xmm2, 1
pshufd xmm1, xmm0, 0xff
pxor xmm10, xmm1
movaps xmmword [rsp + 0x40], xmm15
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm11, xmm1
pxor xmm0, xmm2
pslldq xmm1, 4
pxor xmm11, xmm0
pxor xmm11, xmm1
aeskeygenassist xmm0, xmm10, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm11, xmm1
movdqa xmm1, xmm10
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm12, xmm1
pxor xmm0, xmm10
pslldq xmm1, 4
pxor xmm12, xmm0
pxor xmm12, xmm1
aeskeygenassist xmm0, xmm11, 2
pshufd xmm1, xmm0, 0xff
pxor xmm12, xmm1
movdqa xmm1, xmm11
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm13, xmm1
pxor xmm0, xmm11
pslldq xmm1, 4
pxor xmm13, xmm0
pxor xmm13, xmm1
aeskeygenassist xmm0, xmm12, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm13, xmm1
movdqa xmm1, xmm12
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm14, xmm1
pxor xmm0, xmm12
pslldq xmm1, 4
pxor xmm14, xmm0
pxor xmm14, xmm1
aeskeygenassist xmm0, xmm13, 4
pshufd xmm1, xmm0, 0xff
pxor xmm14, xmm1
movdqa xmm1, xmm13
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm15, xmm1
pxor xmm0, xmm13
pxor xmm15, xmm0
pslldq xmm1, 4
pxor xmm15, xmm1
movdqu xmm4, xmmword [rcx + 0x60]
xor edx, edx
movdqu xmm5, xmmword [rcx + 0x70]
movdqu xmm6, xmmword [rcx + 0x80]
movdqu xmm7, xmmword [rcx + 0x90]
movdqu xmm8, xmmword [rcx + 0xa0]
movdqu xmm9, xmmword [rcx + 0xb0]
aeskeygenassist xmm0, xmm14, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm15, xmm1
movdqa xmm1, xmm14
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm2, xmm1
pxor xmm0, xmm14
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm15, 8
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqa xmm1, xmm15
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [rsp + 0x20], xmm2
pslldq xmm1, 4
pxor xmm0, xmm15
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 0
movdqu xmm2, xmmword [rcx + 0x40]
pshufd xmm1, xmm0, 0xaa
pxor xmm3, xmm1
movdqa xmmword [rsp + 0x30], xmm3
movdqu xmm3, xmmword [rcx + 0x50]
nop dword [rax]
movdqu xmm0, xmmword [rax]
add rdx, 8
movdqu xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
pxor xmm0, xmm2
pxor xmm1, xmm3
movdqa xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x60]
movdqa xmm3, xmm1
movdqu xmm1, xmmword [rax - 0x50]
pxor xmm0, xmm4
pxor xmm1, xmm5
movdqa xmm4, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqa xmm5, xmm1
movdqu xmm1, xmmword [rax - 0x30]
pxor xmm0, xmm6
pxor xmm1, xmm7
movdqa xmm6, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm7, xmm1
movdqu xmm1, xmmword [rax - 0x10]
pxor xmm0, xmm8
pxor xmm1, xmm9
movdqa xmm8, xmm0
movdqa xmm9, xmm1
cmp rdx, 0x20000
jae 0x14012aee6
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
aesenc xmm2, xmmword [rcx + 0x20]
aesenc xmm3, xmmword [rcx + 0x20]
aesenc xmm4, xmmword [rcx + 0x20]
aesenc xmm5, xmmword [rcx + 0x20]
aesenc xmm6, xmmword [rcx + 0x20]
aesenc xmm7, xmmword [rcx + 0x20]
aesenc xmm8, xmmword [rcx + 0x20]
aesenc xmm2, xmmword [rcx + 0x30]
aesenc xmm3, xmmword [rcx + 0x30]
aesenc xmm4, xmmword [rcx + 0x30]
aesenc xmm5, xmmword [rcx + 0x30]
aesenc xmm6, xmmword [rcx + 0x30]
aesenc xmm7, xmmword [rcx + 0x30]
aesenc xmm8, xmmword [rcx + 0x30]
aesenc xmm9, xmmword [rcx + 0x20]
movdqa xmm0, xmmword [rsp + 0x20]
aesenc xmm9, xmmword [rcx + 0x30]
movdqa xmm1, xmmword [rsp + 0x30]
aesenc xmm2, xmm10
aesenc xmm3, xmm10
aesenc xmm4, xmm10
aesenc xmm5, xmm10
aesenc xmm6, xmm10
aesenc xmm7, xmm10
aesenc xmm8, xmm10
aesenc xmm2, xmm11
aesenc xmm3, xmm11
aesenc xmm4, xmm11
aesenc xmm5, xmm11
aesenc xmm6, xmm11
aesenc xmm7, xmm11
aesenc xmm8, xmm11
aesenc xmm9, xmm10
aesenc xmm2, xmm12
aesenc xmm3, xmm12
aesenc xmm4, xmm12
aesenc xmm5, xmm12
aesenc xmm6, xmm12
aesenc xmm7, xmm12
aesenc xmm8, xmm12
aesenc xmm9, xmm11
aesenc xmm2, xmm13
aesenc xmm3, xmm13
aesenc xmm4, xmm13
aesenc xmm5, xmm13
aesenc xmm6, xmm13
aesenc xmm7, xmm13
aesenc xmm8, xmm13
aesenc xmm9, xmm12
aesenc xmm2, xmm14
aesenc xmm3, xmm14
aesenc xmm4, xmm14
aesenc xmm5, xmm14
aesenc xmm6, xmm14
aesenc xmm7, xmm14
aesenc xmm8, xmm14
aesenc xmm9, xmm13
aesenc xmm2, xmm15
aesenc xmm3, xmm15
aesenc xmm4, xmm15
aesenc xmm5, xmm15
aesenc xmm6, xmm15
aesenc xmm7, xmm15
aesenc xmm8, xmm15
aesenc xmm9, xmm14
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
aesenc xmm8, xmm0
aesenc xmm9, xmm15
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenc xmm8, xmm1
aesenc xmm9, xmm0
aesenc xmm9, xmm1
jb 0x14012ae60
movaps xmm15, xmmword [rsp + 0x40]
movaps xmm14, xmmword [rsp + 0x50]
movaps xmm13, xmmword [rsp + 0x60]
movaps xmm12, xmmword [rsp + 0x70]
movaps xmm11, xmmword [rsp + 0x80]
movaps xmm10, xmmword [rsp + 0x90]
movdqu xmmword [rcx + 0x40], xmm2
movdqu xmmword [rcx + 0x50], xmm3
movdqu xmmword [rcx + 0x60], xmm4
movdqu xmmword [rcx + 0x70], xmm5
movdqu xmmword [rcx + 0x80], xmm6
movaps xmm6, xmmword [rsp + 0xd0]
movdqu xmmword [rcx + 0x90], xmm7
movaps xmm7, xmmword [rsp + 0xc0]
movdqu xmmword [rcx + 0xa0], xmm8
movaps xmm8, xmmword [rsp + 0xb0]
movdqu xmmword [rcx + 0xb0], xmm9
movaps xmm9, xmmword [rsp + 0xa0]
add rsp, 0xe8
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x300
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
lea rbp, [rax - 0x2a8]
and rbp, 0xffffffffffffffe0
mov rbx, qword [rcx + 0xe0]
lea r9, [rbp + 0x1a0]
mov rax, rdx
movzx r15d, r8b
shr rax, 5
lea r8, [rbp + 0x1c0]
mov r13, rdx
mov rsi, rcx
xor edx, edx
add rcx, 0x20
lea r12, [r15 + 1]
div r12
lea rdx, [rbp + 0x20]
mov rdi, rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x120]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x140]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
call fcn.14013bc50
vmovdqu ymm0, ymmword [rsi + 0x40]
vmovdqu ymmword [rbp + 0x40], ymm0
vmovdqu ymm0, ymmword [rsi + 0x60]
vmovdqu ymmword [rbp + 0x60], ymm0
vmovdqu ymm0, ymmword [rsi + 0x80]
vmovdqu ymmword [rbp + 0x80], ymm0
vmovdqu ymm0, ymmword [rsi + 0xa0]
xor r14d, r14d
mov qword [rbp], rbx
vmovdqu ymmword [rbp + 0xa0], ymm0
mov rax, rbx
test r12, r12
vzeroupper
je 0x14013cf70
test r15b, r15b
je 0x14013cdda
cmp r14, 1
jne 0x14013cdda
movzx r8d, r15b
mov byte [rsi + 0x1b0], 0
mov rdx, r13
mov rcx, rsi
mov rbx, rax
call fcn.14013c330
xor eax, eax
test rdi, rdi
je 0x14013cf60
vmovdqu ymm7, ymmword [rbp + 0xc0]
vmovdqu ymm8, ymmword [rbp + 0xe0]
vmovdqu ymm9, ymmword [rbp + 0x100]
vmovdqu ymm10, ymmword [rbp + 0x120]
vmovdqu ymm11, ymmword [rbp + 0x140]
vmovdqu ymm12, ymmword [rbp + 0x160]
vmovdqu ymm13, ymmword [rbp + 0x180]
vmovdqu ymm14, ymmword [rbp + 0x1a0]
vmovdqu ymm15, ymmword [rbp + 0x1c0]
nop dword [rax]
vmovdqu ymm0, ymmword [rbx]
vpxor ymm2, ymm0, ymmword [rbp + 0x40]
vmovdqu ymm0, ymmword [rbx + 0x20]
vmovdqu ymm1, ymmword [rbx + 0x40]
vpxor ymm4, ymm0, ymmword [rbp + 0x60]
vmovdqu ymm0, ymmword [rbx + 0x60]
vpxor ymm5, ymm1, ymmword [rbp + 0x80]
vpxor ymm6, ymm0, ymmword [rbp + 0xa0]
sub rbx, 0xffffffffffffff80
add rax, 4
cmp rax, rdi
jae 0x14013ce71
prefetcht0 byte [rbx]
prefetcht0 byte [rbx + 0x40]
vaesenc ymm0, ymm2, ymmword [rbp + 0x20]
vaesenc ymm1, ymm0, ymm15
vaesenc ymm2, ymm1, ymm14
vaesenc ymm3, ymm2, ymm13
vaesenc ymm0, ymm3, ymm12
vaesenc ymm1, ymm0, ymm11
vaesenc ymm2, ymm1, ymm10
vaesenc ymm1, ymm4, ymmword [rbp + 0x20]
vaesenc ymm3, ymm2, ymm9
vaesenc ymm0, ymm3, ymm8
vaesenc ymm0, ymm0, ymm7
vmovdqu ymmword [rbp + 0x40], ymm0
vaesenc ymm0, ymm1, ymm15
vaesenc ymm2, ymm0, ymm14
vaesenc ymm3, ymm2, ymm13
vaesenc ymm1, ymm3, ymm12
vaesenc ymm0, ymm1, ymm11
vaesenc ymm2, ymm0, ymm10
vaesenc ymm3, ymm2, ymm9
vaesenc ymm1, ymm3, ymm8
vaesenc ymm0, ymm1, ymm7
vmovdqu ymmword [rbp + 0x60], ymm0
vaesenc ymm0, ymm5, ymmword [rbp + 0x20]
vaesenc ymm1, ymm0, ymm15
vaesenc ymm2, ymm1, ymm14
vaesenc ymm3, ymm2, ymm13
vaesenc ymm0, ymm3, ymm12
vaesenc ymm1, ymm0, ymm11
vaesenc ymm2, ymm1, ymm10
vaesenc ymm1, ymm6, ymmword [rbp + 0x20]
vaesenc ymm3, ymm2, ymm9
vaesenc ymm0, ymm3, ymm8
vaesenc ymm0, ymm0, ymm7
vmovdqu ymmword [rbp + 0x80], ymm0
vaesenc ymm0, ymm1, ymm15
vaesenc ymm2, ymm0, ymm14
vaesenc ymm3, ymm2, ymm13
vaesenc ymm1, ymm3, ymm12
vaesenc ymm0, ymm1, ymm11
vaesenc ymm2, ymm0, ymm10
vaesenc ymm3, ymm2, ymm9
vaesenc ymm1, ymm3, ymm8
vaesenc ymm0, ymm1, ymm7
vmovdqu ymmword [rbp + 0xa0], ymm0
jb 0x14013ce30
vzeroupper
mov rax, qword [rbp]
inc r14
cmp r14, r12
jb 0x14013cdb6
vmovdqu ymm1, ymmword [rbp + 0x40]
vmovdqu ymm0, ymmword [rbp + 0x80]
vmovdqu ymmword [rsi + 0x40], ymm1
vmovdqu ymm1, ymmword [rbp + 0x60]
vmovdqu ymmword [rsi + 0x60], ymm1
vmovdqu ymm1, ymmword [rbp + 0xa0]
vmovdqu ymmword [rsi + 0x80], ymm0
vmovdqu ymmword [rsi + 0xa0], ymm1
vzeroupper
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
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 r13
pop r12
pop rbp
ret