Function at 0x140011497
Capabilities:
Create thread
Initialize winsock library
Send data
Send data on socket

Disassembly:
jmp 0x1400161b0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x548
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xe6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x568]
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x500], rax
lea rcx, [0x14002a0f8]
call fcn.140011695
nop
lea rdx, [0x140020530]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_setlocale]
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001626a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x4f4], eax
lea rdx, [0x14001fc90]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110b4
mov ecx, dword [rbp + 0x4f4]
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, [0x140011046]
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
mov eax, 0xffffffff
jmp 0x1400165f4
lea rax, str.192.168.0.2
mov qword [rbp + 0x218], rax
lea rax, str.178.71.138.117
mov qword [rbp + 0x220], rax
mov dword [rbp + 0x244], 0x15b3
xor eax, eax
cmp eax, 1
je 0x1400165eb
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x140016311
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x4f4], eax
lea rdx, [0x140020610]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110b4
mov ecx, dword [rbp + 0x4f4]
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, [0x140011046]
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
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 0xffffffff
jmp 0x1400165f4
mov byte [rbp + 0x264], 0
lea rax, [rbp + 0x218]
mov qword [rbp + 0x288], rax
mov rax, qword [rbp + 0x288]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x288]
add rax, 0x10
mov qword [rbp + 0x2c8], rax
jmp 0x14001635a
mov rax, qword [rbp + 0x2a8]
add rax, 8
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2c8]
cmp qword [rbp + 0x2a8], rax
je 0x1400163ab
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax]
mov qword [rbp + 0x2e8], rax
mov r9d, dword [rbp + 0x244]
mov r8, qword [rbp + 0x2e8]
lea rdx, [rbp + 0x1e8]
lea rcx, [rbp + 0x1c8]
call fcn.140011749
test eax, eax
jne 0x1400163a9
mov byte [rbp + 0x264], 1
jmp 0x1400163ab
jmp 0x140016348
movzx eax, byte [rbp + 0x264]
test eax, eax
jne 0x1400163c7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x140016290
lea rdx, [0x140020640]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110b4
lea rdx, [0x140011046]
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 rdx, str.Enter__exit__to_disconnect
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110b4
lea rdx, [0x140011046]
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 rax, [rbp + 0x304]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x1c8]
lea r8, [0x1400111fe]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x328], rax
cmp qword [rbp + 0x328], 0
jne 0x1400164ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4f4], eax
lea rdx, [0x140020698]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110b4
mov ecx, dword [rbp + 0x4f4]
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___unsigned_long_int____ptr64]
lea rdx, [0x140011046]
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
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 0xffffffff
jmp 0x1400165f4
lea rcx, [rbp + 0x348]
call fcn.140011686
nop
xor eax, eax
cmp eax, 1
je 0x140016573
lea rdx, [rbp + 0x348]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.1400113b6
nop
lea rdx, str.exit
lea rcx, [rbp + 0x348]
call fcn.14001129e
movzx eax, al
test eax, eax
je 0x140016531
lea rcx, [rbp + 0x348]
call fcn.1400115b9
mov qword [rbp + 0x4f8], rax
lea rcx, [rbp + 0x348]
call fcn.140011091
xor r9d, r9d
mov rcx, qword [rbp + 0x4f8]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
nop
jmp 0x140016573
lea rcx, [rbp + 0x348]
call fcn.1400115b9
mov qword [rbp + 0x4f8], rax
lea rcx, [rbp + 0x348]
call fcn.140011091
xor r9d, r9d
mov rcx, qword [rbp + 0x4f8]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
nop
jmp 0x1400164b9
mov edx, 2
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_shutdown]
nop
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
lea rdx, [0x1400206c0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110b4
lea rdx, [0x140011046]
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 + 0x348]
call fcn.140011136
nop
jmp 0x140016290
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140020060]
call fcn.14001157d
mov rax, rdi
mov rcx, qword [rbp + 0x500]
xor rcx, rbp
call fcn.14001132f
lea rsp, [rbp + 0x518]
pop rdi
pop rbp
ret