Function at 0x402360
Capabilities:
Get hostname
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
sub esp, 0xad8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x100000
call fcn.0041c3a4
mov edi, eax
mov ecx, 0x40000
xor eax, eax
mov dword [0x437aa4], edi
rep stosd dword es:[edi], eax
push eax
call fcn.0040db0d
push eax
call fcn.0040dade
add esp, 0xc
lea eax, [esp + 0x118]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x18]
push 0xff
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor ecx, ecx
mov dword [0x437aac], ecx
mov dword [0x437ab0], ecx
mov dword [0x437ab4], ecx
mov dword [0x437ab8], ecx
mov dword [0x437abc], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push 0x437aac
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3fb
mov edx, ecx
mov esi, edi
mov edi, 0x437aac
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, ebx
call fcn.004203bd
mov ecx, eax
call fcn.0042047c
call fcn.0042465c
mov eax, dword [eax + 4]
mov edi, dword [0x437aa4]
mov ecx, 0x300
push str.fileSM1.dll
mov eax, dword [eax + 0x1c]
add eax, 0x5c
mov dword [0x437aa0], eax
xor eax, eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40246e
push eax
push eax
push str.fileSM1.dll_not_find___
call fcn.00423262
push esi
call fcn.0040d9eb
push str.Plug_Func
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4017c0
push 0
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x437a80
call fcn.00403a80
add esp, 4
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov ebx, dword [0x437a84]
test ebx, ebx
je 0x4025b5
mov ebp, dword [0x437a88]
mov eax, 0x3e0f83e1
mov ecx, ebp
sub ecx, ebx
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x4025b5
mov ecx, ebp
mov eax, 0x3e0f83e1
sub ecx, ebx
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, esi
ja 0x402501
mov ecx, 0x437a80
call fcn.00404830
mov ebp, dword [0x437a88]
mov ebx, dword [0x437a84]
mov ecx, dword [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x6ac]
lea edi, [ecx + ebx + 0x404]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40254f
sub ebp, ebx
mov eax, 0x3e0f83e1
imul ebp
mov eax, dword [esp + 0x10]
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, eax
ja 0x40255f
mov ecx, 0x437a80
call fcn.00404830
mov ebx, dword [0x437a84]
mov ebp, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2ac]
lea edi, [ebx + ebp + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2a8]
push ecx
call fcn.00401b60
mov ecx, dword [esp + 0x14]
add esp, 4
inc ecx
add ebp, 0x840
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov esi, ecx
jmp 0x4024a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xad8
ret