Function at 0x140011519
Capabilities:
Execute command
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
jmp 0x140018730
push rbp
push rdi
mov eax, 0x3088
call fcn.140011163
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x3040], rax
lea rcx, [0x14002e0f6]
call fcn.14001174e
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400187bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x3034], eax
lea rdx, str.Error_WSAStartup__n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
mov ecx, dword [rbp + 0x3034]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov eax, 0xffffffff
jmp 0x140018cd0
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x2828], rax
cmp qword [rbp + 0x2828], 0xffffffffffffffff
jne 0x140018848
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x3034], eax
lea rdx, str.SOCKET___ERROR:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
mov ecx, dword [rbp + 0x3034]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400237b0]
mov rcx, rax
call fcn.1400110d2
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
jmp 0x140018cd0
mov eax, 2
mov word [rbp + 0x2868], ax
mov cx, 0x3e7
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x286a], ax
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x14001888e
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x286c], eax
jmp 0x140018934
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x2848], rax
cmp qword [rbp + 0x2848], 0
je 0x1400188d8
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x2848]
mov rcx, qword [rcx + 0x18]
mov edx, 4
imul rdx, rdx, 0
mov rax, qword [rcx + rax]
mov eax, dword [rdx + rax]
mov dword [rbp + 0x286c], eax
jmp 0x140018934
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x3034], eax
lea rdx, str.Unknown_Host:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
mov ecx, dword [rbp + 0x3034]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400237b0]
mov rcx, rax
call fcn.1400110d2
mov rcx, qword [rbp + 0x2828]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
jmp 0x140018cd0
xor eax, eax
cmp eax, 1
je 0x140018cae
lea rcx, [rbp + 0x2898]
call fcn.14001173f
nop
lea rdx, [0x1400237f8]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rbp + 0x2898]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140011028
lea rdx, [0x140023838]
lea rcx, [rbp + 0x2898]
call fcn.1400112df
movzx eax, al
test eax, eax
je 0x1400189ad
lea rcx, [rbp + 0x2898]
call fcn.14001116d
jmp 0x140018cae
lea rcx, [rbp + 0x2898]
call fcn.140011564
mov qword [rbp + 0x3038], rax
xor edx, edx
lea rcx, [rbp + 0x2898]
call fcn.1400110eb
mov dword [rsp + 0x28], socket
lea rcx, [rbp + 0x2868]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x3038]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x2828]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbp + 0x2904], socket
lea rdx, [0x140023840]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
lea rdx, [rbp + 0x2898]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140011028
lea rax, [rbp + 0x2f48]
mov qword [rbp + 0x2f88], rax
lea rdx, [rbp + 0x2898]
mov rcx, qword [rbp + 0x2f88]
call fcn.140011109
mov qword [rbp + 0x3038], rax
mov rcx, qword [rbp + 0x3038]
call fcn.14001162c
movzx eax, al
test eax, eax
je 0x140018a9f
lea rdx, [0x140023858]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0x2898]
call fcn.14001116d
jmp 0x140018934
mov r8d, 0xa
xor edx, edx
lea rcx, [rbp + 0x2898]
call fcn.14001123a
mov dword [0x140028470], eax
lea rdx, [0x140023890]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
lea rdx, [rbp + 0x2898]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140011028
lea rax, [rbp + 0x2fa8]
mov qword [rbp + 0x2fe8], rax
lea rdx, [rbp + 0x2898]
mov rcx, qword [rbp + 0x2fe8]
call fcn.140011109
mov qword [rbp + 0x3038], rax
mov rcx, qword [rbp + 0x3038]
call fcn.14001162c
movzx eax, al
test eax, eax
je 0x140018b4f
lea rdx, [0x140023858]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0x2898]
call fcn.14001116d
jmp 0x140018934
mov r8d, 0xa
xor edx, edx
lea rcx, [rbp + 0x2898]
call fcn.14001123a
mov dword [0x140028474], eax
mov dword [rsp + 0x28], socket
lea rax, [rbp + 0x2868]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 8
lea rdx, [0x140028470]
mov rcx, qword [rbp + 0x2828]
call qword [sym.imp.WS2_32.dll_sendto]
lea rax, [rbp + 0x2904]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28d8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x2800
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x2828]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x2924], eax
cmp dword [rbp + 0x2924], 0xffffffff
jne 0x140018c4e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x3034], eax
lea rdx, str.recform_error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
mov ecx, dword [rbp + 0x3034]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400237b0]
mov rcx, rax
call fcn.1400110d2
mov rcx, qword [rbp + 0x2828]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rbp + 0x3004], 0xffffffff
lea rcx, [rbp + 0x2898]
call fcn.14001116d
mov eax, dword [rbp + 0x3004]
jmp 0x140018cd0
movsxd rax, dword [rbp + 0x2924]
mov qword [rbp + 0x3028], rax
cmp qword [rbp + 0x3028], 0x2800
jae 0x140018c6b
jmp 0x140018c70
call fcn.140011569
mov rax, qword [rbp + 0x3028]
mov byte [rbp + rax + 0x10], 0
lea rdx, [rbp + 0x10]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d2
lea rdx, [0x14001104b]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0x2898]
call fcn.14001116d
jmp 0x140018934
mov rcx, qword [rbp + 0x2828]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400231d0]
call fcn.140011609
mov rax, rdi
mov rcx, qword [rbp + 0x3040]
xor rcx, rbp
call fcn.140011384
lea rsp, [rbp + 0x3058]
pop rdi
pop rbp
ret