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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x10005f3d
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 + 0x28], eax
mov eax, dword [esi + 8]
push 0x1000ab80
push eax
call edi
mov ecx, dword [esi + 8]
push str.CreateMutexA
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 8]
push str.ReleaseMutex
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 8]
push 0x1000ab50
push eax
call edi
mov ecx, dword [esi + 8]
push 0x1000ab44
push ecx
mov dword [esi + 0x38], eax
call edi
mov edx, dword [esi + 8]
push 0x1000ab3c
push edx
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 8]
push 0x1000ab30
push eax
call edi
mov ecx, dword [esi + 8]
push 0x1000ab20
push ecx
mov dword [esi + 0x44], eax
call edi
mov edx, dword [esi + 8]
push 0x1000ab0c
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
push 0x1000aaf8
push eax
call edi
mov ecx, dword [esi + 8]
push 0x1000aae8
push ecx
mov dword [esi + 0x50], eax
call edi
mov edx, dword [esi + 8]
push str.ResetEvent
push edx
mov dword [esi + 0x54], eax
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 8]
push str.CancelIo
push eax
call edi
mov ecx, dword [esi + 8]
push 0x1000aac4
push ecx
mov dword [esi + 0x5c], eax
call edi
mov dword [esi + 0x60], eax
mov edx, dword [esi + 8]
push str.TerminateThread
push edx
call edi
mov dword [esi + 0x64], 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 + 0x68], eax
call edi
mov edx, dword [esi + 8]
push str.ExpandEnvironmentStringsA
push edx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x70], eax
mov eax, dword [esi + 8]
push str.GetSystemInfo
push eax
call edi
mov ecx, dword [esi + 8]
push 0x1000aa50
push ecx
mov dword [esi + 0x74], eax
call edi
mov edx, dword [esi + 8]
push str.MoveFileA
push edx
mov dword [esi + 0x78], eax
call edi
mov dword [esi + 0x7c], 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 + 0x80], eax
call edi
mov edx, dword [esi + 8]
push 0x1000a5b4
push edx
mov dword [esi + 0x84], eax
call edi
mov dword [esi + 0x88], eax
mov eax, dword [esi + 8]
push 0x1000a9fc
push eax
call edi
mov ecx, dword [esi + 8]
push 0x1000a9ec
push ecx
mov dword [esi + 0x8c], eax
call edi
mov edx, dword [esi + 8]
push 0x1000a9dc
push edx
mov dword [esi + 0x90], eax
call edi
push str.User32.dll
mov dword [esi + 0x94], eax
call ebx
push 0x1000a9c4
push eax
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x98], 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 + 0x9c], eax
call edi
mov edx, dword [esi + 0xc]
push str.IsWindowVisible
push edx
mov dword [esi + 0xa0], eax
call edi
mov dword [esi + 0xa4], 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 + 0xa8], eax
call edi
push str.MSVCRT.dll
mov dword [esi + 0xac], 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 + 0x110], eax
call edi
mov dword [esi + 0x114], eax
mov eax, dword [esi + 0x18]
push 0x1000a958
push eax
call edi
mov ecx, dword [esi + 0x18]
push 0x1000a950
push ecx
mov dword [esi + 0x118], eax
call edi
mov edx, dword [esi + 0x18]
push 0x1000a948
push edx
mov dword [esi + 0x11c], eax
call edi
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x18]
push str.memmove
push eax
call edi
push str.ws2_32.dll
mov dword [esi + 0x124], eax
call ebx
push str.WSAStartup
push eax
mov dword [esi + 0x14], eax
call edi
mov ecx, dword [esi + 0x14]
push str.WSACleanup
push ecx
mov dword [esi + 0x128], eax
call edi
mov edx, dword [esi + 0x14]
push str.socket
push edx
mov dword [esi + 0x12c], eax
call edi
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x14]
push str.gethostbyname
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.htons
push ecx
mov dword [esi + 0x134], eax
call edi
mov edx, dword [esi + 0x14]
push str.connect
push edx
mov dword [esi + 0x138], eax
call edi
mov dword [esi + 0x13c], eax
push str.send
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.recv
push ecx
mov dword [esi + 0x140], eax
call edi
mov edx, dword [esi + 0x14]
push str.closesocket
push edx
mov dword [esi + 0x144], eax
call edi
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x14]
push str.setsockopt
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.WSAIoctl
push ecx
mov dword [esi + 0x14c], eax
call edi
mov edx, dword [esi + 0x14]
push str.select
push edx
mov dword [esi + 0x150], eax
call edi
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0x14]
push str.getsockname
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.gethostname
push ecx
mov dword [esi + 0x158], eax
call edi
push 0x1000a890
mov dword [esi + 0x15c], eax
call ebx
push str.SetServiceStatus
push eax
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 0x10]
push str.RegisterServiceCtrlHandlerA
push edx
mov dword [esi + 0xb0], eax
call edi
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0x10]
push 0x1000a850
push eax
call edi
mov ecx, dword [esi + 0x10]
push 0x1000a840
push ecx
mov dword [esi + 0xb8], eax
call edi
mov edx, dword [esi + 0x10]
push str.StartServiceA
push edx
mov dword [esi + 0xbc], eax
call edi
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0x10]
push 0x1000a81c
push eax
call edi
mov ecx, dword [esi + 0x10]
push 0x1000a808
push ecx
mov dword [esi + 0xc4], eax
call edi
mov edx, dword [esi + 0x10]
push 0x1000a7f8
push edx
mov dword [esi + 0xc8], eax
call edi
mov dword [esi + 0xcc], eax
mov eax, dword [esi + 0x10]
push str.CreateServiceA
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.ChangeServiceConfig2A
push ecx
mov dword [esi + 0xd0], eax
call edi
mov edx, dword [esi + 0x10]
push str.DeleteService
push edx
mov dword [esi + 0xd4], eax
call edi
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0x10]
push str.OpenProcessToken
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.DuplicateTokenEx
push ecx
mov dword [esi + 0xdc], eax
call edi
mov edx, dword [esi + 0x10]
push str.SetTokenInformation
push edx
mov dword [esi + 0xe0], eax
call edi
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0x10]
push str.CreateProcessAsUserA
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.RegQueryValueExA
push ecx
mov dword [esi + 0xe8], eax
call edi
mov edx, dword [esi + 0x10]
push 0x1000a748
push edx
mov dword [esi + 0xec], eax
call edi
mov dword [esi + 0xf0], eax
mov eax, dword [esi + 0x10]
push str.RegEnumValueA
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.RegEnumKeyExA
push ecx
mov dword [esi + 0xf4], eax
call edi
mov edx, dword [esi + 0x10]
push 0x1000a71c
push edx
mov dword [esi + 0xf8], eax
call edi
mov dword [esi + 0xfc], eax
mov eax, dword [esi + 0x10]
push str.RegCreateKeyExA
push eax
call edi
mov ecx, dword [esi + 0x10]
push 0x1000a6fc
push ecx
mov dword [esi + 0x100], eax
call edi
mov edx, dword [esi + 0x10]
push str.RegDeleteKeyA
push edx
mov dword [esi + 0x104], eax
call edi
mov dword [esi + 0x108], eax
mov eax, dword [esi + 0x10]
push str.RegDeleteValueA
push eax
call edi
mov dword [esi + 0x10c], eax
push str.wininet.dll
call ebx
push str.Ole32.dll
mov dword [esi + 0x1c], eax
call ebx
push str.CoInitialize
push eax
mov dword [esi + 0x20], eax
call edi
mov ecx, dword [esi + 0x20]
push str.CoUninitialize
push ecx
mov dword [esi + 0x160], eax
call edi
mov edx, dword [esi + 0x20]
push str.CoCreateInstance
push edx
mov dword [esi + 0x164], eax
call edi
mov dword [esi + 0x168], eax
pop edi
mov eax, 1
pop ebx
mov dword [esi + 4], eax
pop esi
ret