Function at 0x4049d0
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.00405df0
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.004028ec
mov dword [esp], 0x10
call fcn.00402fbb
mov dword [0x40a044], eax
mov dword [esp], 0x10
call fcn.00402fbb
mov dword [0x40a048], eax
mov dword [esp], 0x2000
call fcn.00402fbb
mov dword [0x40a148], eax
mov dword [esp], 0x2000
call fcn.00402fbb
mov dword [0x40a140], eax
mov dword [esp], 0x104
call fcn.00402fbb
mov dword [0x40a14c], eax
mov dword [esp], 0x104
call fcn.00402fbb
mov dword [0x40a154], eax
mov dword [esp], 0x4a
call fcn.00402fbb
mov dword [0x40a054], eax
mov dword [esp], 1
call sub.msvcrt.dll_malloc
mov dword [0x40a150], eax
mov eax, dword [0x40a150]
mov byte [eax], 1
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov dword [0x407020], 4
jmp 0x404ae3
nop
jmp 0x404ae3
nop
cmp dword [esi], 1
jne 0x404f7a
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov dword [esp], 0x200
call fcn.00402fbb
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], ebx
mov dword [esp], 0x2000
call fcn.00402fbb
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 [0x40a030], eax
mov eax, dword [0x40a030]
test eax, eax
jne 0x404b85
mov dword [esp], str.wrong
call fcn.00402ea2
mov eax, dword [0x40a030]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403015
mov edi, eax
test edi, edi
je 0x404baf
mov edx, dword [0x40a030]
mov eax, edi
mov ecx, edx
sub ecx, eax
mov eax, ecx
mov dword [0x40a030], eax
mov eax, dword [0x40a030]
test eax, eax
je 0x404bd8
mov edx, dword [0x40a030]
mov eax, edi
lea ecx, [ebx + eax]
mov eax, dword [0x40a148]
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 0x404bf9
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 0x404c1a
mov byte [ebx], 0
mov eax, dword [esi + 4]
add eax, 4
mov ebx, dword [eax]
add ebx, 1
mov edi, 2
jmp 0x404c52
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x404c38
mov byte [ebx], 0
jmp 0x404c4f
lea eax, [ebx - 1]
movzx eax, byte [eax]
test al, al
jne 0x404c4f
mov eax, edi
shl eax, 2
add eax, dword [esi + 4]
mov dword [eax], ebx
add edi, 1
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x404c2c
mov dword [esi], edi
jmp 0x404f7a
lea eax, [edi - 0x47]
cmp eax, 0x33
ja case.0x404c73.72
mov eax, dword [eax*4 + 0x408af4]
jmp eax
mov dword [esp], str.all_A_records_NIY
call fcn.00402ea2
movzx eax, word [0x40a05c]
add eax, 1
mov word [0x40a05c], ax
jmp 0x404f7a
mov eax, dword [0x40a008]
mov dword [0x40a078], eax
jmp 0x404f7a
movzx eax, word [0x40a064]
add eax, 1
mov word [0x40a064], ax
mov dword [ebp - 0x34], 1
jmp 0x404f7a
call sub.KERNEL32.dll_FreeConsole
jmp 0x404f7a
mov eax, dword [0x40a008]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov edi, eax
test edi, edi
je 0x404cf2
mov eax, edi
and eax, 0x1c
cmp eax, edi
jne 0x404cf2
mov dword [0x407020], edi
jmp 0x404f7a
mov dword [esp + 4], edi
mov dword [esp], str.invalid_hop_pointer__d__must_be_multiple_of_4___28
call fcn.00402ea2
jmp 0x404f7a
mov eax, dword [0x40a02c]
cmp eax, 8
jle 0x404d1d
mov dword [esp], str.too_many__g_hops
call fcn.00402ea2
mov eax, dword [0x40a04c]
test eax, eax
jne 0x404d37
mov dword [esp], 0x28
call fcn.00402fbb
mov dword [0x40a04c], eax
movzx eax, word [0x40a066]
movzx edx, ax
mov eax, dword [0x40a008]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004030ba
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x404d71
mov eax, dword [0x40a04c]
mov edx, dword [0x40a02c]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [ebp - 0x40]
mov dword [edx], eax
mov eax, dword [0x40a02c]
add eax, 1
mov dword [0x40a02c], eax
jmp 0x404f7a
call sub.msvcrt.dll__errno
mov dword [eax], 0
call 0x4055b4
mov eax, dword [0x40a008]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
and eax, 0xffff
mov dword [0x40a060], eax
mov eax, dword [0x40a060]
imul eax, eax, 0x3e8
mov dword [0x40a060], eax
mov eax, dword [0x40a060]
test eax, eax
jne 0x404f76
mov eax, dword [0x40a008]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_interval_time__s
call fcn.00402ea2
jmp 0x404f7a
movzx eax, word [0x40a064]
add eax, 1
mov word [0x40a064], ax
jmp 0x404f7a
movzx eax, word [0x40a066]
add eax, 1
mov word [0x40a066], ax
jmp 0x404f7a
mov eax, dword [0x40a008]
mov dword [0x40a058], eax
movzx eax, word [0x40a068]
add eax, 1
mov word [0x40a068], ax
jmp 0x404f7a
mov eax, dword [0x40a008]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004033fe
mov word [ebp - 0x26], ax
cmp word [ebp - 0x26], 0
jne 0x404f79
mov eax, dword [0x40a008]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_local_port__s
call fcn.00402ea2
jmp 0x404f7a
movzx eax, word [0x40a06a]
add eax, 1
mov word [0x40a06a], ax
jmp 0x404f7a
movzx eax, word [0x40a066]
movzx edx, ax
mov eax, dword [0x40a008]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004030ba
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0x1c0
mov dword [ebp - 0x20], eax
jmp 0x404f7a
movzx eax, word [0x40a07c]
add eax, 1
mov word [0x40a07c], ax
jmp 0x404f7a
movzx eax, word [0x40a06c]
add eax, 1
mov word [0x40a06c], ax
jmp 0x404f7a
movzx eax, word [0x40a06e]
add eax, 1
mov word [0x40a06e], ax
jmp 0x404f7a
mov eax, dword [0x40a008]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [0x40a070], eax
mov eax, dword [0x40a070]
test eax, eax
jne 0x404f1a
mov eax, dword [0x40a008]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_wait_time__s
call fcn.00402ea2
mov dword [esp], 8
call fcn.00402fbb
mov dword [0x40a03c], eax
mov dword [esp], 8
call fcn.00402fbb
mov dword [0x40a040], eax
mov eax, dword [0x40a03c]
mov edx, dword [0x40a070]
mov dword [eax], edx
jmp 0x404f7a
movzx eax, word [0x40a074]
add eax, 1
mov word [0x40a074], ax
jmp 0x404f7a
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov dword [esp], str.nc__h_for_help
call fcn.00402ea2
jmp 0x404f7a
nop
jmp 0x404f7a
nop
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.00401e58
mov edi, eax
cmp edi, 0xffffffff
jne 0x404c60
movzx eax, word [0x40a06a]
test ax, ax
je 0x404fcd
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov dword [esp], 0x10000
call fcn.00402fbb
mov dword [ebp - 0x30], eax
mov eax, dword [0x40a078]
test eax, eax
je 0x404ff5
mov dword [esp], 0
call sub.msvcrt.dll__close
mov word [0x40a068], 0
mov dword [0x40a028], 0
movzx eax, word [0x40a068]
test ax, ax
je 0x405052
mov eax, dword [0x40a058]
mov dword [esp + 8], 0x1b4
mov dword [esp + 4], 0x301
mov dword [esp], eax
call sub.msvcrt.dll__open
mov dword [0x40a028], eax
mov eax, dword [0x40a028]
test eax, eax
jg 0x405041
mov eax, dword [0x40a058]
mov dword [esp + 4], eax
mov dword [esp], str.cant_open__s
call fcn.00402ea2
mov dword [esp], 0x64
call fcn.00402fbb
mov dword [0x40a058], eax
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
test eax, eax
je 0x405089
movzx eax, word [0x40a066]
movzx edx, ax
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004030ba
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4050a6
mov eax, dword [ebp - 0x1c]
add eax, 0x1c0
test eax, eax
je 0x4050a6
mov eax, dword [ebp - 0x1c]
add eax, 0x1c0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4050b9
mov eax, dword [0x40a00c]
add eax, 1
mov dword [0x40a00c], eax
call sub.msvcrt.dll__errno
mov dword [eax], 0
movzx eax, word [0x40a064]
test ax, ax
je 0x4051d8
mov word [ebp - 0x2c], 0
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
test eax, eax
je 0x405130
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004033fe
mov word [ebp - 0x2c], ax
cmp word [ebp - 0x2c], 0
jne 0x405130
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_port__s
call fcn.00402ea2
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.00403a49
mov dword [0x407008], eax
mov eax, dword [0x407008]
test eax, eax
jle 0x4051cc
mov eax, dword [0x40a078]
test eax, eax
je 0x405176
mov eax, dword [0x407008]
mov dword [esp], eax
call fcn.00402102
mov eax, dword [0x40a078]
test eax, eax
jne 0x40518e
mov eax, dword [0x407008]
mov dword [esp], eax
call fcn.00404301
mov edi, eax
movzx eax, word [0x40a06e]
cmp ax, 1
jbe 0x4051ba
mov edx, dword [0x40a034]
mov eax, dword [0x40a038]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._sent__d__rcvd__d
call fcn.00402dec
cmp dword [ebp - 0x34], 1
je 0x404adf
mov dword [esp], edi
call sub.msvcrt.dll_exit
mov dword [esp], str.no_connection
call fcn.00402ea2
cmp dword [ebp - 0x24], 0
jne 0x4051ea
mov dword [esp], str.no_destination
call fcn.00402ea2
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
test eax, eax
jne 0x405207
mov dword [esp], str.no_port_s__to_connect_to
call fcn.00402ea2
mov eax, dword [0x40a00c]
add eax, 1
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
test eax, eax
je 0x405224
mov word [0x407024], 0
movzx eax, word [ebp - 0x26]
mov word [ebp - 0x28], ax
jmp 0x405539
mov word [ebp - 0x3a], 0
movzx eax, word [ebp - 0x3a]
mov word [ebp - 0x2a], ax
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
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 0x405293
mov byte [ebx], 0
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.004033fe
mov word [ebp - 0x2a], ax
cmp word [ebp - 0x2a], 0
jne 0x405293
mov dword [esp + 4], ebx
mov dword [esp], str.invalid_port__s
call fcn.00402ea2
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004033fe
mov word [ebp - 0x3a], ax
cmp word [ebp - 0x3a], 0
jne 0x4052d8
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_port__s
call fcn.00402ea2
movzx eax, word [ebp - 0x2a]
cmp ax, word [ebp - 0x3a]
jbe 0x405332
mov word [0x407024], 0
movzx eax, word [ebp - 0x2a]
mov word [ebp - 0x2c], ax
movzx eax, word [0x40a06a]
test ax, ax
je 0x40551e
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.00403665
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004035f2
mov word [ebp - 0x2c], ax
jmp 0x40551e
movzx eax, word [ebp - 0x3a]
mov word [ebp - 0x2c], ax
jmp 0x40551e
cmp word [ebp - 0x26], 0
jne 0x405369
movzx eax, word [0x40a06a]
test ax, ax
je 0x405369
call sub.msvcrt.dll_rand
mov word [ebp - 0x28], ax
cmp word [ebp - 0x28], 0x1fff
ja 0x405369
add word [ebp - 0x28], 0x2000
movzx eax, word [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004033fe
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.004036da
mov dword [0x407008], eax
mov eax, dword [0x407008]
test eax, eax
jle 0x4053e2
movzx eax, word [0x40a074]
test ax, ax
je 0x4053e2
movzx eax, word [0x40a06c]
test ax, ax
je 0x4053e2
mov eax, dword [0x407008]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00403f3d
mov dword [0x407008], eax
mov eax, dword [0x407008]
test eax, eax
jle 0x405460
mov edi, 0
mov eax, dword [0x40a054]
mov ebx, eax
movzx ecx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
add eax, 0x100
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._s___s___d___s__open
call fcn.00402dec
mov eax, dword [0x40a078]
test eax, eax
je 0x40543a
mov eax, dword [0x407008]
mov dword [esp], eax
call fcn.00402102
movzx eax, word [0x40a074]
test ax, ax
jne 0x4054be
mov eax, dword [0x40a078]
test eax, eax
jne 0x4054be
mov eax, dword [0x407008]
mov dword [esp], eax
call fcn.00404301
mov edi, eax
jmp 0x4054be
mov edi, 1
movzx eax, word [0x407024]
test ax, ax
jne 0x40548a
movzx eax, word [0x40a06e]
cmp ax, 1
ja 0x40548a
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x274d
je 0x4054be
mov eax, dword [0x40a054]
mov ebx, eax
movzx ecx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
add eax, 0x100
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._s___s___d___s_
call fcn.00402dec
mov eax, dword [0x407008]
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WSOCK32.DLL_shutdown
sub esp, 8
mov eax, dword [0x407008]
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
sub esp, 4
mov eax, dword [0x40a060]
test eax, eax
je 0x4054fc
mov eax, dword [0x40a060]
mov dword [esp], eax
call sub.msvcrt.dll__sleep
movzx eax, word [0x40a06a]
test ax, ax
je 0x405519
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004035f2
mov word [ebp - 0x2c], ax
jmp 0x40551e
sub word [ebp - 0x2c], 1
movzx eax, word [ebp - 0x3a]
cmp ax, word [ebp - 0x2c]
jbe 0x40533f
mov eax, dword [0x40a00c]
add eax, 1
mov dword [0x40a00c], eax
mov eax, dword [0x40a00c]
shl eax, 2
add eax, dword [esi + 4]
mov eax, dword [eax]
test eax, eax
jne 0x405231
call sub.msvcrt.dll__errno
mov dword [eax], 0
movzx eax, word [0x40a06e]
cmp ax, 1
jbe 0x405585
mov edx, dword [0x40a034]
mov eax, dword [0x40a038]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.sent__d__rcvd__d
call fcn.00402dec
call sub.WSOCK32.DLL_WSACleanup
cmp dword [ebp - 0x34], 1
je 0x404ae2
movzx eax, word [0x407024]
test ax, ax
je 0x4055a8
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 [0x40a06e], 1
mov dword [esp], str._v1.11_NT_www.vulnwatch.org_netcat___nconnect_to_somewhere:_tnc___options__hostname_port_s___ports__...__nlisten_for_inbound:_tnc__l__p_port__options___hostname___port__noptions:
call fcn.00402dec
mov dword [esp], str._t_d_t_tdetach_from_console__background_mode_n
call fcn.00402dec
mov dword [esp], str._t_e_prog_t_tinbound_program_to_exec__dangerous___
call fcn.00402dec
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.00402dec
mov dword [esp], str._t_t_t_tanswer_TELNET_negotiation
call fcn.00402dec
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.00402dec
mov dword [esp], str.port_numbers_can_be_individual_or_ranges:_m_n__inclusive_
call fcn.00402ea2
mov eax, 0
leave
ret