Function at 0x180078580
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 r14
mov r9d, dword [rcx]
lea rbp, str.cwko0
mov dword [rdx], r9d
mov r14, rdx
mov r10d, dword [rcx + 4]
mov dword [rdx + 4], r10d
mov r11d, dword [rcx + 8]
mov dword [rdx + 8], r11d
mov r8d, dword [rcx + 0xc]
mov dword [rdx + 0xc], r8d
mov eax, r8d
shr eax, 0x10
mov ebx, r8d
movzx ecx, al
mov edx, r8d
mov eax, r8d
shr rdx, 0x18
shr eax, 8
mov edi, dword [rbp + rdx*4 + 0x800]
xor edi, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor edi, dword [rbp + rcx*4]
xor edi, dword [rbp + rax*4 + 0xc00]
xor edi, r9d
xor edi, dword [0x180097a00]
mov dword [r14 + 0x10], edi
mov esi, edi
xor esi, r10d
mov dword [r14 + 0x14], esi
mov r8d, esi
xor r8d, r11d
mov dword [r14 + 0x18], r8d
mov eax, r8d
xor eax, ebx
movzx ecx, al
mov edx, eax
shr rax, 0x18
mov dword [r14 + 0x1c], edx
mov r9d, dword [rbp + rcx*4 + 0xc00]
xor r9d, dword [rbp + rax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
xor r9d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r9d, dword [rbp + rcx*4]
xor r9d, edi
xor r9d, dword [0x180097a04]
mov dword [r14 + 0x20], r9d
xor esi, r9d
mov dword [r14 + 0x24], esi
mov edi, esi
xor edi, r8d
mov dword [r14 + 0x28], edi
mov eax, edi
xor eax, edx
movzx ecx, al
mov ebx, eax
shr rax, 0x18
mov dword [r14 + 0x2c], ebx
mov r11d, dword [rbp + rcx*4 + 0xc00]
xor r11d, dword [rbp + rax*4 + 0x800]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
xor r11d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r11d, dword [rbp + rcx*4]
xor r11d, r9d
xor r11d, dword [0x180097a08]
xor esi, r11d
mov dword [r14 + 0x30], r11d
xor edi, esi
mov dword [r14 + 0x34], esi
mov dword [r14 + 0x38], edi
xor ebx, edi
mov dword [r14 + 0x3c], ebx
mov eax, ebx
shr eax, 0x18
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx edx, bl
mov r8d, ebx
shr ebx, 8
mov r10d, dword [rbp + rdx*4 + 0xc00]
xor r10d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
movzx eax, bl
xor r10d, dword [rbp + rcx*4 + 0x400]
xor r10d, dword [rbp + rax*4]
xor r10d, r11d
xor r10d, dword [0x180097a0c]
mov dword [r14 + 0x40], r10d
mov ebx, r10d
xor ebx, esi
mov dword [r14 + 0x44], ebx
mov r9d, ebx
xor r9d, edi
xor r8d, r9d
mov dword [r14 + 0x48], r9d
mov dword [r14 + 0x4c], r8d
mov eax, r8d
shr eax, 0x18
movzx ecx, al
mov eax, r8d
shr eax, 0x10
movzx edx, r8b
mov r11d, dword [rbp + rdx*4 + 0xc00]
xor r11d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, r8d
shr eax, 8
xor r11d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r11d, dword [rbp + rcx*4]
xor r11d, r10d
xor r11d, dword [0x180097a10]
mov dword [r14 + 0x50], r11d
xor ebx, r11d
mov dword [r14 + 0x54], ebx
mov r10d, ebx
xor r10d, r9d
mov dword [r14 + 0x58], r10d
mov r9d, r10d
xor r9d, r8d
mov dword [r14 + 0x5c], r9d
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr eax, 0x10
movzx edx, r9b
mov r8d, dword [rbp + rdx*4 + 0xc00]
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, r9d
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r8d, dword [rbp + rcx*4]
xor r8d, dword [0x180097a14]
xor r11d, r8d
xor ebx, r11d
mov dword [r14 + 0x60], r11d
xor r10d, ebx
mov dword [r14 + 0x64], ebx
xor r9d, r10d
mov dword [r14 + 0x68], r10d
mov dword [r14 + 0x6c], r9d
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
movzx edx, r9b
mov r8d, dword [rbp + rdx*4 + 0xc00]
xor r8d, dword [rbp + rcx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r8d, dword [rbp + rcx*4]
xor r8d, dword [0x180097a18]
xor r11d, r8d
mov dword [r14 + 0x70], r11d
xor ebx, r11d
mov dword [r14 + 0x74], ebx
xor r10d, ebx
mov dword [r14 + 0x78], r10d
xor r9d, r10d
mov dword [r14 + 0x7c], r9d
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr eax, 0x10
movzx edx, r9b
mov r8d, dword [rbp + rdx*4 + 0xc00]
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, r9d
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r8d, dword [rbp + rcx*4]
xor r8d, dword [0x180097a1c]
xor r11d, r8d
mov dword [r14 + 0x80], r11d
xor ebx, r11d
mov dword [r14 + 0x84], ebx
xor r10d, ebx
mov dword [r14 + 0x88], r10d
xor r9d, r10d
mov dword [r14 + 0x8c], r9d
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr eax, 0x10
movzx edx, r9b
mov r8d, dword [rbp + rdx*4 + 0xc00]
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, r9d
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r8d, dword [rbp + rcx*4]
xor r8d, dword [0x180097a20]
xor r11d, r8d
mov dword [r14 + 0x90], r11d
xor ebx, r11d
mov dword [r14 + 0x94], ebx
xor r10d, ebx
xor r9d, r10d
mov dword [r14 + 0x98], r10d
mov dword [r14 + 0x9c], r9d
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr eax, 0x10
movzx edx, r9b
mov r8d, dword [rbp + rdx*4 + 0xc00]
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, r9d
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r8d, dword [rbp + rcx*4]
xor r8d, dword [0x180097a24]
xor r11d, r8d
xor ebx, r11d
mov dword [r14 + 0xa0], r11d
mov dword [r14 + 0xa4], ebx
mov rbp, qword [rsp + 0x18]
xor r10d, ebx
mov rbx, qword [rsp + 0x10]
xor r9d, r10d
mov rsi, qword [rsp + 0x20]
xor eax, eax
mov rdi, qword [rsp + 0x28]
mov dword [r14 + 0xf0], 0
mov dword [r14 + 0xac], r9d
mov dword [r14 + 0xa8], r10d
mov byte [r14 + 0xf0], 0xa0
pop r14
ret
sub rsp, 0x38
mov r9, rcx
mov r8, rdx
mov ecx, dword [0x1800a6010]
test ecx, ecx
jns 0x1800785b5
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov eax, 1
cpuid
mov rbx, qword [rsp + 0x30]
and ecx, 0x2000000
mov dword [0x1800a6010], ecx
test ecx, ecx
jne 0x1800785c6
mov rdx, r8
mov rcx, r9
add rsp, 0x38
jmp 0x180077330
movdqu xmm2, xmmword [r9]
movdqa xmm1, xmm2
movdqu xmmword [r8], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm3, xmm1
pxor xmm0, xmm2
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 1
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm3
movdqu xmmword [r8 + 0x10], xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm2, xmm1
pxor xmm0, xmm3
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 2
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqa xmm1, xmm2
movdqu xmmword [r8 + 0x20], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm3, xmm1
pxor xmm0, xmm2
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 4
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm3
movdqu xmmword [r8 + 0x30], xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm2, xmm1
pxor xmm0, xmm3
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 8
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqa xmm1, xmm2
movdqu xmmword [r8 + 0x40], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm3, xmm1
pxor xmm0, xmm2
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 0x10
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqa xmm1, xmm3
movdqu xmmword [r8 + 0x50], xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm2, xmm1
pxor xmm0, xmm3
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x20
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqu xmmword [r8 + 0x60], xmm2
movdqa xmm1, xmm2
pslldq xmm1, 4
xor eax, eax
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 0x40
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqu xmmword [r8 + 0x70], xmm3
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm2, xmm1
pxor xmm0, xmm3
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x80
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqu xmmword [r8 + 0x80], xmm2
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 0x1b
pshufd xmm1, xmm0, 0xff
pxor xmm3, xmm1
movdqu xmmword [r8 + 0x90], xmm3
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
movdqa xmm2, xmm1
pxor xmm0, xmm3
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x36
pshufd xmm1, xmm0, 0xff
pxor xmm2, xmm1
movdqu xmmword [r8 + 0xa0], xmm2
mov dword [r8 + 0xf0], 0
mov byte [r8 + 0xf0], 0xa0
add rsp, 0x38
ret