Function at 0x40c020
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 [0x4f3480]
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 0x40c4a5
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 0x40c120
sub ecx, edx
lea eax, [ebp - 0x17c]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.0041d980
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 0x40c1d0
mov edi, edx
mov esi, str.VMwareVMware
sub edi, 4
jb 0x40c181
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c186
add ecx, 4
add esi, 4
sub edi, 4
jae 0x40c170
cmp edi, 0xfffffffc
je 0x40c1ba
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c1b3
cmp edi, 0xfffffffd
je 0x40c1ba
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c1b3
cmp edi, 0xfffffffe
je 0x40c1ba
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c1b3
cmp edi, 0xffffffff
je 0x40c1ba
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c1ba
sbb eax, eax
or eax, 1
jmp 0x40c1bc
xor eax, eax
mov edi, dword [ebp - 0x150]
test eax, eax
je 0x40c2dd
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
lea ecx, [ebp - 0x150]
cmova ecx, edi
cmp edx, 0xc
jne 0x40c250
mov edi, edx
mov esi, str.Microsoft_Hv
sub edi, 4
jb 0x40c201
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c206
add ecx, 4
add esi, 4
sub edi, 4
jae 0x40c1f0
cmp edi, 0xfffffffc
je 0x40c23a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c233
cmp edi, 0xfffffffd
je 0x40c23a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c233
cmp edi, 0xfffffffe
je 0x40c23a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c233
cmp edi, 0xffffffff
je 0x40c23a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c23a
sbb eax, eax
or eax, 1
jmp 0x40c23c
xor eax, eax
mov edi, dword [ebp - 0x150]
test eax, eax
je 0x40c2dd
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
lea ecx, [ebp - 0x150]
cmova ecx, edi
cmp edx, 0xc
jne 0x40c2c0
mov esi, str.XenVMMXenVMM
sub edx, 4
jb 0x40c281
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40c286
add ecx, 4
add esi, 4
sub edx, 4
jae 0x40c270
cmp edx, 0xfffffffc
je 0x40c2ba
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x40c2b3
cmp edx, 0xfffffffd
je 0x40c2ba
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x40c2b3
cmp edx, 0xfffffffe
je 0x40c2ba
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40c2b3
cmp edx, 0xffffffff
je 0x40c2ba
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40c2ba
sbb eax, eax
or eax, 1
jmp 0x40c2bc
xor eax, eax
test eax, eax
je 0x40c2dd
push ecx
push str.VBox
lea ecx, [ebp - 0x150]
call fcn.00417db0
mov byte [ebp - 0x151], 0
cmp eax, 0xffffffff
je 0x40c2e4
mov byte [ebp - 0x151], 1
mov eax, dword [ebp - 0x13c]
cmp eax, 0xf
jbe 0x40c31a
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40c310
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4ba
push ecx
push edi
call fcn.0049d2cb
add esp, 8
cmp byte [ebp - 0x151], 0
jne 0x40c4a5
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 0x40c44e
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 0x40c442
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 0x40c3a1
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041d980
push ecx
push str.VBOX
lea ecx, [ebp - 0x130]
call fcn.00417db0
cmp eax, 0xffffffff
jne 0x40c463
push ecx
push str.VMware
lea ecx, [ebp - 0x130]
call fcn.00417db0
cmp eax, 0xffffffff
jne 0x40c463
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40c427
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c41d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4bf
push ecx
push edx
call fcn.0049d2cb
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.0049d2bd
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 0x40c4a5
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c49b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4bf
push ecx
push edx
call fcn.0049d2cb
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0049d2bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a2926
call fcn.004a2926
int3