Function at 0x10020f30
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, ecx
xor eax, eax
xor ecx, ecx
mov esi, ebx
cpuid
xchg ebx, esi
test eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
je 0x10021254
mov ebx, eax
mov dword [esp + 8], 0
xor ecx, ecx
mov eax, 1
mov esi, ebx
cpuid
xchg ebx, esi
mov ebp, edx
mov dword [esp + 0x30], ebx
cmp ebx, 6
mov ebx, 0
mov eax, 0
mov edx, 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], 0
jbe 0x10020fbb
mov eax, 7
xor ecx, ecx
mov esi, ebx
cpuid
xchg ebx, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov ebx, edx
mov eax, 7
mov ecx, 1
mov esi, ebx
cpuid
xchg ebx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edi
mov eax, 0x80000000
xor ecx, ecx
mov esi, ebx
cpuid
xchg ebx, esi
test eax, eax
mov dword [esp + 0x18], 0
je 0x10020ff5
mov eax, 0x80000001
xor ecx, ecx
mov esi, ebx
cpuid
xchg ebx, esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, ebp
and ebx, 0x10
mov eax, ecx
mov esi, ecx
mov edi, ecx
mov edx, ecx
and eax, 1
and esi, 0x202
shr edi, 9
and edx, 0x2000
shl eax, 8
shl edx, 0xf
or esi, eax
mov eax, edi
and edi, 0x800
and eax, 0x400
or eax, esi
mov esi, ecx
or edi, eax
mov eax, ecx
and esi, 0x800000
and eax, 0x400000
mov dword [esp + 4], edi
mov edi, ecx
shl eax, 9
shr edi, 0x1c
or eax, edx
mov edx, ecx
and edi, 4
mov ecx, ebp
shr edx, 0x19
mov dword [esp], eax
mov eax, dword [esp + 0xc]
shr ecx, 0x12
and edx, 1
and ecx, 0x20
or ebx, edx
mov edx, ebp
shr ebp, 0x13
or ebx, edi
mov edi, dword [esp + 8]
and edx, 0x1000000
and ebp, 0xc0
or ecx, ebx
shl eax, 0x16
or edx, esi
add ebp, dword [esp + 4]
mov esi, eax
and eax, 0x80000000
shr edx, 1
and esi, 0x40000000
add edx, dword [esp]
mov ebx, edi
shr ebx, 0x10
or ebp, ecx
mov ecx, edi
and ebx, 0x2000
shr ecx, 0xf
or esi, ebx
mov ebx, edi
and ecx, 8
or eax, esi
mov esi, edi
and ebx, 0x100
or ebp, ecx
and esi, 8
shl ebx, 0xb
or ebp, eax
shl esi, 0xf
or ebx, esi
mov esi, dword [esp + 0xc]
shr esi, 0xa
mov dword [esp + 0x28], esi
and esi, 1
or ebx, esi
mov esi, dword [esp + 0x1c]
mov eax, esi
and eax, 0x20000000
shr eax, 0xd
or edx, eax
mov eax, edi
and eax, 0x80000
shl eax, 0xa
or edx, eax
mov eax, edi
shr edi, 9
and eax, 0x800
and edi, 1
shl eax, 0x13
mov dword [esp], edi
or edx, eax
mov eax, esi
mov edi, edx
not eax
or edi, ebx
test eax, 0xc000000
jne 0x100211a6
call fcn.1000f750
mov ecx, eax
not ecx
test cl, 6
jne 0x100211a6
mov ecx, edi
mov dword [esp + 0x20], eax
and eax, 0xe0
mov ebx, edi
mov edi, dword [esp]
mov dword [esp + 4], 0
or ecx, 0x1000000
cmp dword [esp + 0x30], 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
jbe 0x1002126d
mov eax, 0xd
mov ecx, 1
mov esi, ebx
cpuid
xchg ebx, esi
or ebx, 0x3000000
test al, 1
mov ecx, eax
cmove ebx, dword [esp + 0x10]
cmove edi, edi
cmove ebp, ebp
and ecx, 2
and eax, 8
shl ecx, 0x1a
shl eax, 0x17
mov dword [esp], edi
or eax, ecx
mov ecx, ebp
or eax, ebx
mov dword [esp + 0x10], eax
jmp 0x1002126f
mov dword [esp + 4], 0
mov ebx, dword [esp]
mov esi, dword [esp + 0x18]
and esi, 0x20
shl esi, 0xf
or esi, edi
lea edi, [esp + 0x3c]
push 0xc
push str.AuthenticAMDHygonGenuineGenuineIntel
push edi
call fcn.100176ae
add esp, 0xc
test eax, eax
je 0x100211e9
push 0xc
push 0x1007cdf8
push edi
call fcn.100176ae
add esp, 0xc
test eax, eax
jne 0x10021209
mov edx, dword [esp + 0x18]
mov eax, edx
mov ecx, edx
shr edx, 0xa
and eax, 0x40
and ecx, 0x200000
and edx, 2
shl eax, 6
or esi, ecx
or ebx, edx
or ebp, eax
push 0xc
push 0x1007ce04
push edi
call fcn.100176ae
add esp, 0xc
mov edx, ebp
mov edi, esi
mov ecx, ebp
and edx, 0x4000
and edi, 0xfff3ffff
and ecx, 0xffffbfff
or edx, eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 4]
cmovne ecx, ebp
cmovne edi, esi
mov dword [eax], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 8], ebx
mov dword [eax + 4], edi
or ecx, 0x80000000
jmp 0x1002125f
xorps xmm0, xmm0
mov ecx, 0x80000000
movaps xmmword [edi], xmm0
mov dword [0x10083800], ecx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebp
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
mov edx, esi
mov eax, edi
shr edi, 0xe
and edx, 0x20
and edi, 0x4000
and eax, 0x1000
shl edx, 0xa
shl eax, 5
or edx, edi
mov edi, esi
mov esi, ebp
and esi, 0x10
shl esi, 4
or esi, eax
mov eax, ebp
shl ebp, 0x10
shr eax, 0x11
and eax, 0x40
or eax, esi
mov esi, ebp
and ebp, 0x60000
and esi, 0x10000
or esi, edx
mov edx, ebx
or ebp, esi
and edx, 0x10
or ebp, ecx
mov ecx, ebx
shl edx, 6
and ecx, 0x20
lea esi, [edx + ecx*4]
mov edx, ebx
and edx, 0x400
shr edx, 1
or esi, edx
or esi, eax
or esi, dword [esp + 0x10]
cmp dword [esp + 0x24], 0xe0
jne 0x100213f9
mov ecx, edi
mov eax, edi
and dword [esp + 0x20], 0x60000
shl ecx, 7
and eax, 0x10000
and ecx, 0x1000000
lea eax, [ecx + eax*8]
mov ecx, edi
shl ecx, 5
and ecx, 0x4000000
or ecx, eax
mov eax, edi
shr eax, 4
and eax, 0x400000
or eax, ecx
mov ecx, edi
shr ecx, 6
and ecx, 0x200000
or ecx, eax
mov eax, edi
shr eax, 8
and eax, 0x100000
or eax, ecx
mov ecx, edi
shr ecx, 7
and ecx, 0x800000
or ecx, eax
or ebp, ecx
mov eax, ebp
or eax, 0x2000000
test edi, edi
mov edi, dword [esp + 0x28]
cmovns eax, ebp
mov ebp, dword [esp + 0xc]
and edi, 6
mov ecx, ebp
mov edx, ebp
shl ebp, 0xe
and ecx, 2
and edx, 0x40
and ebp, 0x10000000
shl ecx, 0x1a
shl edx, 0x17
or edx, ecx
mov ecx, dword [esp + 0x14]
or ebp, edx
mov edx, dword [esp + 0x2c]
or ebp, eax
and ecx, 0x20
mov eax, edx
shr ecx, 2
shr eax, 0x12
and eax, 0x20
or ecx, eax
mov eax, edx
shr eax, 4
and eax, 0x10
or edi, eax
or edi, ecx
or esi, edi
cmp dword [esp + 0x20], 0x60000
mov edi, esi
jne 0x100211ae
mov ecx, dword [esp + 0x14]
mov eax, edx
and edx, 0x400000
and ebx, 0x100
and eax, 0x3000000
shr edx, 9
shl ebx, 7
shr eax, 0xd
or edx, eax
and ecx, 0x200000
shr ecx, 7
or ecx, edx
or ebx, ecx
or edi, ebx
jmp 0x100211ae
mov ebx, dword [esp]
mov edi, esi
jmp 0x100211b1