Function at 0x140001960
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x1e0
mov rax, qword [0x140021010]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov rsi, rdx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001a37
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400019d8
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400019d3
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c69
mov rcx, r8
call fcn.140007254
xor ebp, ebp
mov qword [rbx + 0x10], rbp
mov byte [rbx], bpl
mov qword [rbx + 0x18], send
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001a2d
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140001a1d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c69
mov rcx, r8
call fcn.140007254
mov qword [rsi], rbp
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov eax, 1
jmp 0x140001c4b
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x140001a44
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_gethostbyname]
xor ebp, ebp
mov edi, 2
mov qword [rsp + 0x28], rbp
mov word [rsp + 0x20], di
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x56ce
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
xor r8d, r8d
lea edx, [rbp + 1]
mov ecx, edi
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, rax
lea r8d, [rbp + 0x10]
lea rdx, [rsp + 0x20]
mov r15, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140001b4f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001af2
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001aed
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c69
mov rcx, r8
call fcn.140007254
mov qword [rbx + 0x10], rbp
mov byte [rbx], bpl
mov qword [rbx + 0x18], send
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001b45
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140001b35
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c69
mov rcx, r8
call fcn.140007254
mov qword [rsi], rbp
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov eax, 0xffffffff
jmp 0x140001c4b
mov edi, dword [rsi + 8]
lea rdx, [rsp + 0x1d0]
sub edi, dword [rsi]
xor r9d, r9d
mov rcx, r15
mov qword [rsp + 0x220], r14
mov dword [rsp + 0x1d0], edi
mov dword [rsp + 0x1d4], 0x2710
lea r8d, [r9 + 8]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsi]
sub edi, eax
add edi, 8
je 0x140001bad
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
sub edi, eax
cdqe
add r14, rax
test edi, edi
jne 0x140001b90
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbx + 0x18]
mov r14, qword [rsp + 0x220]
cmp rdx, 0x10
jb 0x140001bfa
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001bf5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c69
mov rcx, r8
call fcn.140007254
mov qword [rbx + 0x10], rbp
mov byte [rbx], bpl
mov qword [rbx + 0x18], send
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001c49
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140001c39
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c69
mov rcx, r8
call fcn.140007254
mov qword [rsi], rbp
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
xor eax, eax
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.1400071f0
add rsp, 0x1e0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14000c05c
int3