Function at 0x570650
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Check os version
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5ab848
mov eax, dword fs:[0]
push eax
mov eax, 0x11dc
call fcn.00595100
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x11d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x11f0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
push edi
call fcn.0057862e
xor ebp, ebp
mov eax, 0x800
add esp, 4
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x11f8], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
mov byte [esp + 0x11f8], 1
movzx ecx, word [esi + 0x34]
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x64]
lea edx, [esi + 0x24]
push eax
call fcn.005702b0
add esp, 0xc
mov dword [esp + 0x14], ebp
xor ebx, ebx
cmp dword [esi + 0x40], ebp
jne 0x5707ac
xor edi, edi
lea esp, [esp]
cmp dword [esi + 0x40], ebp
jne 0x57079b
mov ecx, dword [ebx + 0x5b5200]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x57073d
test ebp, ebp
jne 0x570755
mov edx, dword [ebx + 0x5b5200]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x570755
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebp, dword [ecx]
mov edx, dword [esp + 0x14]
lea eax, [edx + edi]
lea esi, [eax + eax*2]
movzx eax, word [edi*2 + 0x5f28fc]
add esi, esi
add esi, esi
push eax
mov dword [esp + esi + 0x88], ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + esi + 0x88], ax
call fcn.0057863b
add edi, 1
xor ebp, ebp
cmp edi, 2
mov dword [esp + esi + 0x80], eax
mov esi, dword [esp + 0x18]
jb 0x570720
add dword [esp + 0x14], 2
add ebx, 4
cmp ebx, 4
jb 0x57070e
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
push 2
lea edx, [esp + 0xa8]
mov dword [eax + 8], ecx
push edx
lea eax, [esp + 0x94]
push eax
call fcn.0056fc90
add esp, 0x18
cmp dword [esi + 0x40], ebp
je 0x570802
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x5707f8
push eax
call fcn.0057876f
add esp, 4
mov eax, 0xfffffed0
jmp 0x571068
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x11f8], 2
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x11f8], 3
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
mov byte [esp + 0x1200], 4
call fcn.0056c600
add esp, 8
mov dword [esp + 0x4c], eax
or ebx, 0xffffffff
mov dword [esp + 0x14], 0xfffffe0c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x44], eax
xor esi, esi
lea eax, [esp + 0x88]
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x44]
cmp eax, 0x7530
jae 0x570d25
cmp esi, ebp
jbe 0x5708dc
xor esi, esi
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x40], 0
jne 0x570d25
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0xa
jb 0x5708be
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x40], 0
jne 0x570d25
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, 0xffffffff
je 0x5708fc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov dword [esp + 0x1d2], eax
mov dword [esp + 0x1d6], eax
mov dword [esp + 0x1da], eax
mov word [esp + 0x1de], ax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax - 4]
mov dx, word [eax]
mov eax, dword [esp + 0x4c]
test eax, eax
mov word [esp + 0x1d0], 2
mov dword [esp + 0x1d4], ecx
mov word [esp + 0x1d2], dx
jne 0x57099c
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x570968
or ebx, eax
mov dword [esp + 0x14], 0xfffffecf
jmp 0x570bae
push 0x10
lea eax, [esp + 0x1d4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x570988
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
cmp esi, 0xffffffff
mov ebx, esi
jne 0x5709d4
mov dword [esp + 0x14], 0xfffffecf
jmp 0x570bae
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x28]
push edx
push ecx
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x1e4]
call fcn.0056db70
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
jne 0x5709d4
mov dword [esp + 0x14], 0xfffffed2
jmp 0x570bae
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x40], 0
jne 0x570bce
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
push 0
push edi
push esi
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
jl 0x570bae
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x40], 0
jne 0x570c76
push 0
push 0
lea esi, [esp + 0x34]
call fcn.004083b0
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x40], 0
mov dword [esp + 0x44], eax
jne 0x570bae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x44]
cmp eax, 0x1388
jae 0x570bae
xor esi, esi
push 0x100
lea eax, [esp + 0xcc]
push esi
push eax
mov dword [esp + 0xd0], esi
call fcn.00580260
mov ecx, dword [esp + 0xd0]
add esp, 0xc
mov edx, 1
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], esi
jbe 0x570a95
cmp dword [esp + eax*4 + 0xc8], ebx
je 0x570a95
add eax, edx
cmp eax, ecx
jb 0x570a86
cmp eax, ecx
jne 0x570aac
cmp ecx, 0x40
jae 0x570aac
mov dword [esp + eax*4 + 0xc8], ebx
add dword [esp + 0xc4], edx
lea ecx, [esp + 0x74]
push ecx
push esi
push esi
lea eax, [esp + 0xd0]
push eax
push edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jl 0x570b8f
je 0x570b7f
push 0
push 0x800
lea ecx, [esp + 0x1f4]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jle 0x570b8f
mov edx, dword [esp + 0x3c]
lea edi, [edx + ebp]
cmp edi, dword [esp + 0x34]
jbe 0x570b30
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x570b09
mov esi, edi
jmp 0x570b16
xor edx, edx
lea eax, [ecx + edi - 1]
div ecx
mov esi, eax
imul esi, ecx
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.005793f3
add esp, 8
test eax, eax
je 0x570b60
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push ebp
lea ecx, [esp + 0x1f0]
push ecx
add edx, eax
push edx
call fcn.0057e7b0
mov esi, dword [esp + 0x44]
add esp, 0xc
cmp edi, esi
mov dword [esp + 0x3c], edi
jbe 0x570b64
mov esi, edi
mov dword [esp + 0x38], esi
jmp 0x570b64
mov esi, dword [esp + 0x38]
cmp esi, 0x34
jb 0x570b7f
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jbe 0x570d1a
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x40], 0
je 0x570a38
jmp 0x570bae
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or ebx, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2775
jne 0x570bae
mov dword [esp + 0x14], 0xfffffed1
mov esi, dword [esp + 0x28]
add dword [esp + 0x48], 0xc
add esi, 1
cmp esi, 2
mov dword [esp + 0x28], esi
jae 0x570d25
xor ebp, ebp
jmp 0x5708a3
mov byte [esp + 0x11f8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570c1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570c46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x570c57
push eax
call fcn.0057876f
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5707f8
push eax
call fcn.0057876f
add esp, 4
mov eax, 0xfffffed0
jmp 0x571068
mov byte [esp + 0x11f8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570c9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570cc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570cee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x570cff
push eax
call fcn.0057876f
add esp, 4
test esi, esi
je 0x5707f8
push esi
call fcn.0057876f
add esp, 4
mov eax, 0xfffffed0
jmp 0x571068
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x20], 0
cmp ebx, 0xffffffff
je 0x570d31
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [esp + 0x38]
cmp edi, 0x34
mov ebp, dword [esp + 0x30]
jb 0x570fce
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, edi
ja 0x570fce
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
add edi, 0xffffffcc
push edi
lea edx, [ebp + 0x34]
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x34], 0x1000
call fcn.00401f50
add esp, 0xc
test eax, eax
jne 0x570e23
mov byte [esp + 0x11f8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570daf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570dd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570dff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.0057876f
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x570e19
push eax
call fcn.0057876f
add esp, 4
mov eax, 0xfffffed1
jmp 0x571068
lea ecx, [esp + 0x98]
push ecx
call fcn.00459710
xor ebp, ebp
mov ebx, 5
mov byte [esp + 0x11f8], bl
mov edx, dword [esp + 0x28]
push ebp
push edx
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.00459bc0
push ebx
mov edi, 0xf
push str.SignD
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x1ec], ebp
mov byte [esp + 0x1dc], 0
call fcn.00405f50
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1d4]
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1200], 6
call fcn.00571290
mov ebp, 0x10
mov byte [esp + 0x11f8], bl
cmp dword [esp + 0x1e8], ebp
jb 0x570edb
mov eax, dword [esp + 0x1d4]
push eax
call fcn.00578327
add esp, 4
push 4
push str.KeyD
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x1ec], 0
mov byte [esp + 0x1dc], 0
call fcn.00405f50
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x1d4]
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1200], 7
call fcn.00571290
mov byte [esp + 0x11f8], bl
cmp dword [esp + 0x1e8], ebp
jb 0x570f49
mov eax, dword [esp + 0x1d4]
push eax
call fcn.00578327
add esp, 4
mov ebx, dword [esp + 0x54]
cmp ebx, 0xff
ja 0x571090
cmp dword [esp + 0x4c], 0x10
jne 0x571090
mov byte [esi + 0x18], bl
mov eax, dword [esi + 0x1c]
push eax
call fcn.00578327
add esp, 4
xor edi, edi
push ebx
mov dword [esi + 0x1c], edi
call fcn.0057740a
movzx ecx, byte [esi + 0x18]
mov edx, dword [esp + 0x5c]
add esp, 4
push ecx
push edx
push eax
mov dword [esi + 0x1c], eax
call fcn.0057e7b0
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
lea ecx, [esp + 0x98]
mov dword [esi + 0x14], edx
mov dword [esp + 0x14], edi
mov byte [esp + 0x11f8], 4
call fcn.004597a0
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x11f8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x570ff6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57101e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x571046
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x571053
push ebp
call fcn.0057876f
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x571064
push eax
call fcn.0057876f
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x11f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11d8]
xor ecx, esp
call fcn.005787fd
add esp, 0x11e8
ret
lea ecx, [esp + 0x98]
mov byte [esp + 0x11f8], 4
call fcn.004597a0
mov byte [esp + 0x11f8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5710cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5710f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11f8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57111c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0057876f
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x570e19
push eax
call fcn.0057876f
add esp, 4
mov eax, 0xfffffed1
jmp 0x571068