Function at 0x40c1d0
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 [0x4f2480]
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 0x40c655
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 0x40c2d0
sub ecx, edx
lea eax, [ebp - 0x17c]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.0041dad0
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 0x40c380
mov edi, edx
mov esi, str.VMwareVMware
sub edi, 4
jb 0x40c331
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c336
add ecx, 4
add esi, 4
sub edi, 4
jae 0x40c320
cmp edi, 0xfffffffc
je 0x40c36a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c363
cmp edi, 0xfffffffd
je 0x40c36a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c363
cmp edi, 0xfffffffe
je 0x40c36a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c363
cmp edi, 0xffffffff
je 0x40c36a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c36a
sbb eax, eax
or eax, 1
jmp 0x40c36c
xor eax, eax
mov edi, dword [ebp - 0x150]
test eax, eax
je 0x40c48d
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
lea ecx, [ebp - 0x150]
cmova ecx, edi
cmp edx, 0xc
jne 0x40c400
mov edi, edx
mov esi, str.Microsoft_Hv
sub edi, 4
jb 0x40c3b1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c3b6
add ecx, 4
add esi, 4
sub edi, 4
jae 0x40c3a0
cmp edi, 0xfffffffc
je 0x40c3ea
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c3e3
cmp edi, 0xfffffffd
je 0x40c3ea
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c3e3
cmp edi, 0xfffffffe
je 0x40c3ea
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c3e3
cmp edi, 0xffffffff
je 0x40c3ea
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c3ea
sbb eax, eax
or eax, 1
jmp 0x40c3ec
xor eax, eax
mov edi, dword [ebp - 0x150]
test eax, eax
je 0x40c48d
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
lea ecx, [ebp - 0x150]
cmova ecx, edi
cmp edx, 0xc
jne 0x40c470
mov esi, str.XenVMMXenVMM
sub edx, 4
jb 0x40c431
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c436
add ecx, 4
add esi, 4
sub edx, 4
jae 0x40c420
cmp edx, 0xfffffffc
je 0x40c46a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c463
cmp edx, 0xfffffffd
je 0x40c46a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c463
cmp edx, 0xfffffffe
je 0x40c46a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c463
cmp edx, 0xffffffff
je 0x40c46a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c46a
sbb eax, eax
or eax, 1
jmp 0x40c46c
xor eax, eax
test eax, eax
je 0x40c48d
push ecx
push str.VBox
lea ecx, [ebp - 0x150]
call fcn.00417f20
mov byte [ebp - 0x151], 0
cmp eax, 0xffffffff
je 0x40c494
mov byte [ebp - 0x151], 1
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
jbe 0x40c4ca
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40c4c0
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c66a
push ecx
push edi
call fcn.0049d99f
add esp, 8
cmp byte [ebp - 0x151], 0
jne 0x40c655
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 0x40c5fe
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 0x40c5f2
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 0x40c551
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041dad0
push ecx
push str.VBOX
lea ecx, [ebp - 0x130]
call fcn.00417f20
cmp eax, 0xffffffff
jne 0x40c613
push ecx
push str.VMware
lea ecx, [ebp - 0x130]
call fcn.00417f20
cmp eax, 0xffffffff
jne 0x40c613
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40c5d7
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c5cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c66f
push ecx
push edx
call fcn.0049d99f
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.0049d991
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 0x40c655
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c64b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c66f
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0049d991
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a2f76
call fcn.004a2f76
int3