Function at 0x40c3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x4f6440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, 1
mov dword [ebp - 0x11c], 0
xor ecx, ecx
lea edi, [ebp - 0x128]
push ebx
cpuid
xorps xmm0, xmm0
mov esi, ebx
movq qword [ebp - 0x124], xmm0
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
test dword [ebp - 0x120], 0x80000000
jne 0x40c875
mov eax, 0x40000000
movlpd qword [ebp - 0x170], xmm0
xor ecx, ecx
movlpd qword [ebp - 0x168], xmm0
push ebx
cpuid
mov esi, ebx
mov dword [ebp - 0x160], 0
movq qword [ebp - 0x124], xmm0
lea edi, [ebp - 0x128]
mov dword [ebp - 0x11c], 0
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
lea ecx, [ebp - 0x17c]
mov dword [edi + 0xc], edx
lea edx, [ecx + 1]
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x174], eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c4f0
sub ecx, edx
lea eax, [ebp - 0x17c]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.0041f3b0
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x150]
mov edi, dword [ebp - 0x150]
cmp eax, 0xf
mov edx, dword [ebp - 0x140]
cmova ecx, edi
cmp edx, 0xc
jne 0x40c5a0
mov edi, edx
mov esi, str.VMwareVMware
sub edi, 4
jb 0x40c551
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c556
add ecx, 4
add esi, 4
sub edi, 4
jae 0x40c540
cmp edi, 0xfffffffc
je 0x40c58a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c583
cmp edi, 0xfffffffd
je 0x40c58a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c583
cmp edi, 0xfffffffe
je 0x40c58a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c583
cmp edi, 0xffffffff
je 0x40c58a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c58a
sbb eax, eax
or eax, 1
jmp 0x40c58c
xor eax, eax
mov edi, dword [ebp - 0x150]
test eax, eax
je 0x40c6ad
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
lea ecx, [ebp - 0x150]
cmova ecx, edi
cmp edx, 0xc
jne 0x40c620
mov edi, edx
mov esi, str.Microsoft_Hv
sub edi, 4
jb 0x40c5d1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c5d6
add ecx, 4
add esi, 4
sub edi, 4
jae 0x40c5c0
cmp edi, 0xfffffffc
je 0x40c60a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c603
cmp edi, 0xfffffffd
je 0x40c60a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c603
cmp edi, 0xfffffffe
je 0x40c60a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c603
cmp edi, 0xffffffff
je 0x40c60a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c60a
sbb eax, eax
or eax, 1
jmp 0x40c60c
xor eax, eax
mov edi, dword [ebp - 0x150]
test eax, eax
je 0x40c6ad
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
lea ecx, [ebp - 0x150]
cmova ecx, edi
cmp edx, 0xc
jne 0x40c690
mov esi, str.XenVMMXenVMM
sub edx, 4
jb 0x40c651
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c656
add ecx, 4
add esi, 4
sub edx, 4
jae 0x40c640
cmp edx, 0xfffffffc
je 0x40c68a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c683
cmp edx, 0xfffffffd
je 0x40c68a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c683
cmp edx, 0xfffffffe
je 0x40c68a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c683
cmp edx, 0xffffffff
je 0x40c68a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c68a
sbb eax, eax
or eax, 1
jmp 0x40c68c
xor eax, eax
test eax, eax
je 0x40c6ad
push ecx
push str.VBox
lea ecx, [ebp - 0x150]
call fcn.00419600
mov byte [ebp - 0x151], 0
cmp eax, 0xffffffff
je 0x40c6b4
mov byte [ebp - 0x151], 1
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
jbe 0x40c6ea
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40c6e0
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c88a
push ecx
push edi
call fcn.0049f19c
add esp, 8
cmp byte [ebp - 0x151], 0
jne 0x40c875
lea eax, [ebp - 0x158]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystem
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c81e
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x100
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.SystemBiosVersion
push dword [ebp - 0x158]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c812
xorps xmm0, xmm0
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x108]
movaps xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x11c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c771
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041f3b0
push ecx
push str.VBOX
lea ecx, [ebp - 0x130]
call fcn.00419600
cmp eax, 0xffffffff
jne 0x40c833
push ecx
push str.VMware
lea ecx, [ebp - 0x130]
call fcn.00419600
cmp eax, 0xffffffff
jne 0x40c833
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40c7f7
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c7ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c88f
push ecx
push edx
call fcn.0049f19c
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
push dword [ebp - 0x158]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049f18e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x158]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40c875
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c86b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c88f
push ecx
push edx
call fcn.0049f19c
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0049f18e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a47f6
call fcn.004a47f6
int3