Function at 0x42f220
Capabilities:
Check os version
Get disk information
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x443350]
mov edx, dword [0x43d8c4]
mov dword [esp + 0x244], eax
mov eax, dword [0x43d8bc]
push ebp
mov ebp, ecx
mov cx, word [0x43d8c0]
mov dword [esp + 0x1c], eax
mov ax, word [0x43d8c8]
mov word [esp + 0x20], cx
mov ecx, dword [0x43d8b4]
mov word [esp + 0x26], ax
mov eax, dword [0x43d8ac]
mov dword [esp + 0x28], ecx
mov cx, word [0x43d8b0]
mov dword [esp + 0x2e], eax
mov ax, word [0x43d8a8]
push esi
mov dword [esp + 0x26], edx
mov dx, word [0x43d8b8]
mov word [esp + 0x36], cx
push edi
xor esi, esi
mov word [esp + 0x40], ax
xor eax, eax
mov word [esp + 0x34], dx
mov edx, dword [0x43d8a4]
mov word [esp + 0x44], si
mov ecx, 0x82
lea edi, [esp + 0x46]
rep stosd dword es:[edi], eax
mov ecx, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], edx
call fcn.0042edd0
cmp dword [ebp + 8], 0xa
je 0x42f2e4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x244]
call fcn.00426448
add esp, 0x248
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push ebx
mov dword [esp + 0x20], 0xffffffff
xor edi, edi
lea ebx, [esp + 0x28]
lea esp, [esp]
push ebx
call esi
cmp eax, 3
je 0x42f313
inc edi
add ebx, 6
cmp edi, 5
jl 0x42f300
jmp 0x42f317
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x1c]
push ecx
push str.SOFTWAREBaDuPcd
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42f409
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42f3ee
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x17]
push eax
mov ecx, ebp
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 3
mov byte [esp + 0x1b], 1
call fcn.0042ecc0
mov edx, dword [esp + 0x20]
add eax, 0x31
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.PCode
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x30
push str._4792_7625_80AB52DF1A79
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 1
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 1
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 1
call fcn.0042ecc0
mov dword [eax + 0x64], 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 1
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.C:Documents_and_SettingsDefault_UserLocal_SettingsTempTemppc.bak
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f4e3
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42f4d4
push 0
lea edx, [esp + 0x1c]
push edx
push 0x30
lea eax, [esp + 0x1f]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 2
call fcn.0042ecc0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._4792_7625_80AB52DF1A79
lea ecx, [esp + 0x1b]
push ecx
mov ecx, ebp
mov byte [esp + 0x1f], 2
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 2
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 2
call fcn.0042ecc0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x20]
test esi, esi
jl 0x42f5f2
push str.ms0.dat
lea eax, [esi + esi*2]
push str.MSOCache_
lea ecx, [esp + eax*2 + 0x30]
push ecx
lea edx, [esp + 0x54]
push str._s_s_s
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f5ee
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42f5df
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x30
lea edx, [esp + 0x1f]
push edx
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 3
call fcn.0042ecc0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._4792_7625_80AB52DF1A79
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 3
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 3
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 3
call fcn.0042ecc0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPICheck
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42f6e8
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42f6cd
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x17]
push eax
mov ecx, ebp
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x1c], 3
mov byte [esp + 0x1b], 5
call fcn.0042ecc0
mov edx, dword [esp + 0x20]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x43d730
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x30
push str._40AE_46CD_23176EF35361
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 5
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 5
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 5
call fcn.0042ecc0
mov esi, dword [esp + 0x20]
mov dword [eax + 0x64], 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 1
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.C:WINDOWSgsyspd.log
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f7c6
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42f7b7
push 0
lea edx, [esp + 0x1c]
push edx
push 0x30
lea eax, [esp + 0x1f]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 4
call fcn.0042ecc0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._40AE_46CD_23176EF35361
lea ecx, [esp + 0x1b]
push ecx
mov ecx, ebp
mov byte [esp + 0x1f], 4
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 4
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 4
call fcn.0042ecc0
mov esi, dword [esp + 0x20]
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
test esi, esi
jl 0x42f9f6
push str.giex
lea edi, [esi + esi*2]
push str.ghos_
lea edi, [esp + edi*2 + 0x30]
push edi
lea eax, [esp + 0x54]
push str._s_s_s
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f8d5
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42f8c6
push 0
lea edx, [esp + 0x1c]
push edx
push 0x30
lea eax, [esp + 0x1f]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 6
call fcn.0042ecc0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._40AE_46CD_23176EF35361
lea ecx, [esp + 0x1b]
push ecx
mov ecx, ebp
mov byte [esp + 0x1f], 6
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 6
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 6
call fcn.0042ecc0
mov edi, dword [esp + 0x24]
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x42f8fa
test ah, ah
jbe 0x42f8fa
push str.update.dat
push str._Recycle.Bin_hf_mig__
push edi
push str._s_s_s
lea eax, [esp + 0x58]
push eax
jmp 0x42f90f
push str.update.dat
push str.RECYCLER_hf_mig__
push edi
push str._s_s_s
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f9f2
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42f9e3
push 0
lea eax, [esp + 0x28]
push eax
push 0x30
lea ecx, [esp + 0x1f]
push ecx
mov ecx, ebp
mov dword [esp + 0x34], 0
mov byte [esp + 0x23], 7
call fcn.0042ecc0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._40AE_46CD_23176EF35361
lea edx, [esp + 0x1b]
push edx
mov ecx, ebp
mov byte [esp + 0x1f], 7
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 7
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 7
call fcn.0042ecc0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x20]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.C:WINDOWSmsgpi.log
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42fad4
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42fac5
push 0
lea eax, [esp + 0x28]
push eax
push 0x30
lea ecx, [esp + 0x1f]
push ecx
mov ecx, ebp
mov dword [esp + 0x34], 0
mov byte [esp + 0x23], 8
call fcn.0042ecc0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._3F07_51AB_A8D53F476C3C
lea edx, [esp + 0x1b]
push edx
mov ecx, ebp
mov byte [esp + 0x1f], 8
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 8
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 8
call fcn.0042ecc0
mov esi, dword [esp + 0x20]
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
test esi, esi
jl 0x42fbdb
push str.wcods.dat
lea eax, [esi + esi*2]
push str.MSOCache_
lea ecx, [esp + eax*2 + 0x30]
push ecx
lea edx, [esp + 0x54]
push str._s_s_s
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42fbdb
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x42fbcc
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x30
lea edx, [esp + 0x1f]
push edx
mov ecx, ebp
mov dword [esp + 0x34], 0
mov byte [esp + 0x23], 9
call fcn.0042ecc0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._3F07_51AB_A8D53F476C3C
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 9
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 9
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 9
call fcn.0042ecc0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x1c]
push ecx
push str.SOFTWAREG2Pd
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
pop ebx
jne 0x42fcc6
mov eax, dword [esp + 0x258]
test eax, eax
je 0x42fcb3
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x1c], 3
mov byte [esp + 0x17], 0xa
call fcn.0042ecc0
mov edx, dword [esp + 0x1c]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x43d5e8
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x30
push str._3F07_51AB_A8D53F476C3C
lea eax, [esp + 0x17]
push eax
mov ecx, ebp
mov byte [esp + 0x1b], 0xa
call fcn.0042ecc0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0042c3e0
lea ecx, [esp + 0xf]
push ecx
mov ecx, ebp
mov byte [esp + 0x13], 0xa
call fcn.0042ecc0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0xf]
push eax
mov ecx, ebp
mov byte [esp + 0x13], 0xa
call fcn.0042ecc0
mov dword [eax + 0x64], 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
call fcn.00426448
add esp, 0x248
ret 4