Function at 0x403fb1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov esi, ecx
call fcn.004051b0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x26], 0
mov word [ebp - 0x28], 0
mov word [ebp - 0x3a], 0
mov word [ebp - 0x2a], 0
mov word [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.00402014
mov dword [esp], 0x10
call fcn.004026e4
mov dword [0x40c05c], eax
mov dword [esp], 0x10
call fcn.004026e4
mov dword [0x40c060], eax
mov dword [esp], 0x2000
call fcn.004026e4
mov dword [0x40c128], eax
mov dword [esp], 0x2000
call fcn.004026e4
mov dword [0x40c120], eax
mov dword [esp], 0x104
call fcn.004026e4
mov dword [0x40c12c], eax
mov dword [esp], 0x104
call fcn.004026e4
mov dword [0x40c134], eax
mov dword [esp], 0x4a
call fcn.004026e4
mov dword [0x40c06c], eax
mov dword [esp], 1
call sub.msvcrt.dll_malloc
mov dword [0x40c130], eax
mov eax, dword [0x40c130]
mov byte [eax], 1
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov dword [0x408024], 4
cmp dword [esi], 1
jne 0x404524
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov dword [esp], 0x200
call fcn.004026e4
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], ebx
mov dword [esp], 0x2000
call fcn.004026e4
mov ebx, eax
mov eax, dword [esi + 4]
add eax, 4
mov dword [eax], ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Cmd_line:
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.msvcrt.dll__read
mov dword [0x40c048], eax
mov eax, dword [0x40c048]
test eax, eax
jne 0x404160
mov dword [esp], str.wrong
call fcn.004025c9
mov eax, dword [0x40c048]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0040273e
mov edi, eax
test edi, edi
je 0x404185
mov eax, dword [0x40c048]
mov edx, edi
sub eax, edx
mov dword [0x40c048], eax
mov eax, dword [0x40c048]
test eax, eax
je 0x4041ae
mov edx, dword [0x40c048]
mov eax, edi
lea ecx, [ebx + eax]
mov eax, dword [0x40c128]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 4]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], 0xa
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov ebx, eax
test ebx, ebx
je 0x4041cf
mov byte [ebx], 0
mov eax, dword [esi + 4]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], 0xd
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov ebx, eax
test ebx, ebx
je 0x4041f0
mov byte [ebx], 0
mov eax, dword [esi + 4]
mov ebx, dword [eax + 4]
add ebx, 1
mov edi, 2
jmp 0x40422c
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40420c
mov byte [ebx], 0
jmp 0x404229
lea eax, [ebx - 1]
movzx eax, byte [eax]
test al, al
jne 0x404229
mov eax, edi
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov dword [eax], ebx
add edi, 1
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x404200
mov dword [esi], edi
jmp 0x404524
lea eax, [edi - 0x47]
cmp eax, 0x33
ja case.0x40424d.72
mov eax, dword [eax*4 + 0x4099ec]
jmp eax
mov dword [esp], str.all_A_records_NIY
call fcn.004025c9
movzx eax, word [0x40c074]
add eax, 1
mov word [0x40c074], ax
jmp 0x404524
movzx eax, word [0x40c07c]
add eax, 1
mov word [0x40c07c], ax
mov dword [ebp - 0x34], 1
jmp 0x404524
call sub.KERNEL32.dll_FreeConsole
jmp 0x404524
mov eax, dword [0x40c020]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov edi, eax
test edi, edi
je 0x4042ba
mov eax, edi
and eax, 0x1c
cmp eax, edi
jne 0x4042ba
mov dword [0x408024], edi
jmp 0x4042ca
mov dword [esp + 4], edi
mov dword [esp], str.invalid_hop_pointer__d__must_be_multiple_of_4___28
call fcn.004025c9
jmp 0x404524
mov eax, dword [0x40c044]
cmp eax, 8
jle 0x4042e5
mov dword [esp], str.too_many__g_hops
call fcn.004025c9
mov eax, dword [0x40c064]
test eax, eax
jne 0x4042ff
mov dword [esp], 0x28
call fcn.004026e4
mov dword [0x40c064], eax
movzx eax, word [0x40c07e]
movzx edx, ax
mov eax, dword [0x40c020]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004027e3
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x404338
mov eax, dword [0x40c064]
mov edx, dword [0x40c044]
shl edx, 2
add edx, eax
mov eax, dword [ebp - 0x40]
mov dword [edx], eax
mov eax, dword [0x40c044]
add eax, 1
mov dword [0x40c044], eax
jmp 0x404524
call sub.msvcrt.dll__errno
mov dword [eax], 0
call 0x404b40
mov eax, dword [0x40c020]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
movzx eax, ax
mov dword [0x40c078], eax
mov eax, dword [0x40c078]
imul eax, eax, 0x3e8
mov dword [0x40c078], eax
mov eax, dword [0x40c078]
test eax, eax
jne 0x404524
mov eax, dword [0x40c020]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_interval_time__s
call fcn.004025c9
jmp 0x404524
movzx eax, word [0x40c07c]
add eax, 1
mov word [0x40c07c], ax
jmp 0x404524
movzx eax, word [0x40c07e]
add eax, 1
mov word [0x40c07e], ax
jmp 0x404524
mov eax, dword [0x40c020]
mov dword [0x40c070], eax
movzx eax, word [0x40c080]
add eax, 1
mov word [0x40c080], ax
jmp 0x404524
mov eax, dword [0x40c020]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402ae8
mov word [ebp - 0x26], ax
cmp word [ebp - 0x26], 0
jne 0x404524
mov eax, dword [0x40c020]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_local_port__s
call fcn.004025c9
jmp 0x404524
movzx eax, word [0x40c082]
add eax, 1
mov word [0x40c082], ax
jmp 0x404524
movzx eax, word [0x40c07e]
movzx edx, ax
mov eax, dword [0x40c020]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004027e3
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0x1c0
mov dword [ebp - 0x20], eax
jmp 0x404524
movzx eax, word [0x40c084]
add eax, 1
mov word [0x40c084], ax
jmp 0x404524
movzx eax, word [0x40c086]
add eax, 1
mov word [0x40c086], ax
jmp 0x404524
mov eax, dword [0x40c020]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [0x40c088], eax
mov eax, dword [0x40c088]
test eax, eax
jne 0x4044ca
mov eax, dword [0x40c020]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_wait_time__s
call fcn.004025c9
mov dword [esp], 8
call fcn.004026e4
mov dword [0x40c054], eax
mov dword [esp], 8
call fcn.004026e4
mov dword [0x40c058], eax
mov eax, dword [0x40c054]
mov edx, dword [0x40c088]
mov dword [eax], edx
jmp 0x404524
movzx eax, word [0x40c08c]
add eax, 1
mov word [0x40c08c], ax
jmp 0x404524
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov dword [esp], str.nc__h_for_help
call fcn.004025c9
mov dword [esp + 8], str.ade:g:G:hi:lLno:p:rs:tuvw:z
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00401fd9
mov edi, eax
cmp edi, 0xffffffff
jne 0x40423a
movzx eax, word [0x40c082]
test ax, ax
je 0x404577
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov dword [esp], 0x10000
call fcn.004026e4
mov dword [ebp - 0x30], eax
movzx eax, word [0x40c080]
test ax, ax
je 0x4045d4
mov eax, dword [0x40c070]
mov dword [esp + 8], 0x1b4
mov dword [esp + 4], 0x241
mov dword [esp], eax
call sub.msvcrt.dll__open
mov dword [0x40c040], eax
mov eax, dword [0x40c040]
test eax, eax
jg 0x4045c3
mov eax, dword [0x40c070]
mov dword [esp + 4], eax
mov dword [esp], str.cant_open__s
call fcn.004025c9
mov dword [esp], 0x64
call fcn.004026e4
mov dword [0x40c070], eax
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
test eax, eax
je 0x404617
movzx eax, word [0x40c07e]
movzx edx, ax
mov eax, dword [0x40c024]
lea ecx, [eax*4]
mov eax, dword [esi + 4]
add eax, ecx
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004027e3
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x404634
mov eax, dword [ebp - 0x1c]
add eax, 0x1c0
test eax, eax
je 0x404634
mov eax, dword [ebp - 0x1c]
add eax, 0x1c0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x404647
mov eax, dword [0x40c024]
add eax, 1
mov dword [0x40c024], eax
call sub.msvcrt.dll__errno
mov dword [eax], 0
movzx eax, word [0x40c07c]
test ax, ax
je 0x40475a
mov word [ebp - 0x2c], 0
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
test eax, eax
je 0x4046d0
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402ae8
mov word [ebp - 0x2c], ax
cmp word [ebp - 0x2c], 0
jne 0x4046d0
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_port__s
call fcn.004025c9
movzx edx, word [ebp - 0x26]
movzx eax, word [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00403119
mov dword [0x40800c], eax
mov eax, dword [0x40800c]
test eax, eax
jle 0x40474e
mov eax, dword [0x40800c]
mov dword [esp], eax
call fcn.00403915
mov edi, eax
movzx eax, word [0x40c086]
cmp ax, 1
jbe 0x40473b
mov edx, dword [0x40c04c]
mov eax, dword [0x40c050]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._sent__d__rcvd__d
call fcn.00402513
cmp dword [ebp - 0x34], 1
jne 0x404746
jmp 0x4040be
mov dword [esp], edi
call sub.msvcrt.dll_exit
mov dword [esp], str.no_connection
call fcn.004025c9
cmp dword [ebp - 0x24], 0
jne 0x40476c
mov dword [esp], str.no_destination
call fcn.004025c9
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
test eax, eax
jne 0x40478f
mov dword [esp], str.no_port_s__to_connect_to
call fcn.004025c9
mov eax, dword [0x40c024]
add eax, 1
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
test eax, eax
je 0x4047b2
mov word [0x408028], 0
movzx eax, word [ebp - 0x26]
mov word [ebp - 0x28], ax
jmp 0x404abe
mov word [ebp - 0x3a], 0
movzx eax, word [ebp - 0x3a]
mov word [ebp - 0x2a], ax
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], 0x2d
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov ebx, eax
test ebx, ebx
je 0x404827
mov byte [ebx], 0
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00402ae8
mov word [ebp - 0x2a], ax
cmp word [ebp - 0x2a], 0
jne 0x404827
mov dword [esp + 4], ebx
mov dword [esp], str.invalid_port__s
call fcn.004025c9
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402ae8
mov word [ebp - 0x3a], ax
cmp word [ebp - 0x3a], 0
jne 0x404878
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_port__s
call fcn.004025c9
movzx eax, word [ebp - 0x2a]
cmp ax, word [ebp - 0x3a]
jbe 0x4048d2
mov word [0x408028], 0
movzx eax, word [ebp - 0x2a]
mov word [ebp - 0x2c], ax
movzx eax, word [0x40c082]
test ax, ax
je 0x404aa3
movzx edx, word [ebp - 0x2a]
movzx eax, word [ebp - 0x3a]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00402d51
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00402cde
mov word [ebp - 0x2c], ax
jmp 0x404aa3
movzx eax, word [ebp - 0x3a]
mov word [ebp - 0x2c], ax
jmp 0x404aa3
cmp word [ebp - 0x26], 0
jne 0x404909
movzx eax, word [0x40c082]
test ax, ax
je 0x404909
call sub.msvcrt.dll_rand
mov word [ebp - 0x28], ax
cmp word [ebp - 0x28], 0x1fff
ja 0x404909
add word [ebp - 0x28], 0x2000
movzx eax, word [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00402ae8
mov word [ebp - 0x2c], ax
movzx edx, word [ebp - 0x28]
movzx eax, word [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00402dcf
mov dword [0x40800c], eax
mov eax, dword [0x40800c]
test eax, eax
jle 0x404982
movzx eax, word [0x40c08c]
test ax, ax
je 0x404982
movzx eax, word [0x40c084]
test ax, ax
je 0x404982
mov eax, dword [0x40800c]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00403613
mov dword [0x40800c], eax
mov eax, dword [0x40800c]
test eax, eax
jle 0x4049e0
mov edi, 0
mov eax, dword [0x40c06c]
mov ebx, eax
movzx edx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x100]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], str._s___s___d___s__open
call fcn.00402513
movzx eax, word [0x40c08c]
test ax, ax
jne 0x404a3d
mov eax, dword [0x40800c]
mov dword [esp], eax
call fcn.00403915
mov edi, eax
jmp 0x404a3d
mov edi, 1
movzx eax, word [0x408028]
test ax, ax
jne 0x404a0a
movzx eax, word [0x40c086]
cmp ax, 1
ja 0x404a0a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274d
je 0x404a3d
mov eax, dword [0x40c06c]
mov ebx, eax
movzx edx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x100]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], str._s___s___d___s_
call fcn.00402513
mov eax, dword [0x40800c]
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WS2_32.dll_shutdown
sub esp, 8
mov eax, dword [0x40800c]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
sub esp, 4
mov eax, dword [0x40c078]
test eax, eax
je 0x404a7b
mov eax, dword [0x40c078]
mov dword [esp], eax
call sub.msvcrt.dll__sleep
movzx eax, word [0x40c082]
test ax, ax
je 0x404a98
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00402cde
mov word [ebp - 0x2c], ax
jmp 0x404aa3
movzx eax, word [ebp - 0x2c]
sub eax, 1
mov word [ebp - 0x2c], ax
movzx eax, word [ebp - 0x3a]
cmp ax, word [ebp - 0x2c]
jbe 0x4048df
mov eax, dword [0x40c024]
add eax, 1
mov dword [0x40c024], eax
mov eax, dword [0x40c024]
lea edx, [eax*4]
mov eax, dword [esi + 4]
add eax, edx
mov eax, dword [eax]
test eax, eax
jne 0x4047bf
call sub.msvcrt.dll__errno
mov dword [eax], 0
movzx eax, word [0x40c086]
cmp ax, 1
jbe 0x404b10
mov edx, dword [0x40c04c]
mov eax, dword [0x40c050]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.sent__d__rcvd__d
call fcn.00402513
call sub.WS2_32.dll_WSACleanup
cmp dword [ebp - 0x34], 1
jne 0x404b20
jmp 0x4040be
movzx eax, word [0x408028]
test ax, ax
je 0x404b34
mov dword [esp], edi
call sub.msvcrt.dll_exit
mov dword [esp], 0
call sub.msvcrt.dll_exit
push ebp
mov ebp, esp
sub esp, 0x18
mov word [0x40c086], 1
mov dword [esp], str._v1.11_NT_www.rodneybeede.com___nconnect_to_somewhere:_tnc___options__hostname_port_s___ports__...__nlisten_for_inbound:_tnc__l__p_port__options___hostname___port__noptions:
call fcn.00402513
mov dword [esp], str._t_d_t_tdetach_from_console__background_mode_n
call fcn.00402513
mov dword [esp], str._t_g_gateway_tsource_routing_hop_point_s___up_to_8_n_t_G_num_t_tsource_routing_pointer:_4__8__12__..._n_t_h_t_tthis_cruft_n_t_i_secs_t_tdelay_interval_for_lines_sent__ports_scanned_n_t_l_t_tlisten_mode__for_inbound_connects_n_t_L_t_tlisten_harder__re_listen_on_socket_close_n_t_n_t_tnumeric_only_IP_addresses__no_DNS_n_t_o_file_t_thex_dump_of_traffic_n_t_p_port_t_tlocal_port_number_n_t_r_t_trandomize_local_and_remote_ports_n_t_s_addr_t_tlocal_source_address
call fcn.00402513
mov dword [esp], str._t_u_t_tUDP_mode_n_t_v_t_tverbose__use_twice_to_be_more_verbose__n_t_w_secs_t_ttimeout_for_connects_and_final_net_reads_n_t_z_t_tzero_I_O_mode__used_for_scanning_
call fcn.00402513
mov dword [esp], str.port_numbers_can_be_individual_or_ranges:_m_n__inclusive_
call fcn.004025c9
mov eax, 0
leave
ret