Function at 0x402d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x41
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x220]
push ebx
mov edi, esi
sub esp, 0x27c
mov dword [ebp - 0x248], 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.HARDWAREDESCRIPTIONSystemBIOS
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x260], eax
call eax
sub esp, 0x14
test eax, eax
jne 0x402df4
lea eax, [ebp - 0x248]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemManufacturer
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x402f92
lea ebx, [ebp - 0x11c]
mov byte [ebp - 0x25c], 0
mov eax, dword [ebp - 0x24c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
mov dword [esp], eax
call esi
xor eax, eax
mov ecx, 0x41
sub esp, 4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x240], 0x104
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.HARDWAREDESCRIPTIONSystem
mov dword [esp + 0x10], eax
mov dword [esp], 0x80000002
call dword [ebp - 0x260]
sub esp, 0x14
test eax, eax
jne 0x402e9c
lea eax, [ebp - 0x240]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.VideoBiosVersion
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x244]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x402ec0
mov eax, dword [ebp - 0x244]
mov dword [esp], eax
call esi
movzx eax, byte [ebp - 0x25c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x230]
mov edi, ebx
mov dword [ebp - 0x238], eax
mov edx, dword [edi]
add edi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x402ece
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [edi + 2]
cmove edi, edx
mov edx, eax
add dl, al
sbb edi, 3
sub edi, ebx
cmp edi, 0xf
mov dword [ebp - 0x23c], edi
ja 0x403060
cmp edi, 1
je 0x4030c0
lea edx, [ebp - 0x238]
test edi, edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x260], edx
jne 0x403099
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x234], edi
mov byte [eax + edi], 0
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], str.VirtualBox
call fcn.00466c30
sub esp, 0xc
cmp eax, 0xffffffff
je 0x403144
mov byte [ebp - 0x25c], 1
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x230]
cmp eax, edx
je 0x402e9c
mov dword [esp], eax
call fcn.004e0b90
jmp 0x402e9c
mov eax, dword [ebp - 0x260]
lea edi, [ebp - 0x114]
mov edx, esi
mov dword [ebp - 0x11c], edi
mov ebx, eax
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x402fa8
mov ecx, eax
mov dword [ebp - 0x260], ebx
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
mov ebx, eax
cmove edx, ecx
add bl, al
sbb edx, 3
sub edx, esi
cmp edx, 0xf
mov dword [ebp - 0x238], edx
ja 0x4030e4
cmp edx, 1
je 0x403180
test edx, edx
mov eax, edi
lea ebx, [ebp - 0x11c]
jne 0x403123
mov dword [ebp - 0x118], edx
mov ecx, ebx
mov byte [eax + edx], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 0
mov dword [esp], str.VMware
call fcn.00466c30
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4031a0
mov byte [ebp - 0x25c], 1
mov eax, dword [ebp - 0x11c]
cmp eax, edi
je 0x402e01
mov dword [esp], eax
call fcn.004e0b90
jmp 0x402e01
lea eax, [ebp - 0x238]
mov dword [esp + 4], 0
mov ecx, eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x23c]
mov dword [esp], eax
call fcn.004c4000
mov edx, dword [ebp - 0x23c]
sub esp, 8
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x238]
jmp 0x402f32
movzx eax, byte [ebp - 0x11c]
lea ebx, [ebp - 0x238]
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x230], al
lea eax, [ebp - 0x230]
jmp 0x402f32
lea eax, [ebp - 0x238]
lea ebx, [ebp - 0x11c]
mov dword [esp + 4], 0
mov dword [ebp - 0x25c], edx
mov ecx, ebx
mov dword [esp], eax
call fcn.004c4000
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x25c]
sub esp, 8
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x11c]
jmp 0x403008
mov ecx, dword [ebp - 0x260]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], str.virtualbox
call fcn.00466c30
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x402f6a
jmp 0x402f71
movzx eax, byte [ebp - 0x220]
lea ebx, [ebp - 0x11c]
mov byte [ebp - 0x114], al
mov eax, edi
jmp 0x403008
mov dword [esp + 8], 6
mov dword [esp + 4], 0
mov ecx, ebx
mov dword [esp], str.vmware
call fcn.00466c30
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x40303c
mov byte [ebp - 0x25c], 0
jmp 0x403043