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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.140214d20
sub rsp, rax
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov r13, r8
mov r14, rdx
mov r15, rcx
mov qword [rbp - 0x80], rcx
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
xor ecx, ecx
call fcn.140221078
mov rcx, rax
call fcn.14021b830
lea ebx, [rsi + 0x10]
call fcn.14021b804
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
movzx edx, cl
lea rcx, [rsp + 0x68]
call fcn.14003ded0
sub rbx, 1
jne 0x140017035
lea edx, [rbx + 1]
lea rcx, [rbp + 0xd30]
call fcn.140016690
mov rbx, rax
lea r12, [0x14024ecc0]
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001733d
movsxd rax, dword [rax + 4]
cmp rcx, rax
jne 0x14001733d
mov rcx, qword [r14]
mov qword [rsp + 0x38], rcx
mov rax, qword [r14 + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x1400170c5
lock inc dword [rcx]
mov r8d, dword [rbx + 4]
mov eax, dword [r14 + 0x10]
cdq
idiv r8d
mov eax, r8d
sub eax, edx
cdq
idiv r8d
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14001719e
sub ecx, 1
je 0x140017193
cmp ecx, 1
jne 0x14001719e
test edx, edx
jle 0x140017183
movsxd rdx, edx
dec rdx
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.14003d2f0
nop
mov byte [rsp + 0x30], 0x80
mov qword [rbp - 0x80], 1
lea rcx, [rsp + 0x30]
mov qword [rbp - 0x78], rcx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rax
call fcn.14003ebd0
mov rcx, rax
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rdx, rdx
je 0x140017164
lock inc dword [rdx]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400171af
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400171af
mov rcx, qword [rbp - 0x10]
call fcn.14021b7f0
jmp 0x1400171af
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
jmp 0x1400171af
test edx, edx
cmovne r8d, edx
movsxd rdx, r8d
jmp 0x1400171a4
xor r8d, r8d
movsxd rdx, edx
lea rcx, [rsp + 0x50]
call fcn.14003d2f0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14003dde0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400171de
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400171de
mov rcx, qword [rsp + 0x50]
call fcn.14021b7f0
cmp byte [rbx + 0x1c], 0
je 0x14001731d
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140214374
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140240680
mov rax, qword [r13 + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov r8, r12
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne r8, rax
mov r9, r12
mov rax, qword [rsp + 0x40]
test rax, rax
cmovne r9, rax
lea rdx, [rbp + 0x10]
call fcn.140016070
mov rcx, qword [rsp + 0x48]
mov eax, ecx
shr eax, 4
inc eax
mov r10d, ecx
shr r10d, 4
test cl, 0xf
cmovne r10d, eax
movdqu xmm1, xmmword [r8]
test r10d, r10d
je 0x1400172c7
mov rdx, r14
sub r9, r14
mov r8d, r10d
movdqa xmm2, xmmword [rbp + 0xf0]
movdqa xmm3, xmmword [rbp + 0x10]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rdx + r9]
xorps xmm1, xmm0
xorps xmm1, xmm3
lea rax, [rbp + 0x20]
mov ecx, 0xd
nop word [rax + rax]
aesenc xmm1, xmmword [rax]
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x1400172a0
aesenclast xmm1, xmm2
movdqu xmmword [rdx], xmm1
add rdx, 0x10
sub r8, 1
jne 0x140017280
mov rcx, qword [rsp + 0x48]
mov r8, rcx
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.14003d200
mov rcx, r14
call fcn.140214330
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp - 0x70], xmm0
movsd xmm1, qword [rbp - 0x40]
movsd qword [rbp - 0x60], xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140017349
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140017349
mov rcx, qword [rsp + 0x38]
call fcn.14021b7f0
jmp 0x140017349
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.140014c00
jmp 0x1400172fc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov rbx, qword [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.140042c40
test al, al
jne 0x14001736b
mov rsi, r12
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne rsi, rax
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rsi
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14003ebd0
mov r8d, 3
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140041270
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400173bc
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400173bc
mov rcx, qword [rbp - 0x70]
call fcn.14021b7f0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400173d9
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400173d9
mov rcx, qword [rsp + 0x68]
call fcn.14021b7f0
mov rax, r15
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.140214310
mov rbx, qword [rsp + 0x10d8]
add rsp, 0x1080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret