Function at 0x4ccc00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x640], eax
cmp dword [eax + 0x40], 0
push edi
jne 0x4ccc3b
mov eax, pe_nt_image_headers32
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x63c]
push eax
push 0x202
mov dword [ebp - 0x64c], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0xaa]
push edx
mov word [ebp - 0xac], cx
call fcn.004e7d90
mov eax, dword [ebp - 0x640]
mov edx, dword [eax + 0x40]
add esp, 0xc
add edx, 0x40
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ccc83
sub eax, esi
je 0x4ccef1
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push edx
call ebx
cmp eax, 0xffffffff
jne 0x4cccdd
mov ecx, dword [ebp - 0x640]
mov edx, dword [ecx + 0x40]
add edx, 0x40
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4ccd12
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax + 0x40]
add ecx, 0x40
push 0x20
push ecx
call fcn.004e5ecc
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
mov dword [ebp - 0x648], eax
call fcn.004e4629
add esp, 4
test eax, eax
je 0x4ccd85
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov esi, eax
jmp 0x4ccd87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], cx
push 0xa
lea ecx, [ebp - 0x28]
push ecx
xor edx, edx
push eax
mov word [ebp - 0x28], dx
call fcn.004e45ff
add esp, 0xc
push str.fnSendRequestToNet
lea edx, [ebp - 0x28]
mov ecx, str.gethostbyname
call fcn.004a5a90
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, dword [ebp - 0x640]
mov eax, pe_nt_image_headers32
mov dword [edx + 0x8c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
xor esi, esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 2
mov word [esi], ax
mov ecx, dword [ebp - 0x640]
mov edx, dword [ecx + 0x40]
add edx, 0x40
push edx
mov edi, 0x10
call ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax + 0x40]
movzx edx, word [ecx + 0xc0]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov ecx, dword [ebp - 0x640]
mov ebx, dword [ecx + 0x40]
lea eax, [ebp - 0xac]
push eax
add ebx, 0x40
call fcn.004bb6e0
add esp, 4
push str.connect
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a5390
push 4
lea edx, [ebp - 0xac]
push str.172.
push edx
call fcn.004e4207
add esp, 0x14
test eax, eax
je 0x4cce72
push 3
lea eax, [ebp - 0xac]
push 0x5291ec
push eax
call fcn.004e4207
add esp, 0xc
test eax, eax
je 0x4ccfb9
push 1
lea ecx, [ebp - 0xac]
push str.192.168.
push ecx
call fcn.004e4207
add esp, 0xc
test eax, eax
je 0x4ccfb9
push str.accept_RealIP
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a5710
jmp 0x4ccfb6
lea edx, [ebp - 0xa4]
push 0x527834
push edx
call fcn.004e49bf
add esp, 8
test eax, eax
je 0x4ccfb9
lea edx, [ebp - 0xa4]
xor ecx, ecx
sub eax, edx
sar eax, 1
push eax
mov eax, edx
mov word [ebp - 0x18], cx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], cx
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004e4726
lea edx, [ebp - 0x18]
add esp, 0xc
push edx
call fcn.004e442a
add esp, 4
cmp eax, 0x10
jl 0x4cced5
cmp eax, 0x1f
jle 0x4ccfb9
push str.accept_RealIP
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a5710
jmp 0x4ccfb6
push 6
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
push 0x1c
mov dword [ebp - 0x648], eax
call fcn.004e4629
add esp, 4
test eax, eax
je 0x4ccf2b
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov esi, eax
jmp 0x4ccf2d
xor esi, esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov eax, 0x17
mov word [esi], ax
mov edx, dword [ebp - 0x640]
mov eax, dword [edx + 0x40]
lea ecx, [esi + 8]
push ecx
add eax, 0x60
push eax
push 0x17
mov edi, 0x1c
call dword [0x53b49c]
mov ecx, dword [ebp - 0x640]
mov edx, dword [ecx + 0x40]
movzx eax, word [edx + 0xc0]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov edx, dword [ebp - 0x640]
mov ebx, dword [edx + 0x40]
lea ecx, [ebp - 0xac]
push ecx
add ebx, 0x60
call fcn.004bb6e0
add esp, 4
push str.connect
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a5390
add esp, 8
mov eax, dword [ebp - 0x648]
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x650], eax
cmp eax, 0xffffffff
jne 0x4ccfef
mov ecx, dword [ebp - 0x640]
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x64c], eax
mov dword [ecx + 0x8c], eax
jmp 0x4cd4e8
lea edx, [ebp - 0x640]
push edx
call dword [0x539338]
mov eax, dword [ebp - 0x640]
movzx eax, word [eax + 4]
cdq
add esp, 4
push 0x53b4a0
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push esi
push 0
push 0x406ba91
push 0
push 0x2d7da4
call fcn.004cbac0
mov ecx, dword [ebp - 0x640]
mov dword [ecx + 0xf8], eax
mov eax, dword [ebp - 0x640]
add esp, 0x18
lea ecx, [ebp - 0x18]
push ecx
mov dword [eax + 0xfc], edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x18]
movzx ecx, word [ebp - 0x10]
lea edx, [eax + eax*4]
movzx eax, word [ebp - 0x16]
lea eax, [eax + edx*2]
movzx edx, word [ebp - 0x12]
imul eax, eax, 0x64
add eax, ecx
add eax, edx
cdq
push edx
push eax
push 0
push 0x1d5534f
push 0
push 0x36e31c
call fcn.004cbac0
mov ecx, dword [ebp - 0x640]
mov dword [ecx + 0x100], eax
mov eax, dword [ebp - 0x640]
add esp, 0x18
push 0x53b4a0
mov dword [eax + 0x104], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x640]
cmp dword [eax + 0x18], 0
jbe 0x4cd197
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004e4240
mov edx, dword [ebp - 0x640]
mov ebx, eax
mov eax, dword [edx + 0x10]
add esp, 4
push eax
push 0
push ebx
call fcn.004e7d90
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax + 0x14]
add esp, 0xc
push ecx
push eax
push ebx
call fcn.004eaf30
mov eax, dword [ebp - 0x640]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
add esp, 0xc
push edx
mov edx, dword [eax + 0x14]
push ecx
add edx, ebx
push edx
call fcn.004eaf30
mov eax, dword [ebp - 0x640]
mov esi, dword [eax + 0x10]
add esi, esi
add esp, 0xc
push esi
mov dword [ebp - 0x644], esi
call fcn.004e4240
add esp, 4
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x654], edi
call fcn.004e7d90
mov ecx, dword [ebp - 0x640]
mov ecx, dword [ecx + 0x10]
lea edx, [ebp - 0x644]
add esp, 0xc
push edx
sub ecx, 0x1c
lea eax, [ebx + 0x1c]
lea edx, [edi + 0x1c]
call fcn.004de1f0
mov eax, dword [ebp - 0x644]
add esp, 4
add eax, 0x1c
push 0
mov ecx, 7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x654]
push eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x648]
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
push esi
mov edi, eax
call fcn.004e424b
add esp, 4
jmp 0x4cd208
mov esi, dword [eax + 0x10]
add esi, esi
push esi
mov dword [ebp - 0x644], esi
call fcn.004e4240
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.004e7d90
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax + 0x10]
lea edx, [ebp - 0x644]
add esp, 0xc
push edx
sub ecx, 0x1c
add eax, 0x1c
lea edx, [ebx + 0x1c]
call fcn.004de1f0
mov eax, dword [ebp - 0x644]
mov esi, dword [ebp - 0x640]
add esp, 4
add eax, 0x1c
push 0
push eax
mov ecx, 7
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x648]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
push ebx
call fcn.004e424b
add esp, 4
push str.send
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a5390
xor ebx, ebx
add esp, 8
cmp edi, ebx
jle 0x4cd4e8
mov eax, dword [ebp - 0x640]
cmp dword [eax + 0x50], ebx
je 0x4cd4e8
mov dword [eax + 0x50], ebx
xor edi, edi
mov ecx, dword [ebp - 0x640]
mov dword [ebp - 0x644], 0x1388
mov eax, dword [ecx + 0x34]
cmp eax, 0x392
je 0x4cd29e
cmp eax, 0x302
je 0x4cd29e
cmp eax, 0x620
je 0x4cd29e
cmp eax, 0x306
jne 0x4cd284
mov dword [ebp - 0x644], 0x2710
jmp 0x4cd2a8
cmp eax, 0x30a
je 0x4cd292
cmp eax, 0x815
jne 0x4cd2a8
mov dword [ebp - 0x644], 0xea60
jmp 0x4cd2a8
mov dword [ebp - 0x644], 0x3a98
mov esi, dword [ebp - 0x648]
push 4
lea edx, [ebp - 0x644]
push edx
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x400
lea eax, [ebp - 0x4ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x4cd4b3
test edi, edi
jne 0x4cd346
cmp esi, 0x28
jbe 0x4cd249
mov ecx, 0x502568
lea edx, [ebp - 0x4ac]
call fcn.0047b330
test eax, eax
jne 0x4cd249
mov edx, dword [ebp - 0x498]
add edx, dword [ebp - 0x494]
mov eax, dword [ebp - 0x49c]
cmp eax, edx
jb 0x4cd249
push eax
call fcn.004e4240
add esp, 4
mov ebx, eax
push esi
lea eax, [ebp - 0x4ac]
push eax
push ebx
call fcn.004eaf30
add esp, 0xc
mov edi, esi
jmp 0x4cd35c
push esi
lea ecx, [ebp - 0x4ac]
push ecx
lea edx, [edi + ebx]
push edx
call fcn.004eaf30
add esp, 0xc
add edi, esi
test edi, edi
je 0x4cd249
cmp dword [ebx + 0x10], edi
jne 0x4cd249
cmp dword [ebx + 0x8c], 0x4000
jne 0x4cd423
mov ecx, dword [ebp - 0x640]
xor eax, eax
mov dword [ecx + 0xb8], eax
mov dword [ecx + 0xbc], eax
mov dword [ecx + 0xc0], eax
mov dword [ecx + 0xc4], eax
mov dword [ecx + 0xc8], eax
mov dword [ecx + 0xcc], eax
mov dword [ecx + 0xd0], eax
mov dword [ecx + 0xd4], eax
mov ecx, dword [ebp - 0x640]
mov dword [ecx + 0xd8], eax
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], eax
mov dword [ecx + 0xe4], eax
mov dword [ecx + 0xe8], eax
mov dword [ecx + 0xec], eax
mov dword [ecx + 0xf0], eax
mov dword [ecx + 0xf4], eax
mov edi, dword [ebp - 0x640]
add edi, 0xb8
lea esi, [ebx + 0xb8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x640]
add edi, 0xd8
lea esi, [ebx + 0xd8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x8c]
mov eax, dword [ebp - 0x640]
mov dword [eax + 0x8c], edx
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebp - 0x640]
mov dword [edx + 0x30], ecx
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x640]
mov dword [ecx + 0x34], eax
cmp dword [ebx + 0x18], 0
jbe 0x4cd4cf
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x640]
add edx, ebx
push eax
mov dword [ebx + 0x20], edx
call dword [0x539350]
mov ecx, dword [ebx + 0x18]
add esp, 4
push ecx
lea edx, [ebp - 0x640]
push edx
call dword [0x53934c]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebp - 0x640]
push eax
mov eax, dword [edx + 0x20]
push ecx
push eax
call fcn.004eaf30
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebp - 0x640]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax + 0x14]
add esp, 0x14
add ecx, dword [ebx + 0x18]
mov dword [eax + 0x10], ecx
jmp 0x4cd4df
mov eax, dword [ebp - 0x640]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x640]
mov dword [ecx + 0x34], 1
jmp 0x4cd4e8
lea edx, [ebp - 0x640]
push edx
call dword [0x539350]
add esp, 4
push ebx
call fcn.004e424b
add esp, 4
mov eax, dword [ebp - 0x648]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.close
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a5390
add esp, 8
cmp dword [ebp - 0x650], 0xffffffff
jne 0x4cd57b
mov eax, dword [ebp - 0x640]
cmp dword [eax + 0x40], 0
je 0x4cd57b
mov ecx, dword [eax + 0x40]
mov esi, dword [ecx + 0xc4]
test esi, esi
je 0x4cd57b
lea edx, [ebp - 0x640]
push edx
call dword [0x539338]
mov eax, dword [ebp - 0x640]
add esp, 4
push 0x3e8
mov dword [eax + 0x40], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x640]
push ecx
call fcn.004ccc00
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x64c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret