Function at 0x401000
Capabilities:
Get common file path
Get program files directory
Get session user name

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00401830
test eax, eax
je 0x40101e
mov dword [ebp + 0x71c], 1
jmp 0x401028
mov dword [ebp + 0x71c], 0
lea edx, [ebp + 0x720]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, str.SOFTWARELenovo
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, ebp
call fcn.00401390
test eax, eax
jne 0x40109a
mov edi, str.C:Program_FilesLenovoUpdates
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
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, ebp
call fcn.00401500
lea ebx, [ebp + 0x104]
xor eax, eax
push ebx
push eax
mov ecx, 0x41
mov edi, ebx
push eax
push 0x23
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x401106
mov eax, dword [ebp + 0x71c]
test eax, eax
je 0x4010e4
mov edi, str.C:ProgramData
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x401101
mov edi, str.C:Documents_and_SettingsAll_UsersApplication_Data
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebx, [ebp + 0x208]
xor eax, eax
push ebx
push eax
mov ecx, 0x41
mov edi, ebx
push eax
push 0x24
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x401149
mov edi, str.C:Windows
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebx, [ebp + 0x30c]
xor eax, eax
push ebx
push eax
mov ecx, 0x41
mov edi, ebx
push eax
push 0x25
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x40118c
mov edi, str.C:Windows_system32
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebx, [ebp + 0x410]
xor eax, eax
push ebx
push eax
mov ecx, 0x41
mov edi, ebx
push eax
push 0x26
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x4011cf
mov edi, 0x4060ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebx, [ebp + 0x514]
xor eax, eax
push ebx
push eax
mov ecx, 0x41
mov edi, ebx
push eax
push 0x1c
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x4012f2
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
stosb byte es:[edi], al
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [ebp + 0x71c]
test eax, eax
je 0x40127d
mov edi, str.C:Users_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
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 edi, str.AppDataLocal
jmp 0x4012cd
mov edi, str.C:Documents_and_Settings_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
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 edi, str.Local_SettingsApplication_Data
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, 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]
lea edx, [ebp + 0x618]
xor eax, eax
push edx
push eax
mov ecx, 0x41
mov edi, edx
push eax
push 0x17
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x40136b
mov eax, dword [ebp + 0x71c]
test eax, eax
je 0x401349
mov edi, str.C:ProgramDataMicrosoftWindowsStart_MenuPrograms
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edi, str.C:Documents_and_SettingsAll_Users_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x68
ret