Function at 0x180018268
Capabilities:
Connect socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [r11 + 8]
lea r8d, [rax + 1]
mov word [rsp + 0x20], 2
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call fcn.180018f98
test eax, eax
mov ebx, eax
jne 0x18001851b
movzx r8d, byte [rsp + 0x260]
mov rcx, qword [rsi + 0x30]
lea rdx, [rsp + 0x140]
call fcn.180018f98
test eax, eax
mov ebx, eax
jne 0x18001851b
mov dl, byte [rsp + 0x260]
xor cl, cl
test dl, dl
je 0x1800182f8
movzx eax, cl
mov r8b, byte [rsp + rax + 0x140]
test r8b, r8b
je 0x180018300
add cl, 1
cmp cl, dl
jb 0x1800182df
jmp 0x180018300
mov r8b, byte [rsp + 0x260]
cmp cl, dl
mov rcx, qword [rsi + 0x30]
movzx ebx, r8b
mov eax, 0xff
lea rdx, [rsp + 0x268]
mov byte [rsp + 0x268], 5
cmove ebx, eax
xor r9d, r9d
lea r8d, [r9 + 2]
mov byte [rsp + 0x269], bl
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 2
je 0x180018345
mov ebx, 0x4d4
jmp 0x18001851b
test bl, bl
je 0x180018353
mov ebx, 0x57
jmp 0x18001851b
mov rcx, qword [rsi + 0x30]
lea rdx, [rsp + 0x30]
mov r8d, 4
call fcn.180018f98
test eax, eax
mov ebx, eax
jne 0x18001851b
cmp byte [rsp + 0x30], 5
lea edi, [rax + 4]
jne 0x1800184ee
cmp byte [rsp + 0x31], 1
jne 0x1800184ee
mov al, byte [rsp + 0x33]
cmp al, 1
je 0x180018465
cmp al, 3
jne 0x1800184ee
mov rcx, qword [rsi + 0x30]
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x34]
call fcn.180018f98
test eax, eax
mov ebx, eax
jne 0x1800184f3
lea edi, [rax + 5]
mov al, byte [rsp + 0x34]
test al, al
je 0x1800184ee
mov rcx, qword [rsi + 0x30]
lea rdx, [rsp + 0x35]
movzx r8d, al
call fcn.180018f98
test eax, eax
mov ebx, eax
jne 0x1800184f3
movzx edi, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x34]
lea rcx, [rsp + 0x35]
mov byte [rsp + rax + 0x35], bl
add edi, 5
call qword [sym.imp.WS2_32.dll_gethostbyname]
movzx ecx, byte [rsp + 0x34]
lea r8d, [rbx + 2]
mov rbp, rax
lea rdx, [rsp + rcx + 0x35]
mov rcx, qword [rsi + 0x30]
call fcn.180018f98
test eax, eax
mov ebx, eax
jne 0x1800184e0
add edi, 2
test rbp, rbp
je 0x1800184d1
cmp word [rbp + 0x10], 2
jne 0x1800184d1
cmp word [rbp + 0x12], 4
jne 0x1800184d1
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x24], eax
movzx eax, byte [rsp + 0x34]
movzx ecx, word [rsp + rax + 0x35]
mov word [rsp + 0x22], cx
jmp 0x180018494
mov rcx, qword [rsi + 0x30]
lea rdx, [rsp + 0x34]
mov r8d, 6
call fcn.180018f98
test eax, eax
mov ebx, eax
jne 0x1800184f3
lea edi, [rax + 0xa]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x22], ax
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov qword [rsi + 0x38], rax
je 0x1800184d8
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1800184e0
lea rcx, [rsi + 0x38]
call fcn.1800186f0
mov ebx, 0x4d0
jmp 0x1800184e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x18001851b
test ebx, ebx
jne 0x1800184f3
mov byte [rsp + 0x31], bl
jmp 0x1800184f8
mov ebx, 0x57
mov byte [rsp + 0x31], 3
mov rcx, qword [rsi + 0x30]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.WS2_32.dll_send]
mov ecx, ebx
mov ebx, 0x4d4
cmp eax, edi
cmovne ecx, ebx
mov ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret