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

Disassembly:
jmp 0x140017d80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x30]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400012ad
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
xor eax, eax
mov word [rbp + 0xe4], ax
xor eax, eax
mov word [rbp + 0x104], ax
xor eax, eax
mov word [rbp + 0x124], ax
xor eax, eax
mov word [rbp + 0x144], ax
xor eax, eax
mov word [rbp + 0x164], ax
mov qword [rbp + 0x188], 0
mov dword [rbp + 0x1a4], 0
call fcn.140001195
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000111d
mov qword [0x140029f08], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000111d
mov qword [0x140029f10], rax
mov ecx, 0x2000
call fcn.14000111d
mov qword [0x14002a770], rax
mov ecx, 0x2000
call fcn.14000111d
mov qword [0x14002a768], rax
mov ecx, 0x208
call fcn.14000111d
mov qword [0x14002a760], rax
mov ecx, 0x208
call fcn.14000111d
mov qword [0x14002a758], rax
mov ecx, 0x4a
call fcn.14000111d
mov qword [0x140029f28], rax
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [0x14002a750], rax
mov rax, qword [0x14002a750]
mov byte [rax], 1
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
mov dword [reloc.WS2_32.dll_connect], 4
cmp dword [rbp + 0x2a0], 1
jne 0x1400180d0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x2a8]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x28], rax
mov ecx, 0x400
call fcn.14000111d
mov qword [rbp + 0x2a8], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x2a8]
mov rdx, qword [rbp + 0x28]
mov qword [rcx + rax], rdx
mov ecx, 0x2000
call fcn.14000111d
mov qword [rbp + 0x28], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x2a8]
mov rdx, qword [rbp + 0x28]
mov qword [rcx + rax], rdx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.Cmd_line:
mov rcx, rax
call fcn.140001276
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_fflush]
mov r8d, 0x2000
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__read]
mov dword [0x140029eec], eax
cmp dword [0x140029eec], 0
ja 0x140017f8b
lea rcx, str.wrong
call fcn.140001046
mov edx, dword [0x140029eec]
mov rcx, qword [rbp + 0x28]
call fcn.1400010a5
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140017fb6
mov eax, dword [rbp + 4]
mov ecx, dword [0x140029eec]
sub ecx, eax
mov eax, ecx
mov dword [0x140029eec], eax
cmp dword [0x140029eec], 0
je 0x140017fe5
mov eax, dword [0x140029eec]
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x28]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [0x14002a770]
call sub.VCRUNTIME140D.dll_memcpy
mov eax, 8
imul rax, rax, 1
mov edx, 0xa
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + rax]
call sub.VCRUNTIME140D.dll_strchr
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140018015
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov eax, 8
imul rax, rax, 1
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + rax]
call sub.VCRUNTIME140D.dll_strchr
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140018045
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x2a8]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov dword [rbp + 4], 2
jmp 0x14001807c
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax]
test eax, eax
je 0x1400180c7
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x14001809e
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
jmp 0x140018071
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax - 1]
test eax, eax
jne 0x1400180c5
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x2a8]
mov rdx, qword [rbp + 0x28]
mov qword [rcx + rax*8], rdx
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
jmp 0x140018071
mov eax, dword [rbp + 4]
mov dword [rbp + 0x2a0], eax
lea r8, str.ade:g:G:hi:lLno:p:rs:tcuvw:z
mov rdx, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0x2a0]
call fcn.140001267
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x140018462
mov eax, dword [rbp + 4]
mov dword [rbp + 0x274], eax
mov eax, dword [rbp + 0x274]
sub eax, 0x47
mov dword [rbp + 0x274], eax
cmp dword [rbp + 0x274], 0x33
ja case.0x14001813b.19
movsxd rax, dword [rbp + 0x274]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x18ba8]
mov eax, dword [rcx + rax*4 + 0x18b58]
add rax, rcx
jmp rax
lea rcx, str.all_A_records_NIY
call fcn.140001046
movzx eax, word [0x140029f38]
inc ax
mov word [0x140029f38], ax
jmp 0x14001845d
mov rax, qword [0x140029bc0]
mov qword [0x140029f68], rax
jmp 0x14001845d
movzx eax, word [0x140029f40]
inc ax
mov word [0x140029f40], ax
mov dword [rbp + 0x1a4], 1
jmp 0x14001845d
call qword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x14001845d
mov rcx, qword [0x140029bc0]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400181c9
mov eax, dword [rbp + 4]
and eax, 0x1c
cmp dword [rbp + 4], eax
jne 0x1400181c9
mov eax, dword [rbp + 4]
mov dword [reloc.WS2_32.dll_connect], eax
jmp 0x1400181d8
mov edx, dword [rbp + 4]
lea rcx, str.invalid_hop_pointer__d__must_be_multiple_of_4___28
call fcn.140001046
jmp 0x14001845d
cmp dword [0x140029ee8], 8
jle 0x1400181f2
lea rcx, str.too_many__g_hops
call fcn.140001046
cmp qword [0x140029f18], 0
jne 0x14001820d
mov ecx, 0x50
call fcn.14000111d
mov qword [0x140029f18], rax
movzx eax, word [0x140029f44]
mov edx, eax
mov rcx, qword [0x140029bc0]
call fcn.1400012d5
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140018243
movsxd rax, dword [0x140029ee8]
mov rcx, qword [0x140029f18]
mov rdx, qword [rbp + 0x48]
mov qword [rcx + rax*8], rdx
mov eax, dword [0x140029ee8]
inc eax
mov dword [0x140029ee8], eax
jmp 0x14001845d
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
call fcn.14000100f
mov rcx, qword [0x140029bc0]
call qword [sym.imp.ucrtbased.dll_atoi]
and eax, 0xffff
mov dword [0x140029f3c], eax
imul eax, dword [0x140029f3c], 0x3e8
mov dword [0x140029f3c], eax
cmp dword [0x140029f3c], 0
jne 0x1400182ab
mov rdx, qword [0x140029bc0]
lea rcx, str.invalid_interval_time__s
call fcn.140001046
jmp 0x14001845d
movzx eax, word [0x140029f40]
inc ax
mov word [0x140029f40], ax
jmp 0x14001845d
movzx eax, word [0x140029f44]
inc ax
mov word [0x140029f44], ax
jmp 0x14001845d
mov rax, qword [0x140029bc0]
mov qword [0x140029f30], rax
movzx eax, word [0x140029f48]
inc ax
mov word [0x140029f48], ax
jmp 0x14001845d
xor edx, edx
mov rcx, qword [0x140029bc0]
call fcn.1400012b2
mov word [rbp + 0xe4], ax
movzx eax, word [rbp + 0xe4]
test eax, eax
jne 0x140018333
mov rdx, qword [0x140029bc0]
lea rcx, str.invalid_local_port__s
call fcn.140001046
jmp 0x14001845d
movzx eax, word [0x140029f4c]
inc ax
mov word [0x140029f4c], ax
jmp 0x14001845d
movzx eax, word [0x140029f44]
mov edx, eax
mov rcx, qword [0x140029bc0]
call fcn.1400012d5
mov qword [rbp + 0x88], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x88]
lea rax, [rcx + rax + 0x1c0]
mov qword [rbp + 0xa8], rax
jmp 0x14001845d
movzx eax, word [0x140029f60]
inc ax
mov word [0x140029f60], ax
jmp 0x14001845d
movzx eax, word [0x140029f50]
inc ax
mov word [0x140029f50], ax
jmp 0x14001845d
movzx eax, word [0x140029f54]
inc ax
mov word [0x140029f54], ax
jmp 0x14001845d
mov rcx, qword [0x140029bc0]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [0x140029f58], eax
cmp dword [0x140029f58], 0
ja 0x1400183ff
mov rdx, qword [0x140029bc0]
lea rcx, str.invalid_wait_time__s
call fcn.140001046
mov ecx, 8
call fcn.14000111d
mov qword [0x140029ef8], rax
mov ecx, 8
call fcn.14000111d
mov qword [0x140029f00], rax
mov rax, qword [0x140029ef8]
mov ecx, dword [0x140029f58]
mov dword [rax], ecx
jmp 0x14001845d
movzx eax, word [0x140029f5c]
inc ax
mov word [0x140029f5c], ax
jmp 0x14001845d
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
lea rcx, str.nc__h_for_help
call fcn.140001046
jmp 0x1400180d0
movzx eax, word [0x140029f4c]
test eax, eax
je 0x14001848d
xor ecx, ecx
call fcn.140019ff0
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
mov ecx, 0x10000
call fcn.14000111d
mov qword [rbp + 0x188], rax
cmp qword [0x140029f68], 0
je 0x1400184b2
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__close]
xor eax, eax
mov word [0x140029f48], ax
mov dword [0x140029ee4], 0
movzx eax, word [0x140029f48]
test eax, eax
je 0x140018508
mov r8d, 0x1b4
mov edx, 0x301
mov rcx, qword [0x140029f30]
call qword [sym.imp.ucrtbased.dll__open]
mov dword [0x140029ee4], eax
cmp dword [0x140029ee4], 0
jg 0x1400184f7
mov rdx, qword [0x140029f30]
lea rcx, str.cant_open__s
call fcn.140001046
mov ecx, 0x64
call fcn.14000111d
mov qword [0x140029f30], rax
movsxd rax, dword [0x140029bc8]
mov rcx, qword [rbp + 0x2a8]
cmp qword [rcx + rax*8], 0
je 0x140018541
movzx eax, word [0x140029f44]
movsxd rcx, dword [0x140029bc8]
mov edx, eax
mov rax, qword [rbp + 0x2a8]
mov rcx, qword [rax + rcx*8]
call fcn.1400012d5
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x140018573
mov rax, qword [rbp + 0x68]
add rax, 0x1c0
test rax, rax
je 0x140018573
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 0x1c0]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x14001858b
mov eax, dword [0x140029bc8]
inc eax
mov dword [0x140029bc8], eax
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
movzx eax, word [0x140029f40]
test eax, eax
je 0x1400186bd
xor eax, eax
mov word [rbp + 0x164], ax
movsxd rax, dword [0x140029bc8]
mov rcx, qword [rbp + 0x2a8]
cmp qword [rcx + rax*8], 0
je 0x14001860d
movsxd rax, dword [0x140029bc8]
xor edx, edx
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + rax*8]
call fcn.1400012b2
mov word [rbp + 0x164], ax
movzx eax, word [rbp + 0x164]
test eax, eax
jne 0x14001860d
movsxd rax, dword [0x140029bc8]
mov rcx, qword [rbp + 0x2a8]
mov rdx, qword [rcx + rax*8]
lea rcx, str.invalid_port__s
call fcn.140001046
movzx eax, word [rbp + 0xe4]
movzx ecx, word [rbp + 0x164]
mov r9d, eax
mov r8, qword [rbp + 0xa8]
mov edx, ecx
mov rcx, qword [rbp + 0xc8]
call fcn.140001271
mov dword [0x140029838], eax
cmp dword [0x140029838], 0
jle 0x1400186b1
cmp qword [0x140029f68], 0
je 0x14001865b
movsxd rax, dword [0x140029838]
mov rcx, rax
call fcn.140001082
cmp qword [0x140029f68], 0
jne 0x140018673
mov ecx, dword [0x140029838]
call fcn.140001145
mov dword [rbp + 4], eax
movzx eax, word [0x140029f54]
cmp eax, 1
jle 0x140018698
mov r8d, dword [0x140029ef0]
mov edx, dword [0x140029ef4]
lea rcx, str._sent__d__rcvd__d
call fcn.14000105f
cmp dword [rbp + 0x1a4], 1
jne 0x1400186a6
jmp 0x140017ebc
mov ecx, dword [rbp + 4]
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x1400186bd
lea rcx, str.no_connection
call fcn.140001046
cmp qword [rbp + 0xc8], 0
jne 0x1400186d3
lea rcx, str.no_destination
call fcn.140001046
movsxd rax, dword [0x140029bc8]
mov rcx, qword [rbp + 0x2a8]
cmp qword [rcx + rax*8], 0
jne 0x1400186f4
lea rcx, str.no_port_s__to_connect_to
call fcn.140001046
mov eax, dword [0x140029bc8]
inc eax
cdqe
mov rcx, qword [rbp + 0x2a8]
cmp qword [rcx + rax*8], 0
je 0x140018715
xor eax, eax
mov word [reloc.WS2_32.dll_accept], ax
movzx eax, word [rbp + 0xe4]
mov word [rbp + 0x104], ax
movsxd rax, dword [0x140029bc8]
mov rcx, qword [rbp + 0x2a8]
cmp qword [rcx + rax*8], 0
je 0x140018aec
xor eax, eax
mov word [rbp + 0x124], ax
movzx eax, word [rbp + 0x124]
mov word [rbp + 0x144], ax
movsxd rax, dword [0x140029bc8]
mov edx, 0x2d
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + rax*8]
call sub.VCRUNTIME140D.dll_strchr
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400187b9
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.1400012b2
mov word [rbp + 0x144], ax
movzx eax, word [rbp + 0x144]
test eax, eax
jne 0x1400187b9
mov rdx, qword [rbp + 0x28]
lea rcx, str.invalid_port__s
call fcn.140001046
movsxd rax, dword [0x140029bc8]
xor edx, edx
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + rax*8]
call fcn.1400012b2
mov word [rbp + 0x124], ax
movzx eax, word [rbp + 0x124]
test eax, eax
jne 0x140018802
movsxd rax, dword [0x140029bc8]
mov rcx, qword [rbp + 0x2a8]
mov rdx, qword [rcx + rax*8]
lea rcx, str.invalid_port__s
call fcn.140001046
movzx eax, word [rbp + 0x144]
movzx ecx, word [rbp + 0x124]
cmp eax, ecx
jle 0x14001886a
xor eax, eax
mov word [reloc.WS2_32.dll_accept], ax
movzx eax, word [rbp + 0x144]
mov word [rbp + 0x164], ax
movzx eax, word [0x140029f4c]
test eax, eax
je 0x140018868
movzx eax, word [rbp + 0x144]
movzx ecx, word [rbp + 0x124]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rbp + 0x188]
call fcn.14000128f
mov rcx, qword [rbp + 0x188]
call fcn.140001163
mov word [rbp + 0x164], ax
jmp 0x140018878
movzx eax, word [rbp + 0x124]
mov word [rbp + 0x164], ax
movzx eax, word [rbp + 0x124]
movzx ecx, word [rbp + 0x164]
cmp eax, ecx
jg 0x140018ad9
movzx eax, word [rbp + 0xe4]
test eax, eax
jne 0x1400188d7
movzx eax, word [0x140029f4c]
test eax, eax
je 0x1400188d7
call qword [sym.imp.ucrtbased.dll_rand]
and eax, 0xffff
mov word [rbp + 0x104], ax
movzx eax, word [rbp + 0x104]
cmp eax, 0x2000
jge 0x1400188d7
movzx eax, word [rbp + 0x104]
add eax, 0x2000
mov word [rbp + 0x104], ax
movzx eax, word [rbp + 0x164]
mov edx, eax
xor ecx, ecx
call fcn.1400012b2
mov word [rbp + 0x164], ax
movzx eax, word [rbp + 0x104]
movzx ecx, word [rbp + 0x164]
mov r9d, eax
mov r8, qword [rbp + 0xa8]
mov edx, ecx
mov rcx, qword [rbp + 0xc8]
call fcn.1400011ae
mov dword [0x140029838], eax
cmp dword [0x140029838], 0
jle 0x140018951
movzx eax, word [0x140029f5c]
test eax, eax
je 0x140018951
movzx eax, word [0x140029f50]
test eax, eax
je 0x140018951
mov rdx, qword [rbp + 0xc8]
mov ecx, dword [0x140029838]
call fcn.140001294
mov dword [0x140029838], eax
cmp dword [0x140029838], 0
jle 0x1400189f2
mov dword [rbp + 4], 0
mov rax, qword [0x140029f28]
movzx ecx, word [rbp + 0x164]
mov edx, 0x18
imul rdx, rdx, 0
mov r8, qword [rbp + 0x68]
lea rdx, [r8 + rdx + 0x100]
mov r8, qword [rbp + 0x68]
mov qword [rbp + 0x278], r8
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov r8, rdx
mov rax, qword [rbp + 0x278]
mov rdx, rax
lea rcx, str._s___s___d___s__open
call fcn.14000105f
cmp qword [0x140029f68], 0
je 0x1400189cd
movsxd rax, dword [0x140029838]
mov rcx, rax
call fcn.140001082
movzx eax, word [0x140029f5c]
test eax, eax
jne 0x1400189f0
cmp qword [0x140029f68], 0
jne 0x1400189f0
mov ecx, dword [0x140029838]
call fcn.140001145
mov dword [rbp + 4], eax
jmp 0x140018a6b
mov dword [rbp + 4], 1
movzx eax, word [reloc.WS2_32.dll_accept]
test eax, eax
jne 0x140018a1c
movzx eax, word [0x140029f54]
cmp eax, 1
jg 0x140018a1c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274d
je 0x140018a6b
mov rax, qword [0x140029f28]
movzx ecx, word [rbp + 0x164]
mov edx, 0x18
imul rdx, rdx, 0
mov r8, qword [rbp + 0x68]
lea rdx, [r8 + rdx + 0x100]
mov r8, qword [rbp + 0x68]
mov qword [rbp + 0x278], r8
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov r8, rdx
mov rax, qword [rbp + 0x278]
mov rdx, rax
lea rcx, str._s___s___d___s_
call fcn.14000105f
movsxd rax, dword [0x140029838]
mov edx, 2
mov rcx, rax
call sub.WS2_32.dll_shutdown
movsxd rax, dword [0x140029838]
mov rcx, rax
call sub.WS2_32.dll_closesocket
cmp dword [0x140029f3c], 0
je 0x140018aa3
mov ecx, dword [0x140029f3c]
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, word [0x140029f4c]
test eax, eax
je 0x140018ac3
mov rcx, qword [rbp + 0x188]
call fcn.140001163
mov word [rbp + 0x164], ax
jmp 0x140018ad4
movzx eax, word [rbp + 0x164]
dec ax
mov word [rbp + 0x164], ax
jmp 0x140018878
mov eax, dword [0x140029bc8]
inc eax
mov dword [0x140029bc8], eax
jmp 0x140018723
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
movzx eax, word [0x140029f54]
cmp eax, 1
jle 0x140018b1d
mov r8d, dword [0x140029ef0]
mov edx, dword [0x140029ef4]
lea rcx, str.sent__d__rcvd__d
call fcn.14000105f
call sub.WS2_32.dll_WSACleanup
cmp dword [rbp + 0x1a4], 1
jne 0x140018b30
jmp 0x140017ebc
movzx eax, word [reloc.WS2_32.dll_accept]
test eax, eax
je 0x140018b44
mov ecx, dword [rbp + 4]
call qword [sym.imp.ucrtbased.dll_exit]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
xor eax, eax
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret