Function at 0x140017000
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.140214d50
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.140221098
mov rcx, rax
call fcn.14021b850
lea ebx, [rsi + 0x10]
call fcn.14021b824
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.14003df00
sub rbx, 1
jne 0x140017065
lea edx, [rbx + 1]
lea rcx, [rbp + 0xd30]
call fcn.1400166c0
mov rbx, rax
lea r12, [0x14024eca0]
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001736d
movsxd rax, dword [rax + 4]
cmp rcx, rax
jne 0x14001736d
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 0x1400170f5
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 0x1400171ce
sub ecx, 1
je 0x1400171c3
cmp ecx, 1
jne 0x1400171ce
test edx, edx
jle 0x1400171b3
movsxd rdx, edx
dec rdx
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.14003d320
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.14003ec00
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 0x140017194
lock inc dword [rdx]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400171df
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400171df
mov rcx, qword [rbp - 0x10]
call fcn.14021b810
jmp 0x1400171df
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
jmp 0x1400171df
test edx, edx
cmovne r8d, edx
movsxd rdx, r8d
jmp 0x1400171d4
xor r8d, r8d
movsxd rdx, edx
lea rcx, [rsp + 0x50]
call fcn.14003d320
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14003de10
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001720e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14001720e
mov rcx, qword [rsp + 0x50]
call fcn.14021b810
cmp byte [rbx + 0x1c], 0
je 0x14001734d
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1402143a4
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1402406a0
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.1400160a0
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 0x1400172f7
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, SHCreateThread
nop word [rax + rax]
aesenc xmm1, xmmword [rax]
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x1400172d0
aesenclast xmm1, xmm2
movdqu xmmword [rdx], xmm1
add rdx, 0x10
sub r8, 1
jne 0x1400172b0
mov rcx, qword [rsp + 0x48]
mov r8, rcx
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.14003d230
mov rcx, r14
call fcn.140214360
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 0x140017379
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140017379
mov rcx, qword [rsp + 0x38]
call fcn.14021b810
jmp 0x140017379
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.140014c30
jmp 0x14001732c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov rbx, qword [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.140042c70
test al, al
jne 0x14001739b
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.14003ec00
mov r8d, 3
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400412a0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400173ec
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400173ec
mov rcx, qword [rbp - 0x70]
call fcn.14021b810
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140017409
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140017409
mov rcx, qword [rsp + 0x68]
call fcn.14021b810
mov rax, r15
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.140214340
mov rbx, qword [rsp + 0x10d8]
add rsp, 0x1080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret