Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ayoubfaouzi/al-khaser
/ functions
Functions
293 in github.com/ayoubfaouzi/al-khaser
⨍
Functions
293
◇
Types & classes
28
Function
WUDF_IsAnyDebuggerPresent
al-khaser/AntiDebug/WUDF_IsDebuggerPresent.cpp:4
Function
WUDF_IsKernelDebuggerPresent
al-khaser/AntiDebug/WUDF_IsDebuggerPresent.cpp:15
Function
WUDF_IsUserDebuggerPresent
al-khaser/AntiDebug/WUDF_IsDebuggerPresent.cpp:26
Function
accelerated_sleep
Sleep and check if time have been accelerated */
al-khaser/AntiVM/Generic.cpp:958
Function
cachememory_wmi
Check Win32_CacheMemory for entries */
al-khaser/AntiVM/Generic.cpp:1578
Function
caption_video_controller_wmi
Check Caption from VideoController using WMI */
al-khaser/AntiVM/Generic.cpp:1438
Function
check_hyperv_driver_objects
al-khaser/AntiVM/HyperV.cpp:5
Function
check_hyperv_global_objects
al-khaser/AntiVM/HyperV.cpp:43
Function
cim_memory_wmi
Check CIM_Memory for entries */
al-khaser/AntiVM/Generic.cpp:1676
Function
cim_numericsensor_wmi
Check CIM_NumericSensor for entries */
al-khaser/AntiVM/Generic.cpp:1688
Function
cim_physicalconnector_wmi
Check CIM_PhysicalConnector for entries */
al-khaser/AntiVM/Generic.cpp:1700
Function
cim_sensor_wmi
Check CIM_Sensor for entries */
al-khaser/AntiVM/Generic.cpp:1712
Function
cim_slot_wmi
Check CIM_Slot for entries */
al-khaser/AntiVM/Generic.cpp:1724
Function
cim_temperaturesensor_wmi
Check CIM_TemperatureSensor for entries */
al-khaser/AntiVM/Generic.cpp:1736
Function
cim_voltagesensor_wmi
Check CIM_VoltageSensor for entries */
al-khaser/AntiVM/Generic.cpp:1748
Function
cpu_fan_wmi
According to MSDN, this query should return a class that provides statistics on the CPU fan. Win32/OilRig checks to see if the result of this query re
al-khaser/AntiVM/Generic.cpp:1391
Function
cpuid_hypervisor_vendor
If HV presence confirmed then it is good to know which type of hypervisor we have When CPUID is called with EAX=0x40000000, cpuid return the hyperviso
al-khaser/AntiVM/Generic.cpp:1004
Function
cpuid_is_hypervisor
The CPUID instruction is a processor supplementary instruction (its name derived from CPU IDentification) for the x86 architecture allowing software t
al-khaser/AntiVM/Generic.cpp:987
Function
current_temperature_acpi_wmi
Check Current Temperature using WMI, this requires admin privileges In my tests, it works against vbox, vmware, kvm and xen. */
al-khaser/AntiVM/Generic.cpp:1247
Function
disk_size_getdiskfreespace
This trick consists of getting information about total amount of space. This can be used to expose a sandbox. */
al-khaser/AntiVM/Generic.cpp:934
Function
disk_size_wmi
Check hard disk size using WMI */
al-khaser/AntiVM/Generic.cpp:554
Function
dizk_size_deviceiocontrol
DeviceIoControl works with disks directly rather than partitions (GetDiskFreeSpaceEx) We can send IOCTL_DISK_GET_LENGTH_INFO code to get the raw byte
al-khaser/AntiVM/Generic.cpp:633
Function
enumerate_memory_wow64
al-khaser/Shared/Utils.cpp:1099
Function
exec_check
note: templated version of this function is in Common.h
al-khaser/Shared/Common.cpp:84
Function
firmware_ACPI
Check for generic */
al-khaser/AntiVM/Generic.cpp:2054
Function
gdt_trick
Same for Global Descriptor Table (GDT) */
al-khaser/AntiVM/Generic.cpp:422
Function
hosting_check
al-khaser/AntiVM/Generic.cpp:2157
Function
hybridanalysismacdetect
Detect Hybrid Analysis with mac vendor */
al-khaser/AntiVM/Generic.cpp:363
Function
idt_trick
This trick involves looking at pointers to critical operating system tables that are typically relocated on a virtual machine. One such table is the
al-khaser/AntiVM/Generic.cpp:396
Function
kvm_dir
Check against kvm blacklisted directories */
al-khaser/AntiVM/KVM.cpp:87
Function
lack_user_input
Check for the lack of user input. This version is slightly different from the original: https://www.lastline.com/labsblog/malware-evasion-techniques/
al-khaser/AntiVM/Generic.cpp:888
Function
ldt_trick
Same for Local Descriptor Table (LDT) */
al-khaser/AntiVM/Generic.cpp:409
Function
log_print
al-khaser/Shared/log.cpp:43
Function
main
al-khaser/Al-khaser.cpp:108
Function
main
Tools/ATAIdentifyDump/ATAIdentifyDump.cpp:3
Function
manufacturer_computer_system_wmi
Check Manufacturer from ComputerSystem using WMI */
al-khaser/AntiVM/Generic.cpp:1182
Function
memory_space
Check if the machine have enough memory space, usually VM get a small ammount, one reason if because several VMs are running on the same servers so th
al-khaser/AntiVM/Generic.cpp:919
Function
memoryarray_wmi
Check Win32_MemoryArray for entries */
al-khaser/AntiVM/Generic.cpp:1614
Function
memorydevice_wmi
Check Win32_MemoryDevice for entries */
al-khaser/AntiVM/Generic.cpp:1602
Function
model_computer_system_wmi
Check Model from ComputerSystem using WMI */
al-khaser/AntiVM/Generic.cpp:1118
Function
mouse_movement
Check if there is any mouse movement in the sandbox. */
al-khaser/AntiVM/Generic.cpp:859
Function
number_SMBIOS_tables
Check for SMBIOS tables number */
al-khaser/AntiVM/Generic.cpp:2037
Function
number_cores_wmi
Check number of cores using WMI */
al-khaser/AntiVM/Generic.cpp:464
Function
parallels_check_mac
Check Parallels NIC MAC address */
al-khaser/AntiVM/Parallels.cpp:57
Function
perfctrs_thermalzoneinfo_wmi
Check Win32_PerfFormattedData_Counters_ThermalZoneInformation for entries */
al-khaser/AntiVM/Generic.cpp:1662
Function
physicalmemory_wmi
Check Win32_PhysicalMemory for entries */
al-khaser/AntiVM/Generic.cpp:1590
Function
pirated_windows
al-khaser/AntiVM/Generic.cpp:1772
Function
portconnector_wmi
Check Win32_PortConnector for entries */
al-khaser/AntiVM/Generic.cpp:1638
Function
power_capabilities
Check what power states are enabled. Most VMs don't support S1-S4 power states whereas most hardware does, and thermal control is usually not found ei
al-khaser/AntiVM/Generic.cpp:1371
Function
process_id_processor_wmi
Check ProcessId from Win32_Processor using WMI KVM, XEN anv VMWare seems to return something, VBOX return NULL */
al-khaser/AntiVM/Generic.cpp:1309
Function
qemu_firmware_ACPI
Check for ACPI firmware */
al-khaser/AntiVM/Qemu.cpp:145
Function
qemu_firmware_SMBIOS
Check for SMBIOS firmware */
al-khaser/AntiVM/Qemu.cpp:117
Function
query_license_value
Detect Virtual machine by calling NtQueryLicenseValue with Kernel-VMDetection-Private as license value. This detection works on Windows 7 and does not
al-khaser/AntiVM/Generic.cpp:1502
Function
rdtsc_diff_locky
al-khaser/TimingAttacks/timing.cpp:180
Function
rdtsc_diff_vmexit
al-khaser/TimingAttacks/timing.cpp:218
Function
registry_disk_enum
al-khaser/AntiVM/Generic.cpp:1889
Function
registry_services_disk_enum
Check HKLM\System\CurrentControlSet\Services\Disk\Enum for values related * to virtual machines. */
al-khaser/AntiVM/Generic.cpp:1828
Function
serial_number_bios_wmi
Check SerialNumber devices using WMI */
al-khaser/AntiVM/Generic.cpp:1052
Function
setupdi_diskdrive
al-khaser/AntiVM/Generic.cpp:792
Function
smbiosmemory_wmi
Check Win32_SMBIOSMemory for entries */
al-khaser/AntiVM/Generic.cpp:1650
Function
str_trick
The instruction STR (Store Task Register) stores the selector segment of the TR register (Task Register) in the specified operand (memory or other gen
al-khaser/AntiVM/Generic.cpp:447
Function
timing_CreateTimerQueueTimer
Timing attack using CreateTimerQueueTimer. Test fails if any of the calls return an error state. */
al-khaser/TimingAttacks/timing.cpp:322
Function
timing_CreateWaitableTimer
Timing attack using waitable timers. Test fails if any of the calls return an error state. */
al-khaser/TimingAttacks/timing.cpp:285
Function
timing_IcmpSendEcho
Another timinig attack using the API IcmpSendEcho which takes a TimeOut in milliseconds as a parameter, to wait for IPv4 ICMP packets replies. First t
al-khaser/TimingAttacks/timing.cpp:247
Function
timing_NtDelayexecution
al-khaser/TimingAttacks/timing.cpp:7
Function
timing_SetTimer
al-khaser/TimingAttacks/timing.cpp:33
Function
timing_WaitForMultipleObjects
al-khaser/TimingAttacks/timing.cpp:120
Function
timing_WaitForSingleObject
al-khaser/TimingAttacks/timing.cpp:100
Function
timing_sleep_loop
al-khaser/TimingAttacks/timing.cpp:150
Function
timing_timeSetEvent
al-khaser/TimingAttacks/timing.cpp:64
Function
tls_callback
al-khaser/AntiDebug/TLS_callbacks.cpp:12
Function
vbox_baseboard_wmi
Check Win32_BaseBoard */
al-khaser/AntiVM/VirtualBox.cpp:728
Function
vbox_bus_wmi
Check Win32_Bus to see if only ACPIBus_BUS_0, PCI_BUS_0, PNP_BUS_0 are present */
al-khaser/AntiVM/VirtualBox.cpp:644
Function
vbox_check_mac
Check virtualbox NIC MAC address */
al-khaser/AntiVM/VirtualBox.cpp:144
Function
vbox_dir
Check against virtualbox blacklisted directories */
al-khaser/AntiVM/VirtualBox.cpp:125
Function
vbox_eventlogfile_wmi
Check vbox event log using WMI */
al-khaser/AntiVM/VirtualBox.cpp:309
Function
vbox_firmware_ACPI
al-khaser/AntiVM/VirtualBox.cpp:439
Function
vbox_firmware_SMBIOS
al-khaser/AntiVM/VirtualBox.cpp:410
Function
vbox_mac_wmi
Check vbox mac @ using WMI */
al-khaser/AntiVM/VirtualBox.cpp:240
Function
vbox_network_share
Check for shared folders network profider */
al-khaser/AntiVM/VirtualBox.cpp:198
Function
vbox_pnpentity_controllers_wmi
Check Win32_PnPEntity for known VirtualBox hardware */
al-khaser/AntiVM/VirtualBox.cpp:562
Function
vbox_pnpentity_pcideviceid_wmi
Check vbox devices using WMI */
al-khaser/AntiVM/VirtualBox.cpp:497
Function
vbox_pnpentity_vboxname_wmi
Check Win32_PnPDevice for VBOX entries */
al-khaser/AntiVM/VirtualBox.cpp:819
Function
vbox_window_class
Check for Window class */
al-khaser/AntiVM/VirtualBox.cpp:183
Function
vmware_adapter_name
Check against VMWare adapter name */
al-khaser/AntiVM/VMWare.cpp:162
Function
vmware_dir
Check against VMWare blacklisted directories */
al-khaser/AntiVM/VMWare.cpp:115
Function
vmware_firmware_ACPI
Check for ACPI firmware */
al-khaser/AntiVM/VMWare.cpp:254
Function
vmware_firmware_SMBIOS
Check for SMBIOS firmware */
al-khaser/AntiVM/VMWare.cpp:228
Function
vmware_processes
al-khaser/AntiVM/VMWare.cpp:203
Function
voltageprobe_wmi
Check Win32_VoltageProbe for entries */
al-khaser/AntiVM/Generic.cpp:1626
Function
wide_str_to_multibyte
al-khaser/Shared/Common.cpp:181
Function
wine_exports
Check against Wine export dlls */
al-khaser/AntiVM/Wine.cpp:8
Function
xen_check_mac
Check Xen NIC MAC address */
al-khaser/AntiVM/Xen.cpp:56
← previous
201–293 of 293, ranked by callers