Function at 0x18000e040
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.18013ebd0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x18000e0e9
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.180007530
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, [0x18000a2a0]
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 0x18000e187
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.180007530
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, [0x18000a2a0]
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 0x18000e249
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.180007530
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, [0x18000a2a0]
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 0x18000e2f7
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.180007530
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, [0x18000a2a0]
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 0x18000e405
movsxd rax, dword [rbp + 0x6f4]
mov qword [rbp + 0xa18], rax
cmp qword [rbp + 0xa18], 0x400
jae 0x18000e343
jmp 0x18000e348
call fcn.18013f660
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.180007530
lea rdx, [rbp + 0x2e0]
mov rcx, rax
call fcn.180007530
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a2a0]
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 0x18000e400
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.180007530
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a2a0]
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.180011e30
jmp 0x18000e4b5
cmp dword [rbp + 0x6f4], 0
jne 0x18000e44c
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.180007530
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a2a0]
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.180011e30
jmp 0x18000e4b5
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.180007530
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, [0x18000a2a0]
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.180011e30
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.180011e30
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.18013e9a0
mov rax, rdi
mov rcx, qword [rbp + 0xa40]
xor rcx, rbp
call fcn.18013ee20
lea rsp, [rbp + 0xa58]
pop rdi
pop rbp
ret