Function at 0x402560
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x490
push ebx
push ebp
mov ebp, dword [esp + 0x49c]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x24], ecx
jne 0x40259a
push str._ClearWin7Ie9Cache__No_need_to_clear_cache.
call fcn.00401000
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x490
ret 4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x195]
mov byte [esp + 0x194], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x299]
mov byte [esp + 0x298], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 8
mov esi, str._WinX:18_WinY:6_IEFrame:00020336
lea edi, [esp + 0x28]
lea eax, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
push 0x103
push eax
movsb byte es:[edi], byte [esi]
or ebp, 0x2100
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x402623
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x490
ret 4
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jg 0x402645
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x490
ret 4
mov al, byte [esp + ecx + 0x8f]
dec ecx
cmp al, 0x5c
je 0x402655
cmp al, 0x2f
jne 0x40265c
mov byte [esp + ecx + 0x90], bl
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
mov edx, 0x102
sub edx, ecx
lea eax, [esp + 0x90]
push edx
push str._system32
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
lea ecx, [esp + 0x90]
lea edx, [esp + 0x194]
push ecx
push str._s_rundll32.exe
push 0x103
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x90]
lea ecx, [esp + 0x194]
lea edx, [esp + 0x298]
push ebp
push eax
push ecx
push str._s__sinetcpl.cpl_ClearMyTracksByProcess_Flags:_d
push 0x207
push edx
call edi
lea edi, [esp + 0x2b0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2b0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x206
sub eax, ecx
lea ecx, [esp + 0x40]
push eax
push ecx
push edx
call esi
add esp, 0x24
lea eax, [esp + 0x194]
push eax
push str._ClearWin7Ie9Cache__s_n
call fcn.00401000
add esp, 8
lea ecx, [esp + 0x298]
push ecx
push str._ClearWin7Ie9Cache__s_n
call fcn.00401000
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
xor edx, edx
add esp, 8
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], edx
push eax
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ebx
call fcn.00402240
mov esi, eax
cmp esi, ebx
je 0x40278d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x4c]
push ecx
push edx
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2b4]
push ebx
lea ecx, [esp + 0x1b4]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, eax
cmp esi, ebx
je 0x40279b
jmp 0x4027af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ClearWin7Ie9Cache_GetDupTokenHandle_ErrorCode___d
jmp 0x4027a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ClearWin7Ie9Cache_CreateProcessAsUser_ErrorCode___d
call fcn.00401000
add esp, 8
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4027c4
push eax
call edi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4027d3
push eax
call edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4027de
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x490
ret 4