Function at 0x18006eb50
Capabilities:
Encrypt data using aes via x86 extensions
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r8d, dword [rcx]
lea r13, str.cwko0
mov dword [rdx], r8d
mov r12, rdx
mov ebp, dword [rcx + 4]
mov dword [rdx + 4], ebp
mov r15d, dword [rcx + 8]
mov dword [rdx + 8], r15d
mov r14d, dword [rcx + 0xc]
mov dword [rdx + 0xc], r14d
mov r11d, dword [rcx + 0x10]
mov dword [rdx + 0x10], r11d
mov ebx, dword [rcx + 0x14]
mov dword [rdx + 0x14], ebx
mov edi, dword [rcx + 0x18]
mov dword [rdx + 0x18], edi
mov esi, dword [rcx + 0x1c]
mov dword [rdx + 0x1c], esi
mov eax, esi
shr eax, 0x18
movzx ecx, al
mov eax, esi
shr eax, 0x10
movzx edx, sil
mov r9d, dword [r13 + rdx*4 + 0xc00]
xor r9d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
mov eax, esi
shr eax, 8
xor r9d, dword [r13 + rcx*4 + 0x400]
movzx ecx, al
xor r9d, dword [r13 + rcx*4]
xor r9d, r8d
xor r9d, 1
xor ebp, r9d
mov dword [r12 + 0x20], r9d
xor r15d, ebp
mov dword [r12 + 0x24], ebp
xor r14d, r15d
mov dword [r12 + 0x28], r15d
movzx edx, r14b
mov eax, r14d
shr eax, 0x18
movzx ecx, al
mov eax, r14d
shr eax, 0x10
mov r8d, dword [r13 + rdx*4]
mov dword [r12 + 0x2c], r14d
xor r8d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
mov eax, r14d
shr eax, 8
xor r8d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [r13 + rcx*4 + 0x400]
xor r11d, r8d
xor ebx, r11d
mov dword [r12 + 0x30], r11d
xor edi, ebx
mov dword [r12 + 0x34], ebx
xor esi, edi
mov dword [r12 + 0x38], edi
mov eax, esi
movzx edx, sil
shr eax, 0x18
movzx ecx, al
mov eax, esi
shr eax, 0x10
mov r10d, dword [r13 + rdx*4 + 0xc00]
mov dword [r12 + 0x3c], esi
xor r10d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
mov eax, esi
shr eax, 8
xor r10d, dword [r13 + rcx*4 + 0x400]
movzx ecx, al
xor r10d, dword [r13 + rcx*4]
xor r10d, r9d
xor r10d, 2
mov dword [r12 + 0x40], r10d
xor ebp, r10d
xor r15d, ebp
mov dword [r12 + 0x44], ebp
xor r14d, r15d
mov dword [r12 + 0x48], r15d
movzx edx, r14b
mov eax, r14d
shr eax, 0x18
movzx ecx, al
mov eax, r14d
shr eax, 0x10
mov r8d, dword [r13 + rdx*4]
mov dword [r12 + 0x4c], r14d
xor r8d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
mov eax, r14d
shr eax, 8
xor r8d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [r13 + rcx*4 + 0x400]
xor r11d, r8d
xor ebx, r11d
mov dword [r12 + 0x50], r11d
xor edi, ebx
mov dword [r12 + 0x54], ebx
xor esi, edi
mov dword [r12 + 0x58], edi
movzx edx, sil
mov eax, esi
shr eax, 0x18
movzx ecx, al
mov eax, esi
shr eax, 0x10
mov r9d, dword [r13 + rdx*4 + 0xc00]
mov dword [r12 + 0x5c], esi
xor r9d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
mov eax, esi
shr eax, 8
xor r9d, dword [r13 + rcx*4 + 0x400]
movzx ecx, al
xor r9d, dword [r13 + rcx*4]
xor r9d, r10d
xor r9d, 4
xor ebp, r9d
mov dword [r12 + 0x60], r9d
xor r15d, ebp
mov dword [r12 + 0x64], ebp
xor r14d, r15d
mov dword [r12 + 0x68], r15d
movzx edx, r14b
mov eax, r14d
shr eax, 0x18
movzx ecx, al
mov eax, r14d
shr eax, 0x10
mov r8d, dword [r13 + rdx*4]
mov dword [r12 + 0x6c], r14d
xor r8d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
mov eax, r14d
shr eax, 8
xor r8d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [r13 + rcx*4 + 0x400]
xor r11d, r8d
xor ebx, r11d
mov dword [r12 + 0x70], r11d
xor edi, ebx
mov dword [r12 + 0x74], ebx
xor esi, edi
mov dword [r12 + 0x78], edi
mov eax, esi
movzx edx, sil
shr eax, 0x18
movzx ecx, al
mov eax, esi
mov dword [r12 + 0x7c], esi
mov r10d, dword [r13 + rdx*4 + 0xc00]
xor r10d, dword [r13 + rcx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
xor r10d, dword [r13 + rcx*4 + 0x400]
mov eax, esi
shr eax, 8
movzx ecx, al
xor r10d, dword [r13 + rcx*4]
xor r10d, r9d
xor r10d, 8
xor ebp, r10d
mov dword [r12 + 0x80], r10d
xor r15d, ebp
mov dword [r12 + 0x84], ebp
xor r14d, r15d
mov dword [r12 + 0x88], r15d
movzx edx, r14b
mov eax, r14d
shr eax, 0x18
movzx ecx, al
mov eax, r14d
shr eax, 0x10
mov r8d, dword [r13 + rdx*4]
mov dword [r12 + 0x8c], r14d
xor r8d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
mov eax, r14d
shr eax, 8
xor r8d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [r13 + rcx*4 + 0x400]
xor r11d, r8d
xor ebx, r11d
mov dword [r12 + 0x90], r11d
xor edi, ebx
mov dword [r12 + 0x94], ebx
xor esi, edi
mov dword [r12 + 0x98], edi
movzx edx, sil
mov eax, esi
shr eax, 0x18
movzx ecx, al
mov eax, esi
shr eax, 0x10
mov r9d, dword [r13 + rdx*4 + 0xc00]
mov dword [r12 + 0x9c], esi
xor r9d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
mov eax, esi
shr eax, 8
xor r9d, dword [r13 + rcx*4 + 0x400]
movzx ecx, al
xor r9d, dword [r13 + rcx*4]
xor r9d, r10d
xor r9d, 0x10
xor ebp, r9d
mov dword [r12 + 0xa0], r9d
xor r15d, ebp
mov dword [r12 + 0xa4], ebp
xor r14d, r15d
mov dword [r12 + 0xa8], r15d
mov eax, r14d
movzx edx, r14b
shr eax, 0x18
movzx ecx, al
mov eax, r14d
shr eax, 0x10
mov r8d, dword [r13 + rdx*4]
mov dword [r12 + 0xac], r14d
xor r8d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
mov eax, r14d
shr eax, 8
xor r8d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [r13 + rcx*4 + 0x400]
xor r11d, r8d
xor ebx, r11d
mov dword [r12 + 0xb0], r11d
xor edi, ebx
mov dword [r12 + 0xb4], ebx
xor esi, edi
mov dword [r12 + 0xb8], edi
mov dword [r12 + 0xbc], esi
mov eax, esi
movzx edx, sil
shr eax, 0x18
movzx ecx, al
mov eax, esi
shr eax, 0x10
mov r10d, dword [r13 + rdx*4 + 0xc00]
mov dword [r12 + 0xf0], 0
xor r10d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
mov eax, esi
shr eax, 8
mov byte [r12 + 0xf0], 0xe0
xor r10d, dword [r13 + rcx*4 + 0x400]
movzx ecx, al
xor r10d, dword [r13 + rcx*4]
xor r10d, r9d
xor r10d, 0x20
xor ebp, r10d
mov dword [r12 + 0xc0], r10d
xor r15d, ebp
mov dword [r12 + 0xc4], ebp
xor r14d, r15d
mov dword [r12 + 0xc8], r15d
mov eax, r14d
movzx edx, r14b
shr eax, 0x18
movzx ecx, al
mov eax, r14d
shr eax, 0x10
mov r8d, dword [r13 + rdx*4]
mov dword [r12 + 0xcc], r14d
xor r8d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
mov eax, r14d
shr eax, 8
xor r8d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [r13 + rcx*4 + 0x400]
xor r11d, r8d
xor ebx, r11d
mov dword [r12 + 0xd0], r11d
xor edi, ebx
mov dword [r12 + 0xd4], ebx
mov rbx, qword [rsp + 0x28]
xor esi, edi
mov eax, esi
movzx edx, sil
shr eax, 0x18
movzx ecx, al
mov eax, esi
shr eax, 0x10
mov r8d, dword [r13 + rdx*4 + 0xc00]
mov dword [r12 + 0xdc], esi
xor r8d, dword [r13 + rcx*4 + 0x800]
movzx ecx, al
shr esi, 8
movzx eax, sil
mov rsi, qword [rsp + 0x38]
xor r8d, dword [r13 + rcx*4 + 0x400]
mov dword [r12 + 0xd8], edi
xor r8d, dword [r13 + rax*4]
mov rdi, qword [rsp + 0x40]
xor r8d, r10d
xor r8d, 0x40
xor ebp, r8d
mov dword [r12 + 0xe0], r8d
xor r15d, ebp
mov dword [r12 + 0xe4], ebp
mov rbp, qword [rsp + 0x30]
xor r14d, r15d
mov dword [r12 + 0xec], r14d
xor eax, eax
mov dword [r12 + 0xe8], r15d
pop r15
pop r14
pop r13
pop r12
ret
sub rsp, 0x38
mov r9, rcx
mov r8, rdx
mov ecx, dword [0x1800ec414]
test ecx, ecx
jns 0x18006eb85
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov eax, 1
cpuid
mov rbx, qword [rsp + 0x30]
and ecx, 0x2000000
mov dword [0x1800ec414], ecx
test ecx, ecx
jne 0x18006eb96
mov rdx, r8
mov rcx, r9
add rsp, 0x38
jmp 0x18006bdd0
movdqu xmm3, xmmword [r9 + 0x10]
movdqu xmm1, xmmword [r9]
movdqa xmmword [r8 + 0x10], xmm3
movdqa xmm2, xmm1
movdqa xmmword [r8], xmm1
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm1
movdqa xmm4, xmm2
pxor xmm4, xmm0
pslldq xmm2, 4
pxor xmm4, xmm2
aeskeygenassist xmm0, xmm3, 1
pshufd xmm1, xmm0, 0xff
pxor xmm4, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0x20], xmm4
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm4, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm4
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0x30], xmm2
pslldq xmm1, 4
pxor xmm0, xmm4
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 2
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0x40], xmm3
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0x50], xmm2
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 4
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0x60], xmm3
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
movdqa xmmword [r8 + 0x70], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 8
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0x80], xmm3
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0x90], xmm2
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 0x10
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0xa0], xmm3
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm2, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0xb0], xmm2
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm4, xmm1
pslldq xmm1, 4
pxor xmm4, xmm0
pxor xmm4, xmm1
aeskeygenassist xmm0, xmm2, 0x20
pshufd xmm1, xmm0, 0xff
pxor xmm4, xmm1
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [r8 + 0xc0], xmm4
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm4, 0
pshufd xmm1, xmm0, 0xaa
pxor xmm3, xmm1
movdqa xmm1, xmm4
pslldq xmm1, 4
movdqa xmmword [r8 + 0xd0], xmm3
movdqa xmm0, xmm1
xor eax, eax
pslldq xmm1, 4
pxor xmm0, xmm4
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x40
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqa xmmword [r8 + 0xe0], xmm2
mov dword [r8 + 0xf0], 0
mov byte [r8 + 0xf0], 0xe0
add rsp, 0x38
ret