Function at 0x408050
Capabilities:
Link many functions at runtime
Rebuild import table

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40805e
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateProcessA
push eax
mov dword [esi + 8], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
push str.GetModuleFileNameA
push eax
call edi
mov ecx, dword [esi + 8]
push str.CreateMutexA
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi + 8]
push str.ReleaseMutex
push edx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 8]
push str.GetLastError
push eax
call edi
mov ecx, dword [esi + 8]
push str.CloseHandle
push ecx
mov dword [esi + 0x30], eax
call edi
mov edx, dword [esi + 8]
push str.Sleep
push edx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 8]
push str.lstrcatA
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetTickCount
push ecx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi + 8]
push str.WaitForSingleObject
push edx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 8]
push str.GetFileAttributesA
push eax
call edi
mov ecx, dword [esi + 8]
push str.CreateEventA
push ecx
mov dword [esi + 0x48], eax
call edi
mov edx, dword [esi + 8]
push str.ResetEvent
push edx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 8]
push str.CancelIo
push eax
call edi
mov ecx, dword [esi + 8]
push str.SetEvent
push ecx
mov dword [esi + 0x54], eax
call edi
mov dword [esi + 0x58], eax
mov edx, dword [esi + 8]
push str.TerminateThread
push edx
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 8]
push str.GetVersionExA
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetExitCodeProcess
push ecx
mov dword [esi + 0x60], eax
call edi
mov edx, dword [esi + 8]
push str.ExpandEnvironmentStringsA
push edx
mov dword [esi + 0x64], eax
call edi
mov dword [esi + 0x68], eax
mov eax, dword [esi + 8]
push str.GetSystemInfo
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetSystemDirectoryA
push ecx
mov dword [esi + 0x6c], eax
call edi
mov edx, dword [esi + 8]
push str.MoveFileA
push edx
mov dword [esi + 0x70], eax
call edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 8]
push str.MoveFileExA
push eax
call edi
mov ecx, dword [esi + 8]
push str.WTSGetActiveConsoleSessionId
push ecx
mov dword [esi + 0x78], eax
call edi
mov edx, dword [esi + 8]
push str.GetCurrentProcess
push edx
mov dword [esi + 0x7c], eax
call edi
push str.User32.dll
mov dword [esi + 0x80], eax
call ebx
push str.wsprintfA
push eax
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0xc]
push str.ExitWindowsEx
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.MessageBoxA
push ecx
mov dword [esi + 0x88], eax
call edi
mov edx, dword [esi + 0xc]
push str.IsWindowVisible
push edx
mov dword [esi + 0x8c], eax
call edi
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0xc]
push str.SendMessageA
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.EnumWindows
push ecx
mov dword [esi + 0x94], eax
call edi
push str.MSVCRT.dll
mov dword [esi + 0x98], eax
call ebx
push str.strcmp
push eax
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0x18]
push str.strlen
push edx
mov dword [esi + 0xd8], eax
call edi
mov dword [esi + 0xdc], eax
mov eax, dword [esi + 0x18]
push str.memcpy
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.memset
push ecx
mov dword [esi + 0xe0], eax
call edi
mov edx, dword [esi + 0x18]
push str.strstr
push edx
mov dword [esi + 0xe4], eax
call edi
push str.ws2_32.dll
mov dword [esi + 0xe8], eax
call ebx
push str.WSAStartup
push eax
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xec], eax
mov eax, dword [esi + 0x14]
push str.WSACleanup
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.socket
push ecx
mov dword [esi + 0xf0], eax
call edi
mov edx, dword [esi + 0x14]
push str.gethostbyname
push edx
mov dword [esi + 0xf4], eax
call edi
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x14]
push str.htons
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.connect
push ecx
mov dword [esi + 0xfc], eax
call edi
mov edx, dword [esi + 0x14]
push str.send
push edx
mov dword [esi + 0x100], eax
call edi
mov dword [esi + 0x104], eax
mov eax, dword [esi + 0x14]
push str.recv
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.closesocket
push ecx
mov dword [esi + 0x108], eax
call edi
mov edx, dword [esi + 0x14]
push str.setsockopt
push edx
mov dword [esi + 0x10c], eax
call edi
mov dword [esi + 0x110], eax
push str.WSAIoctl
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.select
push ecx
mov dword [esi + 0x114], eax
call edi
mov edx, dword [esi + 0x14]
push str.getsockname
push edx
mov dword [esi + 0x118], eax
call edi
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x14]
push str.gethostname
push eax
call edi
push str.ADVAPI32.dll
mov dword [esi + 0x120], eax
call ebx
push str.SetServiceStatus
push eax
mov dword [esi + 0x10], eax
call edi
mov ecx, dword [esi + 0x10]
push str.RegisterServiceCtrlHandlerA
push ecx
mov dword [esi + 0x9c], eax
call edi
mov edx, dword [esi + 0x10]
push str.OpenSCManagerA
push edx
mov dword [esi + 0xa0], eax
call edi
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0x10]
push str.OpenServiceA
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.StartServiceA
push ecx
mov dword [esi + 0xa8], eax
call edi
mov edx, dword [esi + 0x10]
push str.CloseServiceHandle
push edx
mov dword [esi + 0xac], eax
call edi
mov dword [esi + 0xb0], eax
mov eax, dword [esi + 0x10]
push str.QueryServiceStatus
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.ControlService
push ecx
mov dword [esi + 0xb4], eax
call edi
mov edx, dword [esi + 0x10]
push str.CreateServiceA
push edx
mov dword [esi + 0xb8], eax
call edi
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x10]
push str.ChangeServiceConfig2A
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.DeleteService
push ecx
mov dword [esi + 0xc0], eax
call edi
mov edx, dword [esi + 0x10]
push str.OpenProcessToken
push edx
mov dword [esi + 0xc4], eax
call edi
mov dword [esi + 0xc8], eax
mov eax, dword [esi + 0x10]
push str.DuplicateTokenEx
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.SetTokenInformation
push ecx
mov dword [esi + 0xcc], eax
call edi
mov edx, dword [esi + 0x10]
push str.CreateProcessAsUserA
push edx
mov dword [esi + 0xd0], eax
call edi
push str.wininet.dll
mov dword [esi + 0xd4], eax
call ebx
mov dword [esi + 0x1c], eax
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop ebx
pop esi
ret