Function at 0x40d350
Capabilities:
Check os version
Get cpu information
Get disk information
Get disk size
Get hostname
Get memory capacity
Get session user name
Query or enumerate registry value

Disassembly:
sub esp, 0x6a4
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3b4]
mov ebp, 0x100
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3b4]
push eax
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40d397
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6a4
ret
mov ebx, dword [esp + 0x6b8]
mov edi, 0x42efa0
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx], 0
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + edx + 0x3b4], 0
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x28], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x1b4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x1b4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40d437
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6a4
ret
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
mov edi, 0x42ef94
xor eax, eax
mov byte [esp + edx + 0x1b4], 0
lea edx, [ebx + 0x20]
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [ebx + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42ef88
or ecx, 0xffffffff
mov byte [ebp], al
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x25
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40d4fa
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6a4
ret
mov eax, dword [esp + 0x70]
dec eax
je 0x40d6e8
dec eax
jne 0x40d7a3
cmp dword [esp + 0x64], 4
ja 0x40d53d
mov edi, str.Microsoft_Windows_NT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x64], 5
jne 0x40d576
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x40d576
mov edi, str.Microsoft_Windows_2000
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x164]
push ecx
push edx
push 0
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x164]
push edx
push str.WINNT
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d5fa
mov edi, str.Professional_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x164]
push eax
push str.LANMANNT
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d639
mov edi, str.Server_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x164]
push eax
push str.SERVERNT
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d678
mov edi, str.Advanced_Server_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x64]
cmp eax, 4
ja 0x40d6b8
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x74]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push ecx
push eax
lea edx, [esp + 0x2c4]
push str.version__d._d__s__Build__d__n
push edx
call fcn.0041255c
add esp, 0x18
lea edi, [esp + 0x2b4]
jmp 0x40d77e
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x74]
and eax, 0xffff
lea edx, [esp + 0x2b4]
push eax
push ecx
push str._s__Build__d__n
push edx
call fcn.0041255c
add esp, 0x10
lea edi, [esp + 0x2b4]
jmp 0x40d77e
cmp dword [esp + 0x64], 4
jne 0x40d7a3
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x40d736
mov edi, str.Microsoft_Windows_95
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x75]
mov ecx, edx
and ecx, 3
cmp al, 0x43
rep movsb byte es:[edi], byte [esi]
je 0x40d72f
cmp al, 0x42
jne 0x40d7a3
mov edi, str.OSR2
jmp 0x40d77e
cmp eax, 0xa
jne 0x40d774
mov edi, str.Microsoft_Windows_98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x75]
mov ecx, edx
and ecx, 3
cmp al, 0x41
rep movsb byte es:[edi], byte [esi]
jne 0x40d7a3
mov edi, 0x42ee9c
jmp 0x40d77e
cmp eax, 0x5a
jne 0x40d7a3
mov edi, str.Microsoft_Windows_Millennium_Edition
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebx + 0x2c0]
mov edi, 0x42ee68
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40d7f9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6a4
ret
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x40d805
mov eax, dword [esp + 0x1c]
shr eax, cl
test eax, eax
je 0x40d879
test al, 1
je 0x40d86f
lea eax, [esp + 0x2c]
add cl, 0x41
push eax
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], 0x3a
mov byte [esp + 0x32], 0x5c
mov byte [esp + 0x33], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40d86b
lea ecx, [esp + 0x44]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40d7ec
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add esi, edx
mov edx, dword [esp + 0x48]
adc edi, eax
add ebp, ecx
adc ebx, edx
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x14], ecx
jl 0x40d801
push 0x25
push edi
push esi
push ebx
push ebp
call fcn.00412d30
push 0
push 0x64
push edx
push eax
call fcn.004127b0
push edx
push eax
push 0
push 0x40000000
push ebx
push ebp
call fcn.004125b0
push edx
push eax
push 0
push 0x40000000
push edi
push esi
call fcn.004125b0
push edx
push eax
lea eax, [esp + 0x4d0]
push 0x42ee34
push eax
call fcn.0041255c
lea edi, [esp + 0x4d8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x6b8]
mov dword [esp + 0x10], 0x50
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [eax + 0x2c0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6b8]
mov edi, str.CPU:
lea ebp, [ecx + 0x140]
or ecx, 0xffffffff
mov byte [ebp], al
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
mov ecx, edx
push eax
push 1
and ecx, 3
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x114]
push ecx
push edx
push 0
push 0
push str.VendorIdentifier
push eax
call ebx
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x114]
xor eax, eax
mov dword [esp + 0x10], 0x50
mov byte [esp + ecx + 0x114], 0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42ecbc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push ecx
push 0
push 0
push str.Identifier
push edx
call ebx
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
mov byte [esp + eax + 0x114], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push 0
push str.MHz
push edx
mov dword [esp + 0x28], 8
call ebx
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x4c]
push eax
push str.__dMHZ
push ecx
call fcn.0041255c
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xf4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0xfc]
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
push 0x42edd0
fild qword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
sub esp, 8
lea edx, [esp + 0x5c0]
shr eax, 0x14
fdivp st(1)
shr ecx, 0x14
fmul qword [0x427688]
fstp qword [esp]
push eax
push ecx
push 0x42ed9c
push edx
call fcn.0041255c
mov eax, dword [esp + 0x6d4]
lea edi, [esp + 0x5d0]
or ecx, 0xffffffff
add esp, 0x1c
lea edx, [eax + 0x240]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [edx], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x6a4
ret