Function at 0x401510
Capabilities:
Check for time delay via gettickcount
Check os version
Create thread
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
mov eax, dword [0x41b020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x568], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x574], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x56c], eax
lea eax, [ebp - 0x554]
push eax
push 0x202
mov dword [ebp - 0x560], esi
mov dword [ebp - 0x580], edi
mov dword [ebp - 0x558], 0
mov dword [ebp - 0x55c], ebx
mov dword [ebp - 0x57c], ebx
mov dword [ebp - 0x564], ebx
mov dword [0x41b830], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401597
push str.Fail_To_Init_Socket_n
jmp 0x40273f
push 0xc8
lea eax, [ebp - 0x1ec]
push 0
push eax
call fcn.00404310
push 0xc8
lea eax, [ebp - 0x3b4]
push 0
push eax
call fcn.00404310
add esp, 0x18
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x4015d9
push dword [ebp - 0x560]
lea eax, [ebp - 0x3b4]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x570], ebx
push pe_nt_image_headers32
push eax
mov dword [ebp - 0x578], eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.00404310
push pe_nt_image_headers32
lea eax, [ebp - 0x4c4]
push 0
push eax
call fcn.00404310
push 0x2f
push dword [ebp - 0x574]
call fcn.00403f70
add esp, 0x20
mov dword [ebp - 0x588], eax
test eax, eax
je 0x401672
mov ecx, eax
mov eax, dword [ebp - 0x574]
sub ecx, eax
inc ecx
push ecx
push eax
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x588]
inc eax
push eax
call fcn.00406614
or edx, 0xffffffff
mov ecx, eax
mov dword [ebp - 0x570], edx
add esp, 4
shr dword [ebp - 0x570], cl
mov ecx, 0x20
sub ecx, eax
shl edx, cl
mov dword [ebp - 0x578], edx
jmp 0x401681
push dword [ebp - 0x574]
lea eax, [ebp - 0x2ec]
push eax
call esi
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4016a9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x2ec]
push eax
call esi
mov eax, dword [ebp - 0x578]
test eax, eax
je 0x401731
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 1
and edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
add edi, eax
mov eax, dword [ebp - 0x578]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x570]
and esi, eax
dec ecx
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, esi
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x4c4]
push eax
call esi
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x2ec]
push eax
call esi
mov edi, dword [ebp - 0x580]
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x1ec]
push eax
call esi
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x3b4]
push eax
call esi
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
lea ecx, [ebp - 0x3b4]
push pe_nt_image_headers32
cmovle ecx, dword [ebp - 0x560]
lea eax, [ebp - 0x124]
xorps xmm0, xmm0
mov dword [ebp - 0x560], ecx
push 0
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.00404310
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add esp, 0xc
push 0x4136c0
push dword [ebp - 0x568]
call esi
test eax, eax
je 0x4017c6
push 0x4136c4
push dword [ebp - 0x568]
call esi
test eax, eax
je 0x4017c6
push str.Invalid_Scan_Type_n
jmp 0x40273f
push 0x4136c0
push dword [ebp - 0x568]
call esi
test eax, eax
je 0x4017ff
push dword [ebp - 0x56c]
call fcn.00406614
add esp, 4
mov dword [0x41b84c], eax
test eax, eax
je 0x4017f5
cmp eax, 0x400
jbe 0x40184c
push str.Max_Thread_Out_Of_Bound_n
jmp 0x40273f
lea eax, [ebp - 0x280]
mov dword [ebp - 0x558], 1
push eax
mov dword [ebp - 0x280], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40273a
cmp dword [ebp - 0x270], 2
jne 0x40273a
cmp dword [ebp - 0x27c], 5
jne 0x40273a
mov dword [0x41b84c], 1
mov eax, dword [0x41b80c]
mov esi, 1
cmp dword [ebp - 0x560], ebx
push 0x413728
cmove eax, esi
push edi
mov dword [0x41b80c], eax
call fcn.004040a0
add esp, 8
test eax, eax
jne 0x401895
push 0x413674
push edi
call fcn.004040a0
mov ecx, dword [0x41b810]
add esp, 8
test eax, eax
cmove ecx, esi
mov dword [0x41b810], ecx
lea eax, [ebp - 0x1ec]
push eax
cmp dword [0x41b80c], ebx
je 0x4018bd
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [0x41b81c], eax
mov dword [0x41b820], eax
jmp 0x401910
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call esi
push dword [ebp - 0x560]
mov dword [0x41b81c], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call esi
mov edx, dword [0x41b81c]
mov ecx, eax
mov dword [0x41b820], ecx
cmp edx, ecx
jbe 0x4018fc
push str.Invalid_Hosts_To_Scan_n
jmp 0x40273f
mov eax, dword [0x41b80c]
cmp ecx, edx
mov ecx, 1
cmove eax, ecx
mov dword [0x41b80c], eax
cmp dword [0x41b810], ebx
jne 0x401add
push 0x413728
push edi
call fcn.004040a0
add esp, 8
test eax, eax
je 0x4019a0
push 0x413728
push edi
call fcn.004033a0
add esp, 8
test eax, eax
jne 0x40194a
push str.Something_Wrong_About_The_Ports_n
jmp 0x40273f
push eax
call fcn.00406614
push 0x413728
push 0
mov dword [0x41b828], eax
call fcn.004033a0
add esp, 0xc
test eax, eax
je 0x401978
push eax
call fcn.00406614
add esp, 4
mov dword [0x41b82c], eax
jmp 0x40197d
mov eax, dword [0x41b82c]
mov ecx, dword [0x41b828]
test ecx, ecx
je 0x401996
cmp eax, 0xffff
ja 0x401996
cmp ecx, eax
jbe 0x401b08
push str.Invalid_Port_To_Scan_n
jmp 0x40273f
push 0x413674
push edi
call fcn.004040a0
add esp, 8
test eax, eax
jne 0x4019bc
push str.Invalid_Port_List_n
jmp 0x40273f
test edi, edi
je 0x401ad3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x10
push eax
call fcn.0040630e
mov esi, eax
add esp, 4
mov dword [ebp - 0x56c], esi
test esi, esi
je 0x401ad3
mov edx, esi
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x4019f0
push 0x413674
push esi
call fcn.004033a0
add esp, 8
xor esi, esi
test eax, eax
je 0x401a25
push 0x413674
push 0
inc esi
call fcn.004033a0
add esp, 8
test eax, eax
jne 0x401a11
push dword [ebp - 0x56c]
call fcn.00406309
add esp, 4
test esi, esi
je 0x401ad3
lea eax, [esi*4]
push eax
call fcn.0040630e
add esp, 4
mov dword [0x41b848], eax
xor esi, esi
test eax, eax
je 0x401ab3
push 0x413674
push edi
call fcn.004033a0
add esp, 8
test eax, eax
je 0x401ab3
push eax
call fcn.00406614
add esp, 4
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x401a91
mov edx, dword [0x41b830]
mov ecx, dword [0x41b848]
mov dword [ecx + edx*4], eax
inc dword [0x41b830]
push 0x413674
push 0
call fcn.004033a0
add esp, 8
test eax, eax
jne 0x401a68
mov eax, dword [0x41b830]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
neg esi
jmp 0x401ab8
mov eax, dword [0x41b830]
mov dword [0x41b818], esi
test esi, esi
je 0x401b08
mov ecx, 1
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [0x41b810], eax
jmp 0x401b08
push str.No_Port_To_Scan_n
jmp 0x40273f
push edi
call fcn.00406614
add esp, 4
mov dword [0x41b824], eax
test eax, eax
je 0x401996
cmp eax, 0xffff
ja 0x401996
mov dword [0x41b828], eax
mov dword [0x41b82c], eax
cmp dword [ebp - 0x558], ebx
jne 0x401b4f
mov eax, dword [0x41b84c]
push 0
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x41b850], eax
test eax, eax
jne 0x401b4f
push str.Fail_To_Create_Semaphore_n
call fcn.00403370
mov eax, dword [0x41b848]
add esp, 4
test eax, eax
je 0x402747
push eax
call fcn.00406309
jmp 0x402744
lea eax, [ebp - 0x560]
mov dword [ebp - 0x560], ebx
push eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x568], ebx
push eax
or edi, 0xffffffff
xor esi, esi
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call sub.IPHLPAPI.DLL_GetBestInterface
test eax, eax
jne 0x401be1
mov dword [ebp - 0x568], ebx
push 0
lea eax, [ebp - 0x568]
push eax
push esi
call sub.IPHLPAPI.DLL_GetIpAddrTable
test eax, eax
je 0x401bae
mov eax, dword [ebp - 0x568]
test eax, eax
je 0x401b84
push eax
call fcn.0040630e
add esp, 4
mov esi, eax
jmp 0x401b84
mov edx, dword [esi]
xor eax, eax
test edx, edx
je 0x401bd8
mov edi, dword [ebp - 0x560]
lea ecx, [esi + 8]
nop
cmp dword [ecx], edi
je 0x401bd1
inc eax
add ecx, 0x18
cmp eax, edx
jb 0x401bc0
or edi, 0xffffffff
jmp 0x401bd8
lea eax, [eax + eax*2]
mov edi, dword [esi + eax*8 + 4]
push esi
call fcn.00406309
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41b840], edi
cmp edi, 0xffffffff
je 0x4026ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x580], eax
cmp dword [ebp - 0x558], ebx
je 0x401c5c
movzx ecx, byte [0x41b843]
push ecx
movzx ecx, byte [0x41b842]
push ecx
mov ecx, dword [0x41b840]
movzx eax, ch
push eax
movzx eax, cl
push eax
push str.Bind_On_IP:__d._d._d._d_n_n
call fcn.00403370
add esp, 0x14
lea eax, [ebp - 0x584]
push eax
push 0
push 0
push 0x401240
push 0
push 0
call edi
test eax, eax
je 0x4026ee
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [0x41b804], ebx
je 0x401ced
push str.________________________________________________________________________________r_n
push dword [0x41b004]
call fcn.004011d0
mov esi, dword [str.Result.txt]
lea eax, [ebp - 0x3c4]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x3b8]
push eax
movzx eax, word [ebp - 0x3ba]
push eax
movzx eax, word [ebp - 0x3bc]
push eax
movzx eax, word [ebp - 0x3c4]
push eax
movzx eax, word [ebp - 0x3be]
push eax
movzx eax, word [ebp - 0x3c2]
push eax
lea eax, [ebp - 0x4c4]
push str.Performing_Time:__d__d__d__d:_d:_d____
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
lea eax, [ebp - 0x4c4]
push eax
push esi
call fcn.004011d0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
mov edx, dword [0x41b80c]
mov ecx, dword [0x41b810]
test edx, edx
jne 0x401f6a
test ecx, ecx
jne 0x401f6a
push dword [0x41b84c]
cmp dword [ebp - 0x558], ebx
je 0x401dba
cmp dword [0x41b818], ebx
je 0x401d5d
mov eax, dword [0x41b820]
push dword [0x41b830]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.SYN_Scan:_About_To_Scan__u_IP_For__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x4020c9
push dword [0x41b84c]
push dword [0x41b830]
jmp 0x401da3
mov eax, dword [0x41b82c]
sub eax, dword [0x41b828]
inc eax
push eax
mov eax, dword [0x41b820]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.SYN_Scan:_About_To_Scan__u_IP_For__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x4020c9
mov eax, dword [0x41b82c]
sub eax, dword [0x41b828]
push dword [0x41b84c]
inc eax
push eax
mov eax, dword [0x41b820]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.SYN_Scan:_About_To_Scan__u_IP_For__u_Ports_Using__d_Thread_r_n
jmp 0x4021ed
cmp dword [0x41b818], ebx
je 0x401f1f
mov eax, dword [0x41b820]
push dword [0x41b830]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.Normal_Scan:_About_To_Scan__u_IP_For__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x401e2a
push dword [0x41b84c]
push dword [0x41b830]
mov eax, dword [0x41b820]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.Normal_Scan:_About_To_Scan__u_IP_For__u_Ports_Using__d_Thread_r_n
lea eax, [ebp - 0x124]
push eax
call esi
lea eax, [ebp - 0x124]
push eax
push dword [0x41b004]
call fcn.004011d0
add esp, 0x1c
mov ebx, dword [0x41b81c]
cmp ebx, dword [0x41b820]
ja 0x4023dc
mov eax, dword [0x41b82c]
cmp dword [0x41b818], 0
je 0x4022a0
xor esi, esi
cmp dword [0x41b830], esi
jbe 0x40238c
nop dword [eax]
push 8
call fcn.0040630e
add esp, 4
test eax, eax
je 0x401f08
mov dword [eax], ebx
mov ecx, dword [0x41b848]
mov ecx, dword [ecx + esi*4]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x584]
push ecx
push 0
push eax
push 0x402c60
push 0
push 0
call edi
mov edi, eax
test edi, edi
je 0x401ee7
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41b83c]
xor edx, edx
div dword [0x41b830]
mov ecx, dword [0x41b834]
push ecx
push eax
inc ecx
push str._u_IP_Scanned.Taking__d_Threads__r
mov dword [0x41b834], ecx
call fcn.00403370
inc dword [ebp - 0x564]
add esp, 0xc
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x41b814], 0
jne 0x4023a1
push 0xffffffffffffffff
push dword [0x41b850]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, dword [0x41b830]
jb 0x401e60
mov eax, dword [0x41b82c]
jmp 0x40238c
mov eax, dword [0x41b82c]
sub eax, dword [0x41b828]
inc eax
push eax
mov eax, dword [0x41b820]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.Normal_Scan:_About_To_Scan__u_IP_For__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x401e2a
mov eax, dword [0x41b82c]
sub eax, dword [0x41b828]
push dword [0x41b84c]
inc eax
push eax
jmp 0x401dfa
xor eax, eax
test edx, edx
sete al
test ecx, eax
je 0x40201e
mov eax, dword [0x41b820]
sub eax, dword [0x41b81c]
push dword [0x41b84c]
inc eax
push eax
cmp dword [ebp - 0x558], ebx
je 0x401fca
push str.SYN_Scan:_About_To_Scan__u_IP_Using__d_Thread_n
call fcn.00403370
add esp, 0xc
cmp dword [0x41b804], ebx
je 0x4020c9
mov eax, dword [0x41b820]
push dword [0x41b84c]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.SYN_Scan:_About_To_Scan__u_IP_Using__d_Thread_r_n
jmp 0x4020ab
push str.Normal_Scan:_About_To_Scan__u_IP_Using__d_Threads_n
call fcn.00403370
add esp, 0xc
cmp dword [0x41b804], ebx
je 0x401e2a
mov eax, dword [0x41b820]
push dword [0x41b84c]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.Normal_Scan:_About_To_Scan__u_IP_Using__d_Threads_r_n
lea eax, [ebp - 0x124]
push eax
call esi
lea eax, [ebp - 0x124]
push eax
push dword [0x41b004]
call fcn.004011d0
add esp, 0x18
jmp 0x401e2a
test edx, edx
je 0x4020c9
push dword [0x41b84c]
test ecx, ecx
jne 0x402165
cmp dword [ebp - 0x558], ebx
je 0x4020e5
cmp dword [0x41b818], ebx
je 0x402071
push dword [0x41b830]
push str.SYN_Scan:_About_To_Scan__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0xc
cmp dword [0x41b804], ebx
je 0x4020c9
push dword [0x41b84c]
push dword [0x41b830]
jmp 0x4020a6
mov eax, dword [0x41b82c]
sub eax, dword [0x41b828]
inc eax
push eax
push str.SYN_Scan:_About_To_Scan__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0xc
cmp dword [0x41b804], ebx
je 0x4020c9
mov eax, dword [0x41b82c]
sub eax, dword [0x41b828]
push dword [0x41b84c]
inc eax
push eax
push str.SYN_Scan:_About_To_Scan__u_Ports_Using__d_Thread_r_n
lea eax, [ebp - 0x124]
push eax
call esi
lea eax, [ebp - 0x124]
push eax
push dword [0x41b004]
call fcn.004011d0
add esp, 0x18
cmp dword [ebp - 0x558], ebx
je 0x401e2a
inc dword [0x41b834]
call fcn.00402760
jmp 0x4023de
cmp dword [0x41b818], ebx
je 0x402122
push dword [0x41b830]
push str.Normal_Scan:_About_To_Scan__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0xc
cmp dword [0x41b804], ebx
je 0x401e2a
push dword [0x41b84c]
push dword [0x41b830]
push str.Normal_Scan:_About_To_Scan__u_Ports_Using__d_Thread_r_n
jmp 0x401ffb
mov eax, dword [0x41b82c]
sub eax, dword [0x41b828]
inc eax
push eax
push str.Normal_Scan:_About_To_Scan__u_Ports_Using__d_Thread_n
call fcn.00403370
add esp, 0xc
cmp dword [0x41b804], ebx
je 0x401e2a
mov eax, dword [0x41b82c]
push dword [0x41b84c]
sub eax, dword [0x41b828]
inc eax
push eax
push str.Normal_Scan:_About_To_Scan__u_Ports_Using__d_Thread_r_n
jmp 0x401ffb
cmp dword [ebp - 0x558], ebx
je 0x402210
cmp dword [0x41b818], ebx
je 0x4021af
mov eax, dword [0x41b848]
push dword [eax]
lea eax, [ebp - 0x1ec]
push eax
push str.SYN_Scan:_About_To_Scan__s:_d_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x4020c9
mov eax, dword [0x41b848]
push dword [0x41b84c]
push dword [eax]
jmp 0x4021e1
push dword [0x41b828]
lea eax, [ebp - 0x1ec]
push eax
push str.SYN_Scan:_About_To_Scan__s:_d_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x4020c9
push dword [0x41b84c]
push dword [0x41b828]
lea eax, [ebp - 0x1ec]
push eax
push str.SYN_Scan:_About_To_Scan__s:_d_Using__d_Thread_r_n
lea eax, [ebp - 0x124]
push eax
call esi
lea eax, [ebp - 0x124]
push eax
push dword [0x41b004]
call fcn.004011d0
add esp, 0x1c
jmp 0x4020c9
cmp dword [0x41b818], ebx
je 0x40225d
mov eax, dword [0x41b848]
push dword [eax]
lea eax, [ebp - 0x1ec]
push eax
push str.Normal_Scan:_About_To_Scan__s:_d_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x401e2a
mov eax, dword [0x41b848]
push dword [0x41b84c]
push dword [eax]
lea eax, [ebp - 0x1ec]
push eax
push str.Normal_Scan:_About_To_Scan__s:_d_Using__d_Thread_r_n
jmp 0x401e0c
push dword [0x41b828]
lea eax, [ebp - 0x1ec]
push eax
push str.Normal_Scan:_About_To_Scan__s:_d_Using__d_Thread_n
call fcn.00403370
add esp, 0x10
cmp dword [0x41b804], ebx
je 0x401e2a
push dword [0x41b84c]
lea eax, [ebp - 0x1ec]
push dword [0x41b828]
push eax
push str.Normal_Scan:_About_To_Scan__s:_d_Using__d_Thread_r_n
jmp 0x401e0c
mov esi, dword [0x41b828]
mov ecx, eax
sub ecx, esi
inc ecx
mov dword [ebp - 0x56c], ecx
cmp esi, eax
ja 0x40238c
nop dword [eax]
push 8
call fcn.0040630e
add esp, 4
test eax, eax
je 0x40237e
lea ecx, [ebp - 0x584]
mov dword [eax], ebx
push ecx
push 0
push eax
push 0x402c60
push 0
push 0
mov dword [eax + 4], esi
call edi
mov edi, eax
test edi, edi
je 0x402361
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x41b80c], 0
je 0x402322
cmp dword [0x41b810], 0
jne 0x402343
push dword [0x41b834]
push dword [0x41b83c]
push str._u_Ports_Scanned.Taking__d_Threads__r
jmp 0x40233b
mov eax, dword [0x41b83c]
xor edx, edx
div dword [ebp - 0x56c]
push dword [0x41b834]
push eax
push str._u_IP_Scanned.Taking__d_Threads__r
call fcn.00403370
add esp, 0xc
inc dword [0x41b834]
inc dword [ebp - 0x564]
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x41b814], 0
jne 0x4023be
push 0xffffffffffffffff
push dword [0x41b850]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x41b82c]
inc esi
cmp esi, eax
jbe 0x4022c0
inc ebx
cmp ebx, dword [0x41b820]
jbe 0x401e41
mov ebx, dword [ebp - 0x564]
jmp 0x4023de
mov eax, dword [0x41b848]
inc ebx
mov dword [ebp - 0x55c], ebx
mov ebx, dword [ebp - 0x564]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x57c], eax
jmp 0x4023de
cmp dword [0x41b80c], 0
jne 0x4023c8
inc ebx
mov dword [ebp - 0x55c], ebx
mov ebx, dword [ebp - 0x564]
mov dword [ebp - 0x57c], esi
jmp 0x4023de
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x41b834], 0
je 0x4025cd
push 0xffffffffffffffff
push dword [0x41b850]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x41b7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x41b834]
push str._d_Threads_Are_In_Process......_______________r
call fcn.00403370
add esp, 8
lea eax, [ebp - 0x58c]
push eax
push 1
push dword [0x41b850]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x41b7ec
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4025b2
mov eax, dword [ebp - 0x58c]
inc eax
cmp eax, dword [0x41b84c]
je 0x4025cd
push 0xa
call edi
cmp dword [ebp - 0x558], 0
jne 0x4023f0
cmp dword [0x41b83c], ebx
jne 0x4023f0
cmp dword [0x41b814], 0
je 0x402508
mov ecx, dword [ebp - 0x55c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, cl
push eax
movzx eax, cx
shr eax, 8
push eax
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
push eax
push ecx
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call ebx
mov esi, dword [ebp - 0x57c]
lea eax, [ebp - 0x24]
push esi
push eax
push str.Last_Scan:__s:_d_________________n
call fcn.00403370
add esp, 0x24
cmp dword [0x41b804], 0
je 0x402508
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push str.LastIP_Scanned:__s:_d_r_n
push eax
call ebx
lea eax, [ebp - 0x124]
push eax
push dword [0x41b004]
call fcn.004011d0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov esi, 1
sub ecx, dword [ebp - 0x580]
mov eax, 0x10624dd3
mul ecx
mov eax, 0xc22e4507
shr edx, 6
test edx, edx
cmovne esi, edx
mul esi
shr edx, 0x10
imul ecx, edx, 0x15180
xor edx, edx
sub esi, ecx
mov ecx, 0xe10
mov eax, esi
div ecx
mov ecx, 0x3c
mov esi, eax
mov eax, edx
xor edx, edx
div ecx
cmp dword [0x41b814], 0
mov ebx, edx
mov edi, eax
je 0x402655
cmp dword [0x41b80c], 0
je 0x4025e6
push dword [0x41b838]
push ebx
push edi
push esi
lea eax, [ebp - 0x1ec]
push eax
push str.Scan__s_Complete_In__d_Hours__d_Minutes__d_Seconds._Found__u_Open_Ports_n
call fcn.00403370
add esp, 0x18
cmp dword [0x41b804], 0
je 0x4026e8
push dword [0x41b838]
lea eax, [ebp - 0x1ec]
push ebx
push edi
push esi
push eax
push str.Scan__s_Complete_In__d_Hours__d_Minutes__d_Seconds._Found__u_Open_Ports_r_n
jmp 0x4026a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Code:__d_n
call fcn.00403370
add esp, 8
push 0xbb8
call edi
cmp dword [ebp - 0x558], 0
je 0x402483
push 0x1f4
call edi
jmp 0x402508
cmp dword [0x41b810], 0
mov eax, dword [0x41b83c]
jne 0x40261a
cmp dword [0x41b818], 0
je 0x402609
mov ecx, dword [0x41b830]
test ecx, ecx
jne 0x402616
jmp 0x40261a
mov ecx, dword [0x41b82c]
sub ecx, dword [0x41b828]
inc ecx
xor edx, edx
div ecx
push dword [0x41b838]
mov dword [ebp - 0x55c], eax
push ebx
push edi
push esi
push eax
push str.Scan__u_IPs_Complete_In__d_Hours__d_Minutes__d_Seconds._Found__u_Hosts_n
call fcn.00403370
add esp, 0x18
cmp dword [0x41b804], 0
je 0x4026e8
push dword [0x41b838]
push ebx
push edi
push esi
push dword [ebp - 0x55c]
jmp 0x4026a4
cmp dword [0x41b80c], 0
push dword [0x41b838]
push ebx
push edi
push esi
jne 0x402577
mov eax, dword [0x41b820]
sub eax, dword [0x41b81c]
inc eax
push eax
push str.Scan__u_IPs_Complete_In__d_Hours__d_Minutes__d_Seconds._Found__u_Hosts_r_n
call fcn.00403370
add esp, 0x18
cmp dword [0x41b804], 0
je 0x4026e8
push dword [0x41b838]
mov eax, dword [0x41b820]
sub eax, dword [0x41b81c]
push ebx
push edi
push esi
inc eax
push eax
push str.Scan__u_IPs_Complete_In__d_Hours__d_Minutes__d_Seconds._Found__u_Hosts_r_n
lea eax, [ebp - 0x124]
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
lea eax, [ebp - 0x124]
push eax
push dword [0x41b004]
call fcn.004011d0
add esp, 0x24
cmp dword [0x41b804], 0
je 0x4026e8
push str.________________________________________________________________________________r_n_r_n
push dword [0x41b004]
call fcn.004011d0
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41b850]
test eax, eax
je 0x4026fa
push eax
call esi
mov eax, dword [0x41b844]
cmp eax, 0xffffffff
je 0x40270b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x41b848]
test ecx, ecx
je 0x40271e
push ecx
call fcn.00406309
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040342a
mov esp, ebp
pop ebp
ret
push str.SYN_Scan_Can_Only_Perform_On_WIN_2K_Or_Above_n
call fcn.00403370
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040342a
mov esp, ebp
pop ebp
ret