Function at 0x180018130
Capabilities:
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 r9d, dword [rcx]
lea r14, str.cwko0
mov r13, rdx
mov dword [rdx], r9d
mov esi, dword [rcx + 4]
mov dword [rdx + 4], esi
mov ebp, dword [rcx + 8]
mov dword [rdx + 8], ebp
mov r10d, dword [rcx + 0xc]
mov dword [rdx + 0xc], r10d
mov r11d, dword [rcx + 0x10]
mov dword [rdx + 0x10], r11d
mov r15d, dword [rcx + 0x14]
mov dword [rdx + 0x14], r15d
mov r12d, dword [rcx + 0x18]
mov dword [rdx + 0x18], r12d
mov r8d, dword [rcx + 0x1c]
mov dword [rdx + 0x1c], r8d
mov eax, r8d
shr eax, 0x10
mov edx, r8d
movzx ecx, al
mov ebx, r8d
mov eax, r8d
shr rdx, 0x18
shr eax, 8
mov edi, dword [r14 + rdx*4 + 0x800]
xor edi, dword [r14 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor edi, dword [r14 + rcx*4]
xor edi, dword [r14 + rax*4 + 0xc00]
xor edi, r9d
xor edi, 1
xor esi, edi
mov dword [r13 + 0x20], edi
xor ebp, esi
mov dword [r13 + 0x24], esi
xor r10d, ebp
mov dword [r13 + 0x28], ebp
movzx ecx, r10b
mov eax, r10d
shr rax, 0x18
mov edx, r10d
mov r8d, dword [r14 + rcx*4]
mov dword [r13 + 0x2c], edx
xor r8d, dword [r14 + rax*4 + 0xc00]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
shr eax, 8
xor r8d, dword [r14 + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [r14 + rcx*4 + 0x400]
xor r8d, r11d
xor r15d, r8d
mov dword [r13 + 0x30], r8d
xor r12d, r15d
mov dword [r13 + 0x34], r15d
xor ebx, r12d
mov dword [r13 + 0x38], r12d
movzx ecx, bl
mov eax, ebx
shr rax, 0x18
mov dword [r13 + 0x3c], ebx
mov r10d, dword [r14 + rcx*4 + 0xc00]
xor r10d, dword [r14 + rax*4 + 0x800]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
xor r10d, dword [r14 + rcx*4 + 0x400]
movzx ecx, al
xor r10d, dword [r14 + rcx*4]
xor r10d, edi
xor r10d, 2
mov r14d, r10d
mov dword [r13 + 0x40], r10d
xor r14d, esi
mov esi, r14d
mov dword [r13 + 0x44], r14d
xor esi, ebp
lea rbp, str.cwko0
xor edx, esi
mov dword [r13 + 0x48], esi
mov edi, edx
movzx edx, dl
mov eax, edi
shr eax, 0x18
movzx ecx, al
mov eax, edi
shr eax, 0x10
mov r11d, dword [rbp + rdx*4]
mov dword [r13 + 0x4c], edi
xor r11d, dword [rbp + rcx*4 + 0xc00]
movzx ecx, al
mov eax, edi
shr eax, 8
xor r11d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
xor r11d, dword [rbp + rcx*4 + 0x400]
xor r11d, r8d
xor r15d, r11d
mov dword [r13 + 0x50], r11d
xor r12d, r15d
mov dword [r13 + 0x54], r15d
xor ebx, r12d
mov dword [r13 + 0x58], r12d
movzx edx, bl
mov eax, ebx
shr eax, 0x18
movzx ecx, al
mov eax, ebx
shr eax, 0x10
mov r9d, dword [rbp + rdx*4 + 0xc00]
mov dword [r13 + 0x5c], ebx
xor r9d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, ebx
shr eax, 8
xor r9d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r9d, dword [rbp + rcx*4]
xor r9d, r10d
xor r9d, 4
xor r14d, r9d
mov dword [r13 + 0x60], r9d
xor esi, r14d
mov dword [r13 + 0x64], r14d
xor edi, esi
mov dword [r13 + 0x68], esi
movzx edx, dil
mov eax, edi
shr eax, 0x18
movzx ecx, al
mov eax, edi
shr eax, 0x10
mov r8d, dword [rbp + rdx*4]
mov dword [r13 + 0x6c], edi
xor r8d, dword [rbp + rcx*4 + 0xc00]
movzx ecx, al
mov eax, edi
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [rbp + rcx*4 + 0x400]
xor r11d, r8d
xor r15d, r11d
mov dword [r13 + 0x70], r11d
xor r12d, r15d
mov dword [r13 + 0x74], r15d
xor ebx, r12d
mov dword [r13 + 0x78], r12d
mov eax, ebx
movzx edx, bl
shr eax, 0x18
movzx ecx, al
mov dword [r13 + 0x7c], ebx
mov r10d, dword [rbp + rdx*4 + 0xc00]
xor r10d, dword [rbp + rcx*4 + 0x800]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
xor r10d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r10d, dword [rbp + rcx*4]
xor r10d, r9d
xor r10d, 8
xor r14d, r10d
mov dword [r13 + 0x80], r10d
xor esi, r14d
mov dword [r13 + 0x84], r14d
xor edi, esi
mov dword [r13 + 0x88], esi
movzx edx, dil
mov eax, edi
shr eax, 0x18
movzx ecx, al
mov eax, edi
shr eax, 0x10
mov r8d, dword [rbp + rdx*4]
mov dword [r13 + 0x8c], edi
xor r8d, dword [rbp + rcx*4 + 0xc00]
movzx ecx, al
mov eax, edi
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [rbp + rcx*4 + 0x400]
xor r11d, r8d
xor r15d, r11d
mov dword [r13 + 0x90], r11d
xor r12d, r15d
mov dword [r13 + 0x94], r15d
xor ebx, r12d
mov dword [r13 + 0x98], r12d
movzx edx, bl
mov eax, ebx
shr eax, 0x18
movzx ecx, al
mov eax, ebx
shr eax, 0x10
mov r9d, dword [rbp + rdx*4 + 0xc00]
mov dword [r13 + 0x9c], ebx
xor r9d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, ebx
shr eax, 8
xor r9d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r9d, dword [rbp + rcx*4]
xor r9d, r10d
xor r9d, 0x10
xor r14d, r9d
mov dword [r13 + 0xa0], r9d
xor esi, r14d
mov dword [r13 + 0xa4], r14d
xor edi, esi
mov dword [r13 + 0xa8], esi
mov eax, edi
movzx edx, dil
shr eax, 0x18
movzx ecx, al
mov eax, edi
shr eax, 0x10
mov r8d, dword [rbp + rdx*4]
mov dword [r13 + 0xac], edi
xor r8d, dword [rbp + rcx*4 + 0xc00]
movzx ecx, al
mov eax, edi
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [rbp + rcx*4 + 0x400]
xor r11d, r8d
xor r15d, r11d
mov dword [r13 + 0xb0], r11d
mov dword [r13 + 0xb4], r15d
xor r12d, r15d
xor ebx, r12d
mov dword [r13 + 0xb8], r12d
mov eax, ebx
movzx edx, bl
shr eax, 0x18
movzx ecx, al
mov eax, ebx
shr eax, 0x10
mov r10d, dword [rbp + rdx*4 + 0xc00]
mov dword [r13 + 0xbc], ebx
xor r10d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
mov eax, ebx
shr eax, 8
mov dword [r13 + 0xf0], 0
mov byte [r13 + 0xf0], 0xe0
xor r10d, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
xor r10d, dword [rbp + rcx*4]
xor r10d, r9d
xor r10d, 0x20
xor r14d, r10d
mov dword [r13 + 0xc0], r10d
xor esi, r14d
mov dword [r13 + 0xc4], r14d
xor edi, esi
mov dword [r13 + 0xc8], esi
mov eax, edi
movzx edx, dil
shr eax, 0x18
movzx ecx, al
mov eax, edi
shr eax, 0x10
mov r8d, dword [rbp + rdx*4]
mov dword [r13 + 0xcc], edi
xor r8d, dword [rbp + rcx*4 + 0xc00]
movzx ecx, al
mov eax, edi
shr eax, 8
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
xor r8d, dword [rbp + rcx*4 + 0x400]
xor r11d, r8d
xor r15d, r11d
mov dword [r13 + 0xd0], r11d
xor r12d, r15d
mov dword [r13 + 0xd4], r15d
xor ebx, r12d
mov dword [r13 + 0xd8], r12d
mov eax, ebx
movzx edx, bl
shr eax, 0x18
movzx ecx, al
mov eax, ebx
shr eax, 0x10
mov r8d, dword [rbp + rdx*4 + 0xc00]
mov dword [r13 + 0xdc], ebx
xor r8d, dword [rbp + rcx*4 + 0x800]
movzx ecx, al
shr ebx, 8
movzx eax, bl
mov rbx, qword [rsp + 0x28]
xor r8d, dword [rbp + rcx*4 + 0x400]
xor r8d, dword [rbp + rax*4]
mov rbp, qword [rsp + 0x30]
xor r8d, r10d
xor r8d, 0x40
xor r14d, r8d
mov dword [r13 + 0xe0], r8d
xor esi, r14d
mov dword [r13 + 0xe4], r14d
xor edi, esi
mov dword [r13 + 0xe8], esi
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov dword [r13 + 0xec], edi
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
sub rsp, 0x38
mov r9, rcx
mov r8, rdx
mov ecx, dword [0x180067990]
test ecx, ecx
jns 0x18001b0b5
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov eax, 1
cpuid
mov rbx, qword [rsp + 0x30]
and ecx, 0x2000000
mov dword [0x180067990], ecx
test ecx, ecx
jne 0x18001b0c6
mov rdx, r8
mov rcx, r9
add rsp, 0x38
jmp 0x180018130
movdqu xmm3, xmmword [r9 + 0x10]
movdqu xmm1, xmmword [r9]
movdqu xmmword [r8 + 0x10], xmm3
movdqa xmm2, xmm1
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu 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
movdqu xmmword [r8 + 0xe0], xmm2
mov dword [r8 + 0xf0], 0
mov byte [r8 + 0xf0], 0xe0
add rsp, 0x38
ret