Function at 0x18000e050
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0xa78
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1d6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18021c400]
xor rax, rbp
mov qword [rbp + 0xa40], rax
lea rcx, [0x18023520a]
call fcn.18013e710
lea rdx, [rbp + 0x10]
mov cx, 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x18000e0f9
lea rdx, str.Winsock_ba_lat_lamad_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007510
mov qword [rbp + 0xa28], rax
mov edx, dword [rbp + 0x1c4]
mov rcx, qword [rbp + 0xa28]
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 qword [rbp + 0xa30], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa30]
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]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rax, str.160.20.109.58
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x204], 0x102d
mov r8d, 6
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0xffffffffffffffff
jne 0x18000e197
lea rdx, str.Soket_olu_turulamad_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007510
mov qword [rbp + 0xa28], rax
call sub.WS2_32.dll_WSAGetLastError
mov dword [rbp + 0xa30], eax
mov edx, dword [rbp + 0xa30]
mov rcx, qword [rbp + 0xa28]
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 qword [rbp + 0xa38], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa38]
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]
call sub.WS2_32.dll_WSACleanup
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
mov eax, 2
mov word [rbp + 0x248], ax
mov rcx, qword [rbp + 0x1e8]
call sub.WS2_32.dll_inet_addr
mov dword [rbp + 0x24c], eax
mov cx, 0x102d
call sub.WS2_32.dll_htons
mov word [rbp + 0x24a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x248]
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_connect
mov dword [rbp + 0x274], eax
cmp dword [rbp + 0x274], 0xffffffff
jne 0x18000e259
lea rdx, str.Sunucuya_ba_lan_lamad_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007510
mov qword [rbp + 0xa28], rax
call sub.WS2_32.dll_WSAGetLastError
mov dword [rbp + 0xa30], eax
mov edx, dword [rbp + 0xa30]
mov rcx, qword [rbp + 0xa28]
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 qword [rbp + 0xa38], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa38]
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]
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rax, str.nkfjskrowo
mov qword [rbp + 0x298], rax
mov rcx, qword [rbp + 0x298]
call sub.ucrtbased.dll_strlen
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rbp + 0x298]
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_send
mov dword [rbp + 0x2b4], eax
cmp dword [rbp + 0x2b4], 0xffffffff
jne 0x18000e307
lea rdx, str.Mesaj_g
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007510
mov qword [rbp + 0xa28], rax
call sub.WS2_32.dll_WSAGetLastError
mov dword [rbp + 0xa30], eax
mov edx, dword [rbp + 0xa30]
mov rcx, qword [rbp + 0xa28]
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 qword [rbp + 0xa38], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa38]
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]
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x2e0]
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_recv
mov dword [rbp + 0x6f4], eax
cmp dword [rbp + 0x6f4], 0
jle 0x18000e415
movsxd rax, dword [rbp + 0x6f4]
mov qword [rbp + 0xa18], rax
cmp qword [rbp + 0xa18], 0x400
jae 0x18000e353
jmp 0x18000e358
call fcn.18013f1a0
mov rax, qword [rbp + 0xa18]
mov byte [rbp + rax + 0x2e0], 0
lea rdx, str.Sunucudan_gelen_cevap:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180007510
lea rdx, [rbp + 0x2e0]
mov rcx, rax
call fcn.180007510
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa28]
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, str.dasgksdkhgkds
lea rcx, [rbp + 0x2e0]
call sub.ucrtbased.dll_strcmp
test eax, eax
je 0x18000e410
lea rdx, str.Beklenmeyen_bir_mesaj_al_nd_._Ba_lant__kapat_l_yor.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007510
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa28]
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]
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
mov dl, 1
lea rcx, [0x18021c84f]
call fcn.180011e40
jmp 0x18000e4c5
cmp dword [rbp + 0x6f4], 0
jne 0x18000e45c
lea rdx, str.Sunucu_ba_lant_y__kapatt_.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007510
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa28]
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]
mov dl, 1
lea rcx, [0x18021c84f]
call fcn.180011e40
jmp 0x18000e4c5
lea rdx, str.Sunucudan_veri_al_namad_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180007510
mov qword [rbp + 0xa28], rax
call sub.WS2_32.dll_WSAGetLastError
mov dword [rbp + 0xa30], eax
mov edx, dword [rbp + 0xa30]
mov rcx, qword [rbp + 0xa28]
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 qword [rbp + 0xa38], rax
lea rdx, [0x18000a280]
mov rcx, qword [rbp + 0xa38]
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]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
mov dl, 1
lea rcx, [0x18021c84f]
call fcn.180011e40
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov dl, 1
lea rcx, [0x18021c84f]
call fcn.180011e40
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.18013e4e0
mov rax, rdi
mov rcx, qword [rbp + 0xa40]
xor rcx, rbp
call fcn.18013e960
lea rsp, [rbp + 0xa58]
pop rdi
pop rbp
ret