Function at 0x140001d60
Capabilities:
Check if file exists
Connect to wmi namespace via wbemlocator
Get file attributes
Get system information on windows
Query or enumerate registry value
Reference wmi statements

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x1400420c0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
lea rcx, [rsp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
movzx eax, word [rsp + 0x1e8]
cmp eax, 9
jne 0x140001da0
xor al, al
jmp 0x1400028e9
call fcn.140001b70
movzx eax, al
test eax, eax
je 0x140001db3
mov al, 1
jmp 0x1400028e9
call fcn.140001c20
movzx eax, al
test eax, eax
je 0x140001dc6
mov al, 1
jmp 0x1400028e9
lea rdx, str.vmware
lea rcx, [rsp + 0x310]
call fcn.140005db0
nop
lea rdx, str.virtualbox
lea rcx, [rsp + 0x330]
call fcn.140005db0
nop
lea rdx, [0x14003133c]
lea rcx, [rsp + 0x350]
call fcn.140005db0
nop
lea rdx, str.qemu
lea rcx, [rsp + 0x370]
call fcn.140005db0
nop
lea rdx, [0x140031348]
lea rcx, [rsp + 0x390]
call fcn.140005db0
nop
lea rdx, str.hyperv
lea rcx, [rsp + 0x3b0]
call fcn.140005db0
nop
lea rcx, [rsp + 0x78]
call fcn.140003ee0
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x3d0]
mov r8, rcx
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x1c8]
call fcn.140006300
lea rcx, [rsp + 0x190]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x180]
mov r8, rax
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0xa0]
call fcn.1400064e0
nop
lea r9, [fcn.140007600]
mov r8d, 6
mov edx, 0x20
lea rcx, [rsp + 0x310]
call fcn.140010368
nop
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14000b030
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14000b050
mov qword [rsp + 0x188], rax
jmp 0x140001f1c
mov rax, qword [rsp + 0x90]
add rax, 0x20
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x188]
cmp qword [rsp + 0x90], rax
je 0x140001ff9
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xe8], rax
mov r8, qword [rsp + 0xe8]
lea rdx, str.C:WindowsSystem32drivers_
lea rcx, [rsp + 0x278]
call fcn.1400034e0
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
lea r8, str..sys
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x258]
call fcn.140003480
nop
lea rcx, [rsp + 0x278]
call fcn.140007600
nop
lea rcx, [rsp + 0x258]
call fcn.14000b470
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001fe6
mov byte [rsp + 0x54], 1
lea rcx, [rsp + 0x258]
call fcn.140007600
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x54]
jmp 0x1400028e9
lea rcx, [rsp + 0x258]
call fcn.140007600
nop
jmp 0x140001f08
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionVirtualization
lea rcx, [rsp + 0x2a0]
call fcn.140005db0
nop
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREVMware__Inc.VMware_Tools
lea rcx, [rsp + 0x2c0]
call fcn.140005db0
nop
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREOracleVirtualBox
lea rcx, [rsp + 0x2e0]
call fcn.140005db0
nop
lea rcx, [rsp + 0x79]
call fcn.140003ee0
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x300]
mov r8, rcx
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x1d8]
call fcn.140006300
lea rcx, [rsp + 0x1a0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x100]
mov r8, rax
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0xc0]
call fcn.1400064e0
nop
lea r9, [fcn.140007600]
mov r8d, 3
mov edx, 0x20
lea rcx, [rsp + 0x2a0]
call fcn.140010368
nop
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call fcn.14000b030
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0xe0]
call fcn.14000b050
mov qword [rsp + 0x108], rax
jmp 0x140002110
mov rax, qword [rsp + 0x98]
add rax, 0x20
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x98], rax
je 0x1400021ab
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call fcn.14000b470
lea rcx, [rsp + 0x118]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400021a6
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov byte [rsp + 0x55], 1
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x55]
jmp 0x1400028e9
jmp 0x1400020fc
mov eax, 1
xor ecx, ecx
cpuid
lea rdi, [rsp + 0x3e0]
mov dword [rdi], eax
mov dword [rdi + 4], ebx
mov dword [rdi + 8], ecx
mov dword [rdi + 0xc], edx
mov eax, 4
imul rax, rax, 2
mov eax, dword [rsp + rax + 0x3e0]
and eax, 0x80000000
test eax, eax
je 0x14000220a
mov byte [rsp + 0x56], 1
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x56]
jmp 0x1400028e9
mov dword [rsp + 0xb8], 0x100
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x3f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, str.BIOS
lea rdx, str.HARDWAREDESCRIPTIONSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x140002314
lea rdx, [rsp + 0x3f0]
lea rcx, [rsp + 0x218]
call fcn.140005db0
nop
xor r8d, r8d
lea rdx, [0x14003145c]
lea rcx, [rsp + 0x218]
call fcn.14000bfb0
cmp rax, 0xffffffffffffffff
jne 0x1400022ce
xor r8d, r8d
lea rdx, [0x140031468]
lea rcx, [rsp + 0x218]
call fcn.14000bfb0
cmp rax, 0xffffffffffffffff
jne 0x1400022ce
xor r8d, r8d
lea rdx, [0x140031474]
lea rcx, [rsp + 0x218]
call fcn.14000bfb0
cmp rax, 0xffffffffffffffff
je 0x140002306
mov byte [rsp + 0x57], 1
lea rcx, [rsp + 0x218]
call fcn.140007600
nop
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x57]
jmp 0x1400028e9
lea rcx, [rsp + 0x218]
call fcn.140007600
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140002353
mov byte [rsp + 0x58], 0
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x58]
jmp 0x1400028e9
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400023cc
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov byte [rsp + 0x59], 0
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x59]
jmp 0x1400028e9
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x140032db8]
mov r8d, 1
xor edx, edx
lea rcx, [0x140032dc8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140002437
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov byte [rsp + 0x5a], 0
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x5a]
jmp 0x1400028e9
mov qword [rsp + 0x68], 0
lea rdx, [0x140031478]
lea rcx, [rsp + 0x138]
call fcn.140006990
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.140007f20
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rsp + 0x130], rcx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x130]
call qword [rax + 0x18]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x138]
call fcn.140007990
nop
cmp dword [rsp + 0x50], 0
jge 0x140002529
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov byte [rsp + 0x5b], 0
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x5b]
jmp 0x1400028e9
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400025bc
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov byte [rsp + 0x5c], 0
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x5c]
jmp 0x1400028e9
mov qword [rsp + 0x70], 0
lea rdx, str.SELECT__FROM_Win32_ComputerSystem
lea rcx, [rsp + 0x178]
call fcn.140006910
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x148]
call fcn.140007f20
mov qword [rsp + 0x160], rax
lea rdx, [0x1400314b4]
lea rcx, [rsp + 0x170]
call fcn.140006910
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.140007f20
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
mov qword [rsp + 0x168], rcx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9d, 0x30
mov rdx, qword [rsp + 0x160]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x168]
call qword [rax + 0xa0]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x170]
call fcn.140007990
nop
lea rcx, [rsp + 0x178]
call fcn.140007990
nop
cmp dword [rsp + 0x50], 0
jl 0x14000288d
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x88], 0
cmp qword [rsp + 0x70], 0
je 0x14000288d
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x80]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x20]
mov dword [rsp + 0xbc], eax
cmp dword [rsp + 0x88], 0
jne 0x14000271d
jmp 0x14000288d
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1b0]
xor r8d, r8d
lea rdx, [0x1400314b8]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x20]
mov dword [rsp + 0xbc], eax
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x238]
call fcn.140006040
nop
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
xor r8d, r8d
lea rdx, str.VMware
lea rcx, [rsp + 0x238]
call fcn.14000c010
cmp rax, 0xffffffffffffffff
jne 0x1400027de
xor r8d, r8d
lea rdx, str.VirtualBox
lea rcx, [rsp + 0x238]
call fcn.14000c010
cmp rax, 0xffffffffffffffff
jne 0x1400027de
xor r8d, r8d
lea rdx, [0x140031500]
lea rcx, [rsp + 0x238]
call fcn.14000c010
cmp rax, 0xffffffffffffffff
je 0x140002863
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov byte [rsp + 0x5d], 1
lea rcx, [rsp + 0x238]
call fcn.140007630
nop
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x5d]
jmp 0x1400028e9
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x238]
call fcn.140007630
nop
jmp 0x1400026cb
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov byte [rsp + 0x5e], 0
lea rcx, [rsp + 0xc0]
call fcn.140007800
nop
lea rcx, [rsp + 0xa0]
call fcn.140007800
movzx eax, byte [rsp + 0x5e]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140010830
add rsp, 0x500
pop rdi
pop rsi
pop rbx
ret