Function at 0x140021b63
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140059f70
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x14009ad3f]
call fcn.140022068
nop
mov dword [rbp + 0x44], 0
mov edx, 4
lea rcx, [rbp + 0x24]
call fcn.140021b9f
nop
lea r9, [rbp + 0x44]
mov r8d, 4
lea rdx, [rbp + 0x24]
mov ecx, 0xc4
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jl 0x14005a0c4
lea rcx, str._t___SystemKernelVaShadowInformation_r_n
call fcn.140021f69
nop
mov eax, dword [rbp + 0x24]
and eax, 1
movzx edx, al
lea rcx, str.KvaShadowEnabled
call fcn.14002139d
nop
mov eax, dword [rbp + 0x24]
shr eax, 1
and eax, 1
movzx edx, al
lea rcx, str.KvaShadowUserGlobal
call fcn.14002139d
nop
mov eax, dword [rbp + 0x24]
shr eax, 2
and eax, 1
movzx edx, al
lea rcx, str.KvaShadowPcid
call fcn.14002139d
nop
mov eax, dword [rbp + 0x24]
shr eax, 3
and eax, 1
movzx edx, al
lea rcx, str.KvaShadowInvpcid
call fcn.14002139d
nop
mov eax, dword [rbp + 0x24]
shr eax, 4
and eax, 1
movzx edx, al
lea rcx, str.KvaShadowRequired
call fcn.14002139d
nop
mov eax, dword [rbp + 0x24]
shr eax, 5
and eax, 1
movzx edx, al
lea rcx, str.KvaShadowRequiredAvailable
call fcn.14002139d
nop
mov eax, dword [rbp + 0x24]
shr eax, 6
and eax, 0x3f
mov edx, eax
lea rcx, str._tInvalidPteBit__lu_r_n
call fcn.140021f69
nop
mov eax, dword [rbp + 0x24]
shr eax, 0xc
and eax, 1
movzx edx, al
lea rcx, str.L1DataCacheFlushSupported
call fcn.14002139d
nop
mov eax, dword [rbp + 0x24]
shr eax, 0xd
and eax, 1
movzx edx, al
lea rcx, str.L1TerminalFaultMitigationPresent
call fcn.14002139d
nop
jmp 0x14005a0d4
mov edx, dword [rbp + 0x64]
lea rcx, str.Cannot_query_Kernel_VA_Shadow_information
call fcn.140021249
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140021b9f
nop
mov dword [rbp + 0x44], 8
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x44]
lea rdx, [rbp + 8]
mov ecx, 0xc9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0xc0000002
je 0x14005a116
cmp dword [rbp + 0x64], 0xc0000003
jne 0x14005a12b
mov edx, dword [rbp + 0x64]
lea rcx, str.Speculation_control_information_class_not_present
call fcn.140021249
nop
jmp 0x14005a4f7
cmp dword [rbp + 0x64], 0
je 0x14005a146
mov edx, dword [rbp + 0x64]
lea rcx, str.Cannot_query_speculation_control_information
call fcn.140021249
nop
jmp 0x14005a4f7
mov eax, dword [rbp + 0x44]
cmp rax, 8
je 0x14005a16e
mov eax, dword [rbp + 0x44]
cmp rax, 4
je 0x14005a16e
mov r8d, dword [rbp + 0x44]
lea rdx, str.Unknown_speculation_control_information_size__lu_r_n
mov ecx, 1
call fcn.1400214bf
nop
lea rcx, str._t___SystemSpeculationControlInformation_r_n
call fcn.140021f69
nop
mov eax, dword [rbp + 8]
and eax, 1
movzx edx, al
lea rcx, str.BpbEnabled
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 1
and eax, 1
movzx edx, al
lea rcx, str.BpbDisabledSystemPolicy
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 2
and eax, 1
movzx edx, al
lea rcx, str.BpbDisabledNoHardwareSupport
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 3
and eax, 1
movzx edx, al
lea rcx, str.SpecCtrlEnumerated
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 4
and eax, 1
movzx edx, al
lea rcx, str.SpecCmdEnumerated
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 5
and eax, 1
movzx edx, al
lea rcx, str.IbrsPresent
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 6
and eax, 1
movzx edx, al
lea rcx, str.StibpPresent
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 7
and eax, 1
movzx edx, al
lea rcx, str.SmepPresent
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 8
and eax, 1
movzx edx, al
lea rcx, str.SpeculativeStoreBypassDisableAvailable
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 9
and eax, 1
movzx edx, al
lea rcx, str.SpeculativeStoreBypassDisableSupported
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0xa
and eax, 1
movzx edx, al
lea rcx, str.SpeculativeStoreBypassDisabledSystemWide
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0xb
and eax, 1
movzx edx, al
lea rcx, str.SpeculativeStoreBypassDisabledKernel
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0xc
and eax, 1
movzx edx, al
lea rcx, str.SpeculativeStoreBypassDisableRequired
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0xd
and eax, 1
movzx edx, al
lea rcx, str.BpbDisabledKernelToUser
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0xe
and eax, 1
movzx edx, al
lea rcx, str.SpecCtrlRetpolineEnabled
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0xf
and eax, 1
movzx edx, al
lea rcx, str.SpecCtrlImportOptimizationEnabled
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x10
and eax, 1
movzx edx, al
lea rcx, str.EnhancedIbrs
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x11
and eax, 1
movzx edx, al
lea rcx, str.HvL1tfStatusAvailable
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x12
and eax, 1
movzx edx, al
lea rcx, str.HvL1tfProcessorNotAffected
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x13
and eax, 1
movzx edx, al
lea rcx, str.HvL1tfMigitationEnabled
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x14
and eax, 1
movzx edx, al
lea rcx, str.HvL1tfMigitationNotEnabled_Hardware
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x15
and eax, 1
movzx edx, al
lea rcx, str.HvL1tfMigitationNotEnabled_LoadOption
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x16
and eax, 1
movzx edx, al
lea rcx, str.HvL1tfMigitationNotEnabled_CoreScheduler
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x17
and eax, 1
movzx edx, al
lea rcx, str.EnhancedIbrsReported
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x18
and eax, 1
movzx edx, al
lea rcx, str.MdsHardwareProtected
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x19
and eax, 1
movzx edx, al
lea rcx, str.MbClearEnabled
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x1a
and eax, 1
movzx edx, al
lea rcx, str.MbClearReported
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x1b
and eax, 3
mov edx, eax
lea rcx, str._t_tTsxCtrlStatus__lu_r_n
call fcn.140021f69
nop
mov eax, dword [rbp + 8]
shr eax, 0x1d
and eax, 1
movzx edx, al
lea rcx, str.TsxCtrlReported
call fcn.14002139d
nop
mov eax, dword [rbp + 8]
shr eax, 0x1e
and eax, 1
movzx edx, al
lea rcx, str.TaaHardwareImmune
call fcn.14002139d
nop
mov eax, dword [rbp + 0x44]
cmp rax, 8
jne 0x14005a4f7
lea rcx, str._t___SystemSpeculationControlInformation_v2_r_n
call fcn.140021f69
nop
mov eax, dword [rbp + 0xc]
and eax, 1
movzx edx, al
lea rcx, str.SbdrSsdpHardwareProtected
call fcn.14002139d
nop
mov eax, dword [rbp + 0xc]
shr eax, 1
and eax, 1
movzx edx, al
lea rcx, str.FbsdpHardwareProtected
call fcn.14002139d
nop
mov eax, dword [rbp + 0xc]
shr eax, 2
and eax, 1
movzx edx, al
lea rcx, str.PsdpHardwareProtected
call fcn.14002139d
nop
mov eax, dword [rbp + 0xc]
shr eax, 3
and eax, 1
movzx edx, al
lea rcx, str.FbClearEnabled
call fcn.14002139d
nop
mov eax, dword [rbp + 0xc]
shr eax, 4
and eax, 1
movzx edx, al
lea rcx, str.FbClearReported
call fcn.14002139d
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x140081840]
call fcn.140021d8e
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret