Function at 0x40f180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42db5d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push 0xf003f
push 0
push 0x433ca8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f243
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
push 0
push str.SMBiosData
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f23a
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40f23a
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x40f23a
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x50]
push eax
push 0
push str.SMBiosData
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40f26d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x40f45c
mov eax, dword [ebp - 0x30]
xor edi, edi
test eax, eax
je 0x40f29a
mov esi, eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax + edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov ecx, dword [ebp - 0x34]
add esp, 4
mov byte [ecx + edi], al
inc edi
cmp edi, esi
jb 0x40f278
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x3c]
xor edi, edi
add eax, 0xfffffff4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
push 0xc
push str.INNOTEK_GMBH
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x40f2d1
mov eax, dword [ebp - 0x40]
inc edi
inc eax
mov dword [ebp - 0x40], eax
cmp edi, dword [ebp - 0x2c]
jbe 0x40f2a8
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x30]
xor edi, edi
add eax, 0xfffffff6
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
push 0xa
push str.VIRTUALBOX
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x40f30b
mov eax, dword [ebp - 0x44]
inc edi
inc eax
mov dword [ebp - 0x44], eax
cmp edi, dword [ebp - 0x2c]
jbe 0x40f2e2
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x30]
xor edi, edi
add eax, 0xfffffff0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
nop dword [eax]
push 0x10
push str.SUN_MICROSYSTEMS
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x40f349
mov eax, dword [ebp - 0x48]
inc edi
inc eax
mov dword [ebp - 0x48], eax
cmp edi, dword [ebp - 0x2c]
jbe 0x40f320
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
add eax, 0xfffffff9
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], ecx
push 7
push str.VBOXVER
push ecx
call edi
add esp, 0xc
test eax, eax
je 0x40f390
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
inc eax
inc ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], ecx
cmp eax, dword [ebp - 0x2c]
jbe 0x40f365
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
push 0xf
push str.VIRTUAL_MACHINE
push eax
call edi
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x40f3cc
mov ecx, dword [ebp - 0x2c]
inc eax
inc ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp - 0x54]
jbe 0x40f3a6
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [ebp - 0x40], 0
jne 0x40f409
cmp dword [ebp - 0x44], 0
jne 0x40f409
cmp dword [ebp - 0x48], 0
jne 0x40f409
cmp dword [ebp - 0x4c], 0
jne 0x40f409
test eax, eax
jne 0x40f409
push dword [ebp - 0x34]
jmp 0x40f234
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040bff0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40f45c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f452
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f452
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042b5b1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b81e
mov esp, ebp
pop ebp
ret