Function at 0x180028220
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov rbp, rsp
xor eax, eax
cmp dword [0x18002d920], 0
jne 0x180028507
xor eax, eax
mov rsi, rbx
cpuid
xchg rbx, rsi
mov ecx, 3
test eax, eax
je 0x1800284ee
mov r9d, eax
mov r10d, esi
mov eax, 1
mov rsi, rbx
cpuid
xchg rbx, rsi
mov ebx, ecx
mov r12d, edx
shr r12d, 0xf
and r12d, 1
shr edx, 0x16
mov r14d, edx
and r14d, 2
mov r11d, edx
and r11d, 8
and edx, 0x10
mov esi, ecx
shl esi, 5
and esi, 0x20
mov edi, ecx
and edi, 2
shl edi, 0x13
or edi, esi
mov esi, ecx
shr esi, 3
and esi, 0x40
or esi, edi
mov r13d, ecx
and r13d, 0x1000
mov r15d, ecx
shr r15d, 0xc
mov r8d, r15d
and r8d, 0x80
and r15d, 0x100
mov eax, ecx
shr eax, 0x15
and eax, 4
mov edi, ecx
shr edi, 6
and edi, 0x80000
shr ecx, 0xe
and ecx, 0x8000
or ecx, edi
or ecx, r12d
or ecx, r14d
or ecx, r11d
or ecx, edx
lea edi, [rsi + r13*4]
or edi, r8d
or edi, r15d
or edi, eax
or edi, ecx
and ebx, 0x18000000
xor r11d, r11d
cmp ebx, 0x18000000
jne 0x18002833f
xor ecx, ecx
xgetbv
mov ecx, eax
and ecx, 6
cmp ecx, 6
jne 0x18002833f
and eax, 0xe0
cmp eax, 0xe0
sete r11b
or edi, 0x200
mov bl, 1
cmp r9d, 7
jae 0x18002834b
jmp 0x180028486
xor ebx, ebx
cmp r9d, 7
jb 0x180028486
mov eax, 7
xor ecx, ecx
mov rsi, rbx
cpuid
xchg rbx, rsi
mov eax, esi
and eax, 8
shl eax, 0xe
or eax, edi
mov edi, eax
or edi, 0x400
test sil, 0x20
cmove edi, eax
test bl, bl
cmove edi, eax
mov eax, esi
shl eax, 9
and eax, 0x40000
or eax, edi
mov ebx, eax
or ebx, 0x10000
test esi, 0x10000
cmove ebx, eax
test r11b, r11b
cmove ebx, eax
mov eax, ebx
or eax, 0x800000
test esi, 0x20000
cmove eax, ebx
test r11b, r11b
cmove eax, ebx
mov ebx, eax
or ebx, 0x10000000
test esi, 0x200000
cmove ebx, eax
test r11b, r11b
cmove ebx, eax
mov eax, ebx
or eax, 0x4000000
test esi, 0x4000000
cmove eax, ebx
test r11b, r11b
cmove eax, ebx
mov ebx, eax
or ebx, 0x2000000
test esi, 0x8000000
cmove ebx, eax
test r11b, r11b
cmove ebx, eax
mov eax, ebx
or eax, 0x1000000
test esi, 0x10000000
cmove eax, ebx
test r11b, r11b
cmove eax, ebx
mov ebx, eax
or ebx, 0x400000
test esi, 0x40000000
cmove ebx, eax
test r11b, r11b
cmove ebx, eax
mov eax, ebx
or eax, 0x200000
test esi, esi
cmovns eax, ebx
test r11b, r11b
cmove eax, ebx
mov ebx, eax
or ebx, 0x8000000
test cl, 2
cmove ebx, eax
test r11b, r11b
cmove ebx, eax
mov eax, ebx
or eax, 0x80000000
test ecx, 0x4000
cmove eax, ebx
test r11b, r11b
cmove eax, ebx
mov ecx, eax
or ecx, 0x20000000
test dl, 4
cmove ecx, eax
test r11b, r11b
cmove ecx, eax
mov edi, ecx
or edi, 0x40000000
test dl, 8
cmove edi, ecx
test r11b, r11b
cmove edi, ecx
mov eax, 0x80000000
mov rsi, rbx
cpuid
xchg rbx, rsi
cmp eax, 0x80000001
jb 0x1800284cd
mov eax, 0x80000001
mov rsi, rbx
cpuid
xchg rbx, rsi
mov eax, ecx
and eax, 0x40
shl eax, 5
or eax, edi
lea edx, [rcx*4]
and edx, 0x2000
shr ecx, 4
and ecx, 0x1000
or ecx, edx
or ecx, eax
mov edi, ecx
mov dword [0x18002d924], edi
xor eax, eax
cmp r10d, 0x68747541
je 0x1800284f5
cmp r10d, 0x756e6547
jne 0x1800284fc
mov ecx, 1
jmp 0x180028501
mov eax, 0xffffffff
jmp 0x180028501
mov ecx, 2
jmp 0x180028501
mov ecx, 3
mov dword [0x18002d920], ecx
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret