Function at 0x140001950
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 [0x140026040]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov rsi, rdx
mov rdi, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rdi + 0x18]
test eax, eax
je 0x140001a28
cmp rcx, 0xf
jbe 0x1400019c9
lea rdx, [rcx + 1]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400019c4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c60
mov rcx, r8
call fcn.140007394
xor ebp, ebp
mov qword [rdi + 0x18], send
mov qword [rdi + 0x10], rbp
mov byte [rdi], bpl
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001a1e
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140001a0e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c60
mov rcx, r8
call fcn.140007394
mov qword [rsi], rbp
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov eax, 1
jmp 0x140001c42
mov rax, rdi
cmp rcx, 0xf
jbe 0x140001a34
mov rax, qword [rdi]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
xor ebp, ebp
mov ebx, 2
mov qword [rsp + 0x28], rbp
mov word [rsp + 0x20], bx
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, 0xdd5a
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
xor r8d, r8d
lea edx, [rbp + 1]
mov ecx, ebx
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 0x140001b42
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140001ae5
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140001ae0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c60
mov rcx, r8
call fcn.140007394
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], send
mov byte [rdi], bpl
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001b38
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140001b28
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c60
mov rcx, r8
call fcn.140007394
mov qword [rsi], rbp
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov eax, 0xffffffff
jmp 0x140001c42
mov ebx, dword [rsi + 8]
lea rdx, [rsp + 0x1d0]
sub ebx, dword [rsi]
xor r9d, r9d
mov rcx, r15
mov qword [rsp + 0x220], r14
mov dword [rsp + 0x1d0], ebx
mov dword [rsp + 0x1d4], 0x2710
lea r8d, [r9 + 8]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsi]
sub ebx, eax
add ebx, 8
je 0x140001ba0
xor r9d, r9d
mov r8d, ebx
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
sub ebx, eax
cdqe
add r14, rax
test ebx, ebx
jne 0x140001b83
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rdi + 0x18]
mov r14, qword [rsp + 0x220]
cmp rdx, 0xf
jbe 0x140001bf1
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140001bec
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c60
mov rcx, r8
call fcn.140007394
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], send
mov byte [rdi], bpl
mov rcx, qword [rsi]
test rcx, rcx
je 0x140001c40
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140001c30
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001c60
mov rcx, r8
call fcn.140007394
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.140007330
add rsp, 0x1e0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14000e0cc
int3