Function at 0x140017160
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.140220ac0
sub rsp, rax
mov rax, qword [0x14038d940]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov r13, r8
mov r14, rdx
mov r15, rcx
mov qword [rbp - 0x80], rcx
xor edi, edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
xor ecx, ecx
call fcn.14022cf3c
mov rcx, rax
call fcn.1402275e0
lea ebx, [rdi + 0x10]
call fcn.1402275b4
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.14003dfb0
sub rbx, 1
jne 0x1400171c5
lea edx, [rbx + 1]
lea rcx, [rbp + 0xd30]
call fcn.140016820
mov rbx, rax
lea r12, [0x14025ad40]
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400174d3
movsxd rax, dword [rax + 4]
cmp rcx, rax
jne 0x1400174d3
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 0x140017255
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 0x14001732e
sub ecx, 1
je 0x140017323
cmp ecx, 1
jne 0x14001732e
test edx, edx
jle 0x140017313
movsxd rdx, edx
dec rdx
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.14003d440
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.14003ec90
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 0x1400172f4
lock inc dword [rdx]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001733f
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14001733f
mov rcx, qword [rbp - 0x10]
call fcn.1402275a0
jmp 0x14001733f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
jmp 0x14001733f
test edx, edx
cmovne r8d, edx
movsxd rdx, r8d
jmp 0x140017334
xor r8d, r8d
movsxd rdx, edx
lea rcx, [rsp + 0x50]
call fcn.14003d440
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14003de70
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001736e
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14001736e
mov rcx, qword [rsp + 0x50]
call fcn.1402275a0
cmp byte [rbx + 0x1c], 0
je 0x1400174b3
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140220114
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14024c480
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.140016200
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 0x140017457
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 0x140017430
aesenclast xmm1, xmm2
movdqu xmmword [rdx], xmm1
add rdx, 0x10
sub r8, 1
jne 0x140017410
mov rcx, qword [rsp + 0x48]
mov r8, rcx
mov rdx, r14
lea rcx, [rbp - 0x58]
call fcn.14003d360
mov rcx, r14
call fcn.1402200d0
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x60], rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400174df
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400174df
mov rcx, qword [rsp + 0x38]
call fcn.1402275a0
jmp 0x1400174df
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.140014d90
jmp 0x140017492
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rdi
mov rbx, qword [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.140042b10
test al, al
jne 0x140017501
mov rdi, r12
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne rdi, rax
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rdi
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rbp - 0x20]
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14003ec90
mov r8d, 3
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.1400411d0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140017552
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140017552
mov rcx, qword [rbp - 0x70]
call fcn.1402275a0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001756f
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14001756f
mov rcx, qword [rsp + 0x68]
call fcn.1402275a0
mov rax, r15
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.1402200b0
mov rbx, qword [rsp + 0x10d8]
add rsp, 0x1080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret