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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
add rax, 6
mov qword [rsp], rax
lea rax, [0x1401eb7d0]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
lea rax, [rax + rcx - 0x10]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x10], xmm0
mov rdi, qword [rsp + 0x110]
mov rsi, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp]
lea rax, [rax*4 + 4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x30]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x38], rax
xor eax, eax
cmp eax, 1
je 0x140118033
movdqa xmm0, xmmword [rsp + 0x10]
aeskeygenassist xmm0, xmm0, 0
movdqa xmmword [rsp + 0x40], xmm0
mov eax, 4
imul rax, rax, 0
movdqa xmm0, xmmword [rsp + 0x40]
pextrd ecx, xmm0, 3
mov rdx, qword [rsp + 0x110]
mov eax, dword [rdx + rax]
xor eax, ecx
mov rcx, qword [rsp + 8]
xor eax, dword [rcx]
mov dword [rsp + 0xa0], eax
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
mov edx, dword [rsp + 0xa0]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 4
imul rax, rax, 1
mov qword [rsp + 0xa8], rax
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x110]
mov eax, dword [rdx + rax*4]
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0xb0], eax
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
mov edx, dword [rsp + 0xb0]
mov dword [rcx + rax*4 + 4], edx
mov eax, 4
imul rax, rax, 2
mov qword [rsp + 0xb8], rax
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x110]
mov eax, dword [rdx + rax*4 + 4]
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0xc0], eax
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
mov edx, dword [rsp + 0xc0]
mov dword [rcx + rax*4 + 8], edx
mov eax, 4
imul rax, rax, 3
mov qword [rsp + 0xc8], rax
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x110]
mov eax, dword [rdx + rax*4 + 8]
mov rdx, qword [rsp + 0xc8]
mov ecx, dword [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0xd0], eax
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
mov edx, dword [rsp + 0xd0]
mov dword [rcx + rax*4 + 0xc], edx
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
lea rax, [rcx + rax*4 + 0x10]
cmp rax, qword [rsp + 0x38]
jne 0x140117d99
jmp 0x140118033
cmp qword [rsp + 0x108], 0x18
jne 0x140117e59
mov eax, 4
imul rax, rax, 4
mov ecx, 4
imul rcx, rcx, 9
mov rdx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x110]
mov ecx, dword [rdi + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x110]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 5
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x110]
mov ecx, dword [rdi + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xb
mov rdx, qword [rsp + 0x110]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0xb
mov rcx, qword [rsp + 0x110]
movdqa xmm0, xmmword [rsp + 0x10]
pinsrd xmm0, dword [rcx + rax], 3
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x10], xmm0
jmp 0x140118008
cmp qword [rsp + 0x108], 0x20
jne 0x140117fd2
mov eax, 4
imul rax, rax, 0xb
mov rcx, qword [rsp + 0x110]
movdqa xmm0, xmmword [rsp + 0x10]
pinsrd xmm0, dword [rcx + rax], 3
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
aeskeygenassist xmm0, xmm0, 0
movdqa xmmword [rsp + 0x70], xmm0
mov eax, 4
imul rax, rax, 4
movdqa xmm0, xmmword [rsp + 0x70]
pextrd ecx, xmm0, 2
mov rdx, qword [rsp + 0x110]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x110]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 5
mov ecx, 4
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x110]
mov ecx, dword [rdi + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xd
mov rdx, qword [rsp + 0x110]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 6
mov ecx, 4
imul rcx, rcx, 0xd
mov rdx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x110]
mov ecx, dword [rdi + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xe
mov rdx, qword [rsp + 0x110]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 7
mov ecx, 4
imul rcx, rcx, 0xe
mov rdx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x110]
mov ecx, dword [rdi + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xf
mov rdx, qword [rsp + 0x110]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0xf
mov rcx, qword [rsp + 0x110]
movdqa xmm0, xmmword [rsp + 0x10]
pinsrd xmm0, dword [rcx + rax], 3
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x10], xmm0
jmp 0x140118008
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 0x110]
movdqa xmm0, xmmword [rsp + 0x10]
pinsrd xmm0, dword [rcx + rax], 3
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x10], xmm0
xor edx, edx
mov rax, qword [rsp + 0x108]
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x110]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x110], rax
jmp 0x140117b9a
add rsp, 0xe8
pop rdi
pop rsi
ret