Function at 0x403680
Capabilities:
Read file on windows
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00401e30
push 0x10
call fcn.00402260
push 0x10
mov dword [0x40fc94], eax
call fcn.00402260
push 0x2000
mov dword [0x40fc98], eax
call fcn.00402260
push 0x2000
mov dword [0x40ffc4], eax
call fcn.00402260
push 0x104
mov dword [0x40ffc0], eax
call fcn.00402260
push 0x104
mov dword [0x40ffcc], eax
call fcn.00402260
push 0x4a
mov dword [0x40ffd0], eax
call fcn.00402260
push 1
mov dword [0x40fca4], eax
call fcn.0040412f
mov ebx, dword [esp + 0x54]
mov dword [0x40ffc8], eax
mov byte [eax], 1
add esp, 0x20
mov dword [0x40fcd4], ebp
mov dword [0x40c2dc], 4
mov edi, dword [esp + 0x30]
cmp edi, 1
jne 0x403834
mov esi, dword [ebx]
push 0x200
call fcn.00402260
mov ebx, eax
push 0x2000
mov dword [esp + 0x3c], ebx
mov dword [ebx], esi
call fcn.00402260
mov esi, eax
push str.Cmd_line:
push 0x40cf70
mov dword [ebx + 4], esi
call fcn.004041e1
push 0x40cf70
call fcn.00404385
push 0x2000
push esi
push ebp
call fcn.0040910f
add esp, 0x20
cmp eax, ebp
mov dword [0x40fc80], eax
ja 0x40379f
push str.wrong
call fcn.004021f0
mov eax, dword [0x40fc80]
add esp, 4
push eax
push esi
call fcn.004022b0
add esp, 8
cmp eax, ebp
je 0x4037b3
sub dword [0x40fc80], eax
mov ecx, dword [0x40fc80]
cmp ecx, ebp
je 0x4037d3
mov edi, dword [0x40ffc4]
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
push 0xa
push ecx
call fcn.00404a90
add esp, 8
cmp eax, ebp
je 0x4037e8
mov byte [eax], 0
mov edx, dword [ebx + 4]
push 0xd
push edx
call fcn.00404a90
add esp, 8
cmp eax, ebp
je 0x4037fd
mov byte [eax], 0
mov eax, dword [ebx + 4]
mov esi, 2
inc eax
mov cl, byte [eax]
test cl, cl
je 0x40382e
lea edx, [ebx + 8]
cmp cl, 0x20
jne 0x403819
mov byte [eax], 0
jmp 0x403826
mov cl, byte [eax - 1]
test cl, cl
jne 0x403826
mov dword [edx], eax
inc esi
add edx, 4
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40380f
mov dword [esp + 0x30], esi
mov edi, esi
push str.ade:g:G:hi:lLno:p:rs:tuvw:z
push ebx
push edi
call fcn.00401e10
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x403ae0
xor esi, esi
lea eax, [ebp - 0x47]
cmp eax, 0x33
ja case.0x403864.90
xor ecx, ecx
mov cl, byte [eax + 0x404028]
jmp dword [ecx*4 + 0x403fd8]
push str.all_A_records_NIY
call fcn.004021f0
add esp, 4
inc word [0x40fcac]
jmp 0x403ac4
mov edx, dword [0x40fc64]
mov dword [0x40fcc8], edx
jmp 0x403ac4
inc word [0x40fcb4]
mov dword [esp + 0x28], 1
jmp 0x403ac4
call dword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x403ac4
mov eax, dword [0x40fc64]
push eax
call fcn.0040480b
add esp, 4
cmp eax, esi
je 0x4038d9
mov ecx, eax
and ecx, 0x1c
cmp eax, ecx
jne 0x4038d9
mov dword [0x40c2dc], eax
jmp 0x403ac4
push eax
push str.invalid_hop_pointer__d__must_be_multiple_of_4___28
call fcn.004021f0
add esp, 8
jmp 0x403ac4
cmp dword [0x40fc7c], 8
jle 0x403902
push str.too_many__g_hops
call fcn.004021f0
add esp, 4
cmp dword [0x40fc9c], esi
jne 0x403919
push 0x28
call fcn.00402260
add esp, 4
mov dword [0x40fc9c], eax
mov eax, dword [0x40fc64]
xor edx, edx
mov dx, word [0x40fcb6]
push edx
push eax
call fcn.00402340
add esp, 8
cmp eax, esi
je 0x403944
mov ecx, dword [0x40fc7c]
mov edx, dword [0x40fc9c]
mov dword [edx + ecx*4], eax
inc dword [0x40fc7c]
jmp 0x403ac4
mov dword [0x40fcd4], esi
call 0x404060
mov eax, dword [0x40fc64]
push eax
call fcn.0040480b
and eax, 0xffff
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
mov dword [0x40fcb0], ecx
jne 0x403ac4
mov edx, dword [0x40fc64]
push edx
push str.invalid_interval_time__s
call fcn.004021f0
add esp, 8
jmp 0x403ac4
inc word [0x40fcb4]
jmp 0x403ac4
inc word [0x40fcb6]
jmp 0x403ac4
mov eax, dword [0x40fc64]
inc word [0x40fcb8]
mov dword [0x40fca8], eax
jmp 0x403ac4
mov ecx, dword [0x40fc64]
push esi
push ecx
call fcn.004025a0
add esp, 8
cmp ax, si
mov dword [esp + 0x10], eax
jne 0x403ac4
mov edx, dword [0x40fc64]
push edx
push str.invalid_local_port__s
call fcn.004021f0
add esp, 8
jmp 0x403ac4
inc word [0x40fcba]
jmp 0x403ac4
mov ecx, dword [0x40fc64]
xor eax, eax
mov ax, word [0x40fcb6]
push eax
push ecx
call fcn.00402340
add esp, 8
add eax, 0x1c0
mov dword [esp + 0x1c], eax
jmp 0x403ac4
inc word [0x40fccc]
jmp 0x403ac4
inc word [0x40fcbc]
jmp 0x403ac4
inc word [0x40fcbe]
jmp 0x403ac4
mov edx, dword [0x40fc64]
push edx
call fcn.0040480b
add esp, 4
cmp eax, esi
mov dword [0x40fcc0], eax
ja 0x403a7d
mov eax, dword [0x40fc64]
push eax
push str.invalid_wait_time__s
call fcn.004021f0
add esp, 8
push 8
call fcn.00402260
push 8
mov dword [0x40fc8c], eax
call fcn.00402260
mov edx, dword [0x40fc8c]
mov ecx, dword [0x40fcc0]
mov dword [0x40fc90], eax
add esp, 8
mov dword [edx], ecx
jmp 0x403ac4
inc word [0x40fcc4]
jmp 0x403ac4
push str.nc__h_for_help
mov dword [0x40fcd4], esi
call fcn.004021f0
add esp, 4
push str.ade:g:G:hi:lLno:p:rs:tuvw:z
push ebx
push edi
call fcn.00401e10
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x403850
jmp 0x403ae2
xor esi, esi
cmp word [0x40fcba], si
je 0x403b08
push esi
call fcn.004049a1
push eax
call fcn.00404816
push 0x10000
call fcn.00402260
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [0x40fcc8], esi
je 0x403b28
push esi
call fcn.00409df3
add esp, 4
mov word [0x40fcb8], si
mov dword [0x40fc78], esi
jmp 0x403b75
cmp word [0x40fcb8], si
je 0x403b75
mov eax, dword [0x40fca8]
push 0x1b4
push 0x301
push eax
call fcn.0040a909
add esp, 0xc
cmp eax, esi
mov dword [0x40fc78], eax
jg 0x403b66
mov ecx, dword [0x40fca8]
push ecx
push str.cant_open__s
call fcn.004021f0
add esp, 8
push 0x64
call fcn.00402260
add esp, 4
mov dword [0x40fca8], eax
mov edx, dword [0x40fc68]
mov eax, dword [ebx + edx*4]
cmp eax, esi
je 0x403b9b
xor ecx, ecx
mov cx, word [0x40fcb6]
push ecx
push eax
call fcn.00402340
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x403b9f
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x403bb4
add eax, 0x1c0
cmp eax, esi
je 0x403bb4
mov edi, eax
mov dword [esp + 0x20], edi
jmp 0x403bb8
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x403bc2
inc dword [0x40fc68]
cmp word [0x40fcb4], si
mov dword [0x40fcd4], esi
je 0x403ca9
mov edx, dword [0x40fc68]
xor esi, esi
mov eax, dword [ebx + edx*4]
test eax, eax
je 0x403c0b
push esi
push eax
call fcn.004025a0
mov esi, eax
add esp, 8
test si, si
jne 0x403c0b
mov eax, dword [0x40fc68]
mov ecx, dword [ebx + eax*4]
push ecx
push str.invalid_port__s
call fcn.004021f0
add esp, 8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
and edx, 0xffff
and esi, 0xffff
push edx
push eax
push esi
push edi
call fcn.00402af0
add esp, 0x10
mov dword [0x40c2c4], eax
test eax, eax
jle 0x403c9a
mov ecx, dword [0x40fcc8]
test ecx, ecx
je 0x403c55
push eax
call fcn.00401000
mov eax, dword [0x40fcc8]
add esp, 4
test eax, eax
jne 0x403c60
mov eax, dword [0x40c2c4]
push eax
call fcn.00403160
add esp, 4
mov ebp, eax
mov esi, 1
cmp word [0x40fcbe], si
jbe 0x403c89
mov ecx, dword [0x40fc84]
mov edx, dword [0x40fc88]
push ecx
push edx
push str._sent__d__rcvd__d
call fcn.00402150
add esp, 0xc
cmp dword [esp + 0x28], esi
jne 0x403fbb
xor ebp, ebp
jmp 0x40372c
push str.no_connection
call fcn.004021f0
add esp, 4
xor esi, esi
cmp edi, esi
jne 0x403cba
push str.no_destination
call fcn.004021f0
add esp, 4
mov eax, dword [0x40fc68]
cmp dword [ebx + eax*4], esi
jne 0x403cd1
push str.no_port_s__to_connect_to
call fcn.004021f0
add esp, 4
mov eax, dword [0x40fc68]
cmp dword [ebx + eax*4 + 4], esi
je 0x403ce3
mov word [0x40c2e0], si
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x403f6e
push 0x2d
push eax
xor esi, esi
call fcn.00404a90
mov edi, eax
add esp, 8
test edi, edi
je 0x403d2c
mov byte [edi], 0
inc edi
push esi
push edi
call fcn.004025a0
mov esi, eax
add esp, 8
test si, si
jne 0x403d2c
push edi
push str.invalid_port__s
call fcn.004021f0
add esp, 8
mov edx, dword [0x40fc68]
mov eax, dword [esp + 0x34]
push 0
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004025a0
mov edi, eax
add esp, 8
test di, di
mov dword [esp + 0x18], edi
jne 0x403d6a
mov edx, dword [0x40fc68]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + edx*4]
push ecx
push str.invalid_port__s
call fcn.004021f0
add esp, 8
cmp si, di
jbe 0x403ebb
cmp word [0x40fcba], 0
mov word [0x40c2e0], 0
mov edi, esi
je 0x403daf
mov edx, dword [esp + 0x18]
and esi, 0xffff
push esi
mov esi, dword [esp + 0x28]
and edx, 0xffff
push edx
push esi
call fcn.00402730
push esi
call fcn.004026e0
add esp, 0x10
mov edi, eax
cmp word [esp + 0x18], di
ja 0x403f54
cmp word [esp + 0x10], 0
jne 0x403de0
cmp word [0x40fcba], 0
je 0x403de0
call fcn.00404820
mov ebx, eax
cmp bx, 0x2000
jae 0x403de0
add ebx, 0x2000
and edi, 0xffff
push edi
push 0
call fcn.004025a0
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov edi, eax
mov eax, ebx
mov esi, edi
and eax, 0xffff
and esi, 0xffff
push eax
push ecx
push esi
push ebp
call fcn.004027a0
add esp, 0x18
mov dword [0x40c2c4], eax
test eax, eax
jle 0x403ec4
cmp word [0x40fcc4], 0
je 0x403e43
cmp word [0x40fcbc], 0
je 0x403e43
push ebp
push eax
call fcn.00402ed0
add esp, 8
mov dword [0x40c2c4], eax
test eax, eax
jle 0x403ec4
xor ebp, ebp
mov eax, 0x40ca60
cmp word [0x40fcbc], bp
jne 0x403e5c
mov eax, str.open
mov edx, dword [0x40fca4]
push eax
mov eax, dword [esp + 0x18]
push edx
push esi
lea ecx, [eax + 0x100]
push ecx
push eax
push str._s___s___d___s___s
call fcn.00402150
mov eax, dword [0x40fcc8]
add esp, 0x18
test eax, eax
je 0x403e96
mov edx, dword [0x40c2c4]
push edx
call fcn.00401000
add esp, 4
cmp word [0x40fcc4], 0
jne 0x403f0a
mov eax, dword [0x40fcc8]
test eax, eax
jne 0x403f0a
mov eax, dword [0x40c2c4]
push eax
call fcn.00403160
add esp, 4
mov ebp, eax
jmp 0x403f0a
mov edi, dword [esp + 0x18]
jmp 0x403dba
cmp word [0x40c2e0], 0
mov ebp, 1
jne 0x403ee9
cmp word [0x40fcbe], bp
ja 0x403ee9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274d
je 0x403f0a
mov eax, dword [esp + 0x14]
mov ecx, dword [0x40fca4]
push ecx
push esi
lea edx, [eax + 0x100]
push edx
push eax
push str._s___s___d___s_
call fcn.00402150
add esp, 0x14
mov eax, dword [0x40c2c4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x40fcb0]
test eax, eax
je 0x403f28
push eax
call fcn.00404594
add esp, 4
cmp word [0x40fcba], 0
je 0x403f43
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004026e0
add esp, 4
mov edi, eax
jmp 0x403f49
add edi, 0xffff
cmp word [esp + 0x18], di
jbe 0x403dba
mov eax, dword [0x40fc68]
mov edx, dword [esp + 0x34]
inc eax
mov dword [0x40fc68], eax
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x403cf6
mov esi, 1
mov dword [0x40fcd4], 0
cmp word [0x40fcbe], si
jbe 0x403fa0
mov eax, dword [0x40fc84]
mov ecx, dword [0x40fc88]
push eax
push ecx
push str.sent__d__rcvd__d
call fcn.00402150
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [esp + 0x28], esi
jne 0x403fc1
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
xor ebp, ebp
jmp 0x403730
push ebp
call fcn.004044bf
cmp word [0x40c2e0], 0
je 0x403fd1
push ebp
call fcn.004044bf
push 0
call fcn.004044bf
mov ah, 0x38
inc eax
add byte [ebp + 0x6b004038], dl
cmp byte [eax], al
test eax, 0x84004038
cmp byte [eax], al
in al, dx
cmp byte [eax], al
dec edi
cmp dword [eax], eax
pop edx
cmp dword [eax], eax
sahf
cmp dword [eax], eax
stosb byte es:[edi], al
cmp dword [eax], eax
mov dh, 0x39
inc eax
add ah, cl
cmp dword [eax], eax
add bh, byte [edx]
inc eax
add byte [esi], cl
cmp al, byte [eax]
xor al, 0x3a
inc eax
add byte [eax + 0x3a], al
inc eax
add byte [ecx + 0x3a], cl
inc eax
add byte [edx + 0x3a], dl
inc eax
add byte [eax - 0x4effbfc6], ch
cmp al, byte [eax]
add byte [ebx], dl
adc edx, dword [ebx]
adc eax, dword [ecx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
adc edx, dword [ebx]
add dl, byte [ebx]
adc eax, dword [ebx]
add al, 0x13
add eax, 0x13130706
or byte [ebx], dl
or dword [edx], ecx
or edx, dword [ebx]
or al, 0xd
push cs
movups xmm2, xmmword [ecx]
adc edx, dword [ebx]
adc dl, byte [eax + 0x68909090]
cwde
into
inc eax
add byte [esi - 0x39], ah
add eax, 0x40fcbe
add dword [eax], eax
call fcn.00402150
push str._t_d_t_tdetach_from_console__background_mode_n
call fcn.00402150
push str._t_e_prog_t_tinbound_program_to_exec__dangerous___
call fcn.00402150
push 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.00402150
push str._t_t_t_tanswer_TELNET_negotiation
call fcn.00402150
push 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.00402150
push str.port_numbers_can_be_individual_or_ranges:_m_n__inclusive_
call fcn.004021f0
add esp, 0x1c
xor eax, eax
ret