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

Disassembly:
sub esp, 0x248
mov eax, dword [0x1003b270]
mov edx, dword [0x1003657c]
mov dword [esp + 0x244], eax
mov eax, dword [0x10036574]
push ebp
mov ebp, ecx
mov cx, word [0x10036578]
mov dword [esp + 0x1c], eax
mov ax, word [0x10036580]
mov word [esp + 0x20], cx
mov ecx, dword [0x1003656c]
mov word [esp + 0x26], ax
mov eax, dword [0x10036564]
mov dword [esp + 0x28], ecx
mov cx, word [0x10036568]
mov dword [esp + 0x2e], eax
mov ax, word [0x10036560]
push esi
mov dword [esp + 0x26], edx
mov dx, word [0x10036570]
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 [0x1003655c]
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.10025270
cmp dword [ebp + 8], 0xa
je 0x10025784
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x244]
call fcn.1001590b
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 0x100257b3
inc edi
add ebx, 6
cmp edi, 5
jl 0x100257a0
jmp 0x100257b7
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 0x100258a9
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x1002588e
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 1
call fcn.10025160
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.10025160
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 0x10025983
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x10025974
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 2
call fcn.10025160
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.10025160
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 0x10025a92
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 0x10025a8e
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x10025a7f
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 3
call fcn.10025160
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.10025160
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 0x10025b88
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x10025b6d
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.10025160
mov edx, dword [esp + 0x20]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x100363e8
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 5
call fcn.10025160
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.10025160
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 0x10025c66
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x10025c57
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 4
call fcn.10025160
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.10025160
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 0x10025e96
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 0x10025d75
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x10025d66
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 6
call fcn.10025160
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.10025160
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 0x10025d9a
test ah, ah
jbe 0x10025d9a
push str.update.dat
push str._Recycle.Bin_hf_mig__
push edi
push str._s_s_s
lea eax, [esp + 0x58]
push eax
jmp 0x10025daf
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 0x10025e92
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x10025e83
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 7
call fcn.10025160
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.10025160
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 0x10025f74
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x10025f65
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 8
call fcn.10025160
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.10025160
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 0x1002607b
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 0x1002607b
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x1002606c
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.10025160
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 9
call fcn.10025160
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.10025160
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 0x10026166
mov eax, dword [esp + 0x258]
test eax, eax
je 0x10026153
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.10025160
mov edx, dword [esp + 0x1c]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x100362a0
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.10025160
add eax, 0x31
push eax
mov ecx, ebp
call fcn.10022910
lea ecx, [esp + 0xf]
push ecx
mov ecx, ebp
mov byte [esp + 0x13], 0xa
call fcn.10025160
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.10025160
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.1001590b
add esp, 0x248
ret 4