Function at 0x402760
Capabilities:
Check for time delay via queryperformancecounter
Create raw socket
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x41b020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41b828]
push esi
push edi
mov dword [ebp - 0x2e8], eax
mov eax, dword [0x41b82c]
push pe_nt_image_headers32
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00404310
add esp, 0xc
mov dword [ebp - 0x2e4], 1
xor esi, esi
mov dword [ebp - 0x2f0], 0x5dc
mov dword [ebp - 0x2dc], esi
push 0xff
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0x2d4], edi
cmp edi, 0xffffffff
je 0x402b43
push 4
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], 1
push eax
push 2
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
call edi
cmp eax, 0xffffffff
je 0x402b3d
push 4
lea eax, [ebp - 0x2f0]
push eax
push 0x1005
push 0xffff
push dword [ebp - 0x2d4]
call edi
cmp eax, 0xffffffff
je 0x402b3d
mov eax, dword [0x41b81c]
mov dword [ebp - 0x2d8], eax
cmp eax, dword [0x41b820]
ja 0x402b3d
mov edx, dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esi + 2]
nop dword [eax]
cmp dword [0x41b818], 0
je 0x4029c2
xor edi, edi
cmp dword [0x41b830], edi
jbe 0x402b24
nop dword [eax + eax]
mov eax, dword [0x41b848]
xorps xmm0, xmm0
mov eax, dword [eax + edi*4]
movaps xmmword [ebp - 0x2d0], xmm0
push eax
mov dword [ebp - 0x2e0], eax
mov word [ebp - 0x2d0], cx
call edx
push dword [ebp - 0x2d8]
mov word [ebp - 0x2ce], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x2f8]
mov eax, 0x80008001
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff
sub ecx, eax
movzx eax, word [ebp - 0x2ce]
push eax
push dword [ebp - 0x2cc]
mov eax, dword [sym.imp.WS2_32.dll_htons]
inc ecx
push ecx
call eax
movzx eax, ax
push eax
push dword [0x41b840]
lea eax, [ebp - 0x130]
push eax
call fcn.00401050
inc dword [0x41b83c]
lea ecx, [ebp - 0x2d0]
add esp, 0x14
push 0x10
push ecx
push 0
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x4029a5
push 0x41b7ec
inc esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x41b80c], 0
je 0x402957
push esi
push str._u_Ports_Scanned._______________r
jmp 0x402967
mov eax, esi
xor edx, edx
div dword [0x41b830]
push eax
push str._u_IP_Scanned._______________r
call fcn.00403370
add esp, 8
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x41b814], 0
jne 0x402c1c
mov eax, 0x10624dd3
mov ecx, esi
mul esi
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
jne 0x4029a5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [sym.imp.WS2_32.dll_htons]
inc edi
mov ecx, 2
cmp edi, dword [0x41b830]
jb 0x402880
jmp 0x402b24
mov ecx, dword [ebp - 0x2ec]
mov eax, ecx
sub eax, dword [ebp - 0x2e8]
mov edi, dword [ebp - 0x2e8]
inc eax
mov dword [ebp - 0x2e0], eax
cmp edi, ecx
ja 0x402b1f
nop word [eax + eax]
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [ebp - 0x2d0], xmm0
push edi
mov word [ebp - 0x2d0], ax
call edx
push dword [ebp - 0x2d8]
mov word [ebp - 0x2ce], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x300]
mov eax, 0x80008001
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff
sub ecx, eax
movzx eax, word [ebp - 0x2ce]
push eax
push dword [ebp - 0x2cc]
mov eax, dword [sym.imp.WS2_32.dll_htons]
inc ecx
push ecx
call eax
movzx eax, ax
push eax
push dword [0x41b840]
lea eax, [ebp - 0x130]
push eax
call fcn.00401050
inc dword [0x41b83c]
lea ecx, [ebp - 0x2d0]
add esp, 0x14
push 0x10
push ecx
push 0
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x402b0c
push 0x41b7ec
inc esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x41b80c], 0
je 0x402abe
push esi
push str._u_Ports_Scanned._______________r
jmp 0x402ace
mov eax, esi
xor edx, edx
div dword [ebp - 0x2e0]
push eax
push str._u_IP_Scanned._______________r
call fcn.00403370
add esp, 8
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x41b814], 0
jne 0x402c3a
mov eax, 0x10624dd3
mov ecx, esi
mul esi
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
jne 0x402b0c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [sym.imp.WS2_32.dll_htons]
inc edi
cmp edi, dword [ebp - 0x2ec]
jbe 0x4029f0
mov ecx, 2
mov edi, dword [ebp - 0x2d8]
inc edi
mov dword [ebp - 0x2d8], edi
cmp edi, dword [0x41b820]
jbe 0x402860
mov edi, dword [ebp - 0x2d4]
xor ecx, ecx
cmp dword [0x41b814], 0
je 0x402bd3
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
xorps xmm0, xmm0
movzx eax, cl
push eax
movzx eax, cx
shr eax, 8
push eax
mov eax, ecx
movaps xmmword [ebp - 0x30], xmm0
shr eax, 0x10
movzx eax, al
push eax
shr ecx, 0x18
lea eax, [ebp - 0x30]
push ecx
push str._d._d._d._d
push eax
movaps xmmword [ebp - 0x20], xmm0
call esi
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x30]
push eax
push str.Last_Scan:__s:_d_________________n
call fcn.00403370
add esp, 0x24
cmp dword [0x41b804], 0
je 0x402bd3
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c0]
push str.LastIP_Scanned:__s:_d_r_n
push eax
call esi
lea eax, [ebp - 0x2c0]
push eax
push dword [0x41b004]
call fcn.004011d0
add esp, 0x18
cmp edi, 0xffffffff
je 0x402bdf
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41b834]
test eax, eax
je 0x402bf9
dec eax
mov dword [0x41b834], eax
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040342a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x2e0]
inc ecx
mov edi, dword [ebp - 0x2d4]
mov dword [ebp - 0x2dc], eax
jmp 0x402b45
cmp dword [0x41b80c], 0
mov ecx, dword [ebp - 0x2d8]
jne 0x402c4a
inc ecx
mov dword [ebp - 0x2dc], edi
mov edi, dword [ebp - 0x2d4]
jmp 0x402b45