Function at 0x4088b0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40950c
lea ecx, [ebp - 0x580]
mov dword [ebp - 0x45c], 1
mov dword [ebp - 0x580], 0x11c
call fcn.00408400
test eax, eax
jne 0x40891a
lea ecx, [ebp - 0x580]
mov dword [ebp - 0x580], 0x114
call fcn.00408400
test eax, eax
je 0x40950c
mov dword [ebp - 0x45c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408942
lea ecx, [ebp - 0x5a4]
push ecx
call eax
jmp 0x40894f
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x458], 6
mov dword [ebp - 0x454], str.Business
mov dword [ebp - 0x450], 0x10
mov dword [ebp - 0x44c], str.Business_N
mov dword [ebp - 0x448], 0x12
mov dword [ebp - 0x444], str.HPC_Edition
mov dword [ebp - 0x440], 8
mov dword [ebp - 0x43c], str.Server_Datacenter__full_installation_
mov dword [ebp - 0x438], 0xc
mov dword [ebp - 0x434], str.Server_Datacenter__core_installation_
mov dword [ebp - 0x430], 0x27
mov dword [ebp - 0x42c], str.Server_Datacenter_without_Hyper_V__core_installation_
mov dword [ebp - 0x428], 0x25
mov dword [ebp - 0x424], str.Server_Datacenter_without_Hyper_V__full_installation_
mov dword [ebp - 0x420], 4
mov dword [ebp - 0x41c], 0x41305c
mov dword [ebp - 0x418], 0x46
mov dword [ebp - 0x414], str.Not_supported
mov dword [ebp - 0x410], 0x1b
mov dword [ebp - 0x40c], str.Enterprise_N
mov dword [ebp - 0x408], 0xa
mov dword [ebp - 0x404], str.Server_Enterprise__full_installation_
mov dword [ebp - 0x400], 0xe
mov dword [ebp - 0x3fc], str.Server_Enterprise__core_installation_
mov dword [ebp - 0x3f8], 0x29
mov dword [ebp - 0x3f4], str.Server_Enterprise_without_Hyper_V__core_installation_
mov dword [ebp - 0x3f0], 0xf
mov dword [ebp - 0x3ec], str.Server_Enterprise_for_Itanium_based_Systems
mov dword [ebp - 0x3e8], 0x26
mov dword [ebp - 0x3e4], str.Server_Enterprise_without_Hyper_V__full_installation_
mov dword [ebp - 0x3e0], 2
mov dword [ebp - 0x3dc], str.Home_Basic
mov dword [ebp - 0x3d8], 0x43
mov dword [ebp - 0x3d4], str.Not_supported
mov dword [ebp - 0x3d0], 5
mov dword [ebp - 0x3cc], str.Home_Basic_N
mov dword [ebp - 0x3c8], 3
mov dword [ebp - 0x3c4], str.Home_Premium
mov dword [ebp - 0x3c0], 0x44
mov dword [ebp - 0x3bc], str.Not_supported
mov dword [ebp - 0x3b8], 0x1a
mov dword [ebp - 0x3b4], str.Home_Premium_N
mov dword [ebp - 0x3b0], 0x2a
mov dword [ebp - 0x3ac], str.Microsoft_Hyper_V_Server
mov dword [ebp - 0x3a8], 0x1e
mov dword [ebp - 0x3a4], str.Essential_Business_Server_Management_Server
mov dword [ebp - 0x3a0], 0x20
mov dword [ebp - 0x39c], str.Essential_Business_Server_Messaging_Server
mov dword [ebp - 0x398], 0x1f
mov dword [ebp - 0x394], str.Essential_Business_Server_Security_Server
mov dword [ebp - 0x390], 0x30
mov dword [ebp - 0x38c], str.Professional
mov dword [ebp - 0x388], 0x45
mov dword [ebp - 0x384], str.Not_supported
mov dword [ebp - 0x380], 0x31
mov dword [ebp - 0x37c], str.Professional_N
mov dword [ebp - 0x378], 0x18
mov dword [ebp - 0x374], str.for_Windows_Essential_Server_Solutions
mov dword [ebp - 0x370], 0x23
mov dword [ebp - 0x36c], str.without_Hyper_V_for_Windows_Essential_Server_Solutions
mov dword [ebp - 0x368], 0x21
mov dword [ebp - 0x364], str.Server_Foundation
mov dword [ebp - 0x360], 0x22
mov dword [ebp - 0x35c], str.Home_Server_2011
mov dword [ebp - 0x358], 0x32
mov dword [ebp - 0x354], str.Small_Business_Server_2011_Essentials
mov dword [ebp - 0x350], 0x13
mov dword [ebp - 0x34c], str.Storage_Server_2008_R2_Essentials
mov dword [ebp - 0x348], 9
mov dword [ebp - 0x344], str.Small_Business_Server
mov dword [ebp - 0x340], 0x38
mov dword [ebp - 0x33c], str.MultiPoint_Server
mov dword [ebp - 0x338], 7
mov dword [ebp - 0x334], str.Server_Standard__full_installation_
mov dword [ebp - 0x330], 0xd
mov dword [ebp - 0x32c], str.Server_Standard__core_installation_
mov dword [ebp - 0x328], 0x28
mov dword [ebp - 0x324], str.Server_Standard_without_Hyper_V__core_installation_
mov dword [ebp - 0x320], 0x24
mov dword [ebp - 0x31c], str.Server_Standard_without_Hyper_V__full_installation_
mov dword [ebp - 0x318], 0xb
push str.Microsoft
push 0x18
push esi
mov dword [ebp - 0x314], str.Starter
mov dword [ebp - 0x310], 0x42
mov dword [ebp - 0x30c], str.Not_supported
mov dword [ebp - 0x308], 0x2f
mov dword [ebp - 0x304], str.Starter_N
mov dword [ebp - 0x300], 0x17
mov dword [ebp - 0x2fc], str.Storage_Server_Enterprise
mov dword [ebp - 0x2f8], 0x14
mov dword [ebp - 0x2f4], str.Storage_Server_Express
mov dword [ebp - 0x2f0], 0x15
mov dword [ebp - 0x2ec], str.Storage_Server_Standard
mov dword [ebp - 0x2e8], 0x16
mov dword [ebp - 0x2e4], str.Storage_Server_Workgroup
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], str.An_unknown_product
mov dword [ebp - 0x2d8], 1
mov dword [ebp - 0x2d4], str.Ultimate
mov dword [ebp - 0x2d0], 0x47
mov dword [ebp - 0x2cc], str.Not_supported
mov dword [ebp - 0x2c8], 0x1c
mov dword [ebp - 0x2c4], str.Ultimate_N
mov dword [ebp - 0x2c0], 0x11
mov dword [ebp - 0x2bc], str.Web_Server__full_installation_
mov dword [ebp - 0x2b8], 0x1d
mov dword [ebp - 0x2b4], str.Web_Server__core_installation_
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov eax, dword [ebp - 0x570]
add esp, 0xc
sub eax, 0
je 0x4094e2
dec eax
je 0x409416
dec eax
jne 0x4094f6
cmp dword [ebp - 0x57c], 6
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
jne 0x408eae
cmp dword [ebp - 0x578], 3
jne 0x408dcd
push str.Windows_8.1
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x578], 2
jne 0x408de6
push str.Windows_8
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x578], 1
jne 0x408e0f
cmp byte [ebp - 0x466], 1
jne 0x408dff
push str.Windows_7
jmp 0x408e04
push str.Windows_Server_2008_R2
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x578], 0
jne 0x408e38
cmp byte [ebp - 0x466], 1
jne 0x408e28
push str.Windows_Vista
jmp 0x408e2d
push str.Windows_Server_2008
push 0x104
push esi
call edi
add esp, 0xc
push str.GetProductInfo
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x460]
push ecx
push 0
push 0
push dword [ebp - 0x578]
push dword [ebp - 0x57c]
call eax
xor ebx, ebx
jmp 0x408e70
mov eax, dword [ebp - 0x460]
cmp eax, dword [ebp + ebx*8 - 0x458]
jne 0x408e91
push dword [ebp + ebx*8 - 0x454]
push 0x104
push esi
call edi
add esp, 0xc
inc ebx
cmp ebx, 0x35
jb 0x408e70
push str._An_unknown_product_
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x57c], 6
jb 0x408ed9
mov ax, word [ebp - 0x5a4]
cmp ax, 9
jne 0x408ec4
push str.__64_bit
jmp 0x408ece
test ax, ax
jne 0x408ed9
push str.__32_bit
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x57c], 5
jne 0x409092
mov eax, dword [ebp - 0x578]
cmp eax, 2
jne 0x408ffb
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x408f08
push str.Windows_Server_2003_R2_
jmp 0x408f3c
mov eax, 0x2000
cmp word [ebp - 0x468], ax
jne 0x408f1d
push str.Windows_Storage_Server_2003
jmp 0x408f3c
cmp byte [ebp - 0x466], 1
jne 0x408f37
cmp word [ebp - 0x5a4], 9
jne 0x408f37
push str.Windows_XP_Professional_x64_Edition
jmp 0x408f3c
push str.Windows_Server_2003
push 0x104
push esi
call edi
add esp, 0xc
cmp byte [ebp - 0x466], 1
je 0x408fe8
mov ax, word [ebp - 0x5a4]
cmp ax, 6
jne 0x408f7d
mov eax, dword [ebp - 0x468]
test al, al
jns 0x408f72
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x408fdd
test al, 2
je 0x408fe8
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x408fdd
cmp ax, 9
mov eax, dword [ebp - 0x468]
jne 0x408fa6
test al, al
jns 0x408f94
push str.Datacenter_x64_Edition
jmp 0x408fdd
test al, 2
je 0x408f9f
push str.Enterprise_x64_Edition
jmp 0x408fdd
push str.Standard_x64_Edition
jmp 0x408fdd
test eax, 0x4000
je 0x408fb4
push str.Compute_Cluster_Edition
jmp 0x408fdd
test al, al
jns 0x408fbf
push str.Datacenter_Edition
jmp 0x408fdd
test al, 2
je 0x408fca
push str.Enterprise_Edition
jmp 0x408fdd
test eax, 0x400
je 0x408fd8
push str.Web_Edition
jmp 0x408fdd
push str.Standard_Edition
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x57c], 5
jne 0x409092
mov eax, dword [ebp - 0x578]
cmp eax, 1
jne 0x409042
push str.Windows_XP
push 0x104
push esi
call edi
add esp, 0xc
test dword [ebp - 0x468], 0x200
je 0x409023
push str.Home_Edition
jmp 0x409028
push str.Professional
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x57c], 5
jne 0x409092
mov eax, dword [ebp - 0x578]
test eax, eax
jne 0x40909f
push str.Windows_2000
push 0x104
push esi
call edi
add esp, 0xc
cmp byte [ebp - 0x466], 1
jne 0x409066
push str.Professional
jmp 0x409087
mov eax, dword [ebp - 0x468]
test al, al
jns 0x409077
push str.Datacenter_Server
jmp 0x409087
test al, 2
je 0x409082
push str.Advanced_Server
jmp 0x409087
push 0x413e38
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x57c], 4
jbe 0x40912a
lea ecx, [ebp - 0x56c]
lea edx, [ecx + 2]
jmp 0x4090b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4090b0
sub ecx, edx
sar ecx, 1
je 0x4090e0
push 0x413e48
push 0x104
push esi
call edi
lea eax, [ebp - 0x56c]
push eax
push 0x104
push esi
call edi
add esp, 0x18
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4090e5
push dword [ebp - 0x574]
sub ecx, edx
sar ecx, 1
mov eax, 0x104
sub eax, ecx
push 0x413e4c
push eax
lea eax, [esi + ecx*2]
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
push str.Windows_NT
push 0x104
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 0xc
cmp dword [ebp - 0x45c], 0
je 0x4091a7
mov al, byte [ebp - 0x466]
cmp al, 1
jne 0x409168
push str.Workstation
push 0x104
push esi
call edi
add esp, 0xc
jmp 0x4092b3
cmp al, 3
je 0x409174
cmp al, 2
jne 0x4092b3
test byte [ebp - 0x468], 2
je 0x409192
push str.Enterprise
push 0x104
push esi
call edi
add esp, 0xc
jmp 0x4092b3
push str.Server
push 0x104
push esi
call edi
add esp, 0xc
jmp 0x4092b3
lea eax, [ebp - 0x5a8]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push 0x80000002
mov dword [ebp - 0x45c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4094f6
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4094f6
cmp dword [ebp - 0x45c], 0x50
ja 0x4094f6
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa8]
push eax
push str.WINNT
call ebx
test eax, eax
jne 0x40923a
push str.Workstation
push 0x104
push esi
call edi
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
push str.LANMANNT
call ebx
test eax, eax
jne 0x40925c
push str.Server
push 0x104
push esi
call edi
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
push str.SERVERNT
call ebx
test eax, eax
jne 0x40927e
push str.Advance_Server
push 0x104
push esi
call edi
add esp, 0xc
push dword [ebp - 0x578]
lea eax, [ebp - 0x2b0]
push dword [ebp - 0x57c]
push str.__d._d
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
lea eax, [ebp - 0x2b0]
push eax
push 0x104
push esi
call edi
add esp, 0x20
cmp dword [ebp - 0x57c], 4
jne 0x4093b3
push str.Service_Pack_6
lea eax, [ebp - 0x56c]
push eax
call ebx
test eax, eax
jne 0x4093b3
lea eax, [ebp - 0x5a8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409348
movzx eax, word [ebp - 0x574]
push eax
push str.Service_Pack_6a__Build__d_
lea eax, [ebp - 0x2b0]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
lea eax, [ebp - 0x2b0]
push eax
push 0x104
push esi
call edi
add esp, 0x1c
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x56c]
push eax
push 0x104
push esi
call edi
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409360
movzx eax, word [ebp - 0x574]
push eax
sub ecx, edx
sar ecx, 1
mov eax, 0x104
sub eax, ecx
push 0x413e4c
push eax
lea eax, [esi + ecx*2]
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x10
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
mov ebx, esi
lea ecx, [ebx + 2]
jmp 0x4093c0
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4093c0
lea eax, [ebp - 0x56c]
push eax
sub ebx, ecx
push 0x104
push esi
sar ebx, 1
call edi
movzx eax, word [ebp - 0x574]
push eax
mov eax, 0x104
sub eax, ebx
push 0x413e4c
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x57c], 4
jne 0x4094f6
mov eax, dword [ebp - 0x578]
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
test eax, eax
jne 0x409479
push str.Windows_95
push 0x104
push esi
call edi
mov ax, word [ebp - 0x56a]
add esp, 0xc
cmp ax, 0x43
je 0x409456
cmp ax, 0x42
jne 0x409466
push str._OSR2
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x57c], 4
jne 0x4094f6
mov eax, dword [ebp - 0x578]
cmp eax, 0xa
jne 0x4094b7
push str.Windows_98
push 0x104
push esi
call edi
add esp, 0xc
cmp word [ebp - 0x56a], 0x41
jne 0x4094a8
push 0x413ffc
push 0x104
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x57c], 4
jne 0x4094f6
mov eax, dword [ebp - 0x578]
cmp eax, 0x5a
jne 0x4094f6
push str.Windows_ME
push 0x104
push esi
call edi
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
push str.Windows_Unknown
push 0x104
push esi
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret