Function at 0x18000e690
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 [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0xa40], rax
lea rcx, [0x18023820e]
call fcn.180141e90
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x18000e73c
lea rdx, str.Winsock_ba
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800079a0
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, [0x18000a740]
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]
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
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 0x18000e7dd
lea rdx, str.Soket_olu
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800079a0
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, [0x18000a740]
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]
nop
call sub.WS2_32.dll_WSACleanup
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
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 0x18000e8a3
lea rdx, str.Sunucuya_ba
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800079a0
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, [0x18000a740]
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]
nop
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
nop
call sub.WS2_32.dll_WSACleanup
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
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 0x18000e955
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.1800079a0
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, [0x18000a740]
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]
nop
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
nop
call sub.WS2_32.dll_WSACleanup
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
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 0x18000ea6a
movsxd rax, dword [rbp + 0x6f4]
mov qword [rbp + 0xa18], rax
cmp qword [rbp + 0xa18], 0x400
jae 0x18000e9a1
jmp 0x18000e9a7
call fcn.180142920
nop
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.1800079a0
lea rdx, [rbp + 0x2e0]
mov rcx, rax
call fcn.1800079a0
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a740]
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]
nop
lea rdx, str.dasgksdkhgkds
lea rcx, [rbp + 0x2e0]
call sub.ucrtbased.dll_strcmp
test eax, eax
je 0x18000ea65
lea rdx, str.Beklenmeyen_bir_mesaj_al
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800079a0
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a740]
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]
nop
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
nop
call sub.WS2_32.dll_WSACleanup
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov dl, 1
lea rcx, [0x18021f91f]
call fcn.1800125b0
nop
jmp 0x18000eb1f
cmp dword [rbp + 0x6f4], 0
jne 0x18000eab3
lea rdx, str.Sunucu_ba
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800079a0
mov qword [rbp + 0xa28], rax
lea rdx, [0x18000a740]
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]
nop
mov dl, 1
lea rcx, [0x18021f91f]
call fcn.1800125b0
nop
jmp 0x18000eb1f
lea rdx, str.Sunucudan_veri_al
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800079a0
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, [0x18000a740]
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]
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov dl, 1
lea rcx, [0x18021f91f]
call fcn.1800125b0
nop
mov rcx, qword [rbp + 0x228]
call sub.WS2_32.dll_closesocket
nop
call sub.WS2_32.dll_WSACleanup
nop
mov dl, 1
lea rcx, [0x18021f91f]
call fcn.1800125b0
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180141c60
mov rax, rdi
mov rcx, qword [rbp + 0xa40]
xor rcx, rbp
call fcn.1801420e0
lea rsp, [rbp + 0xa58]
pop rdi
pop rbp
ret