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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x90
mov rax, qword [0x180032018]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [0x1800343a3], 0
je 0x18000224a
xor eax, eax
jmp 0x180002c97
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], recv
mov byte [rsp + 0x30], r14b
lea r8d, [r14 + 1]
lea rdx, [0x18002d678]
lea rcx, [rsp + 0x30]
call fcn.180006e60
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1800022b1
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], WSAStartup
jmp 0x1800022d0
mov qword [rsp + 0x20], 1
lea r9, [0x18002d67c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002306
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x69
jmp 0x180002325
mov qword [rsp + 0x20], 1
lea r9, [0x18002d680]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18000235b
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], WSAStartup
jmp 0x18000237a
mov qword [rsp + 0x20], 1
lea r9, [0x18002d684]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1800023b0
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x2e
jmp 0x1800023cf
mov qword [rsp + 0x20], 1
lea r9, [0x18002d44c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002405
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x63
jmp 0x180002424
mov qword [rsp + 0x20], 1
lea r9, [0x18002d678]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18000245a
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], WSAStartup
jmp 0x180002479
mov qword [rsp + 0x20], 1
lea r9, [0x18002d688]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1800024af
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x79
jmp 0x1800024ce
mov qword [rsp + 0x20], 1
lea r9, [0x18002d68c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002504
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], WSAStartup
jmp 0x180002523
mov qword [rsp + 0x20], 1
lea r9, [0x18002d690]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002559
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x74
jmp 0x180002578
mov qword [rsp + 0x20], 1
lea r9, [0x18002d694]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1800025ae
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], WSAStartup
jmp 0x1800025cd
mov qword [rsp + 0x20], 1
lea r9, [0x18002d67c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002603
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x61
jmp 0x180002622
mov qword [rsp + 0x20], 1
lea r9, [0x18002d698]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002658
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x63
jmp 0x180002677
mov qword [rsp + 0x20], 1
lea r9, [0x18002d678]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1800026ad
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x69
jmp 0x1800026cc
mov qword [rsp + 0x20], 1
lea r9, [0x18002d680]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002702
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], WSAStartup
jmp 0x180002721
mov qword [rsp + 0x20], 1
lea r9, [0x18002d684]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002757
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x64
jmp 0x180002776
mov qword [rsp + 0x20], 1
lea r9, [0x18002d69c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1800027ac
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x65
jmp 0x1800027cb
mov qword [rsp + 0x20], 1
lea r9, [0x18002d6a0]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002801
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x78
jmp 0x180002820
mov qword [rsp + 0x20], 1
lea r9, [0x18002d6a4]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002856
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x2e
jmp 0x180002875
mov qword [rsp + 0x20], 1
lea r9, [0x18002d44c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1800028ab
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x63
jmp 0x1800028ca
mov qword [rsp + 0x20], 1
lea r9, [0x18002d678]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002900
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], WSAStartup
jmp 0x18000291f
mov qword [rsp + 0x20], 1
lea r9, [0x18002d67c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180002955
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x6d
jmp 0x180002974
mov qword [rsp + 0x20], 1
lea r9, [0x18002d6a8]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800077d0
mov qword [rsp + 0x78], r14
mov esi, 2
mov word [rsp + 0x70], si
lea rcx, [0x18002d6ac]
call fcn.1800112b8
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1800029fc
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1800029f5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800029f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002cc7
call fcn.18000926c
xor eax, eax
jmp 0x180002c97
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 dword [rsp + 0x74], eax
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x180034550], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180002a8b
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180002a84
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002a7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002cc7
call fcn.18000926c
xor eax, eax
jmp 0x180002c97
cmp byte [0x1800343a3], 0
je 0x180002ad8
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180002ad1
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002acc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002cc7
call fcn.18000926c
xor eax, eax
jmp 0x180002c97
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], recv
mov byte [rsp + 0x50], 0
mov r8d, socket
lea rdx, [0x18002d6b0]
lea rcx, [rsp + 0x50]
call fcn.180006e60
nop
lea r9, [0x180032c58]
cmp qword [0x180032c70], 0x10
cmovae r9, qword [0x180032c58]
mov rdi, qword [0x180032c68]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180002b75
lea rax, [rcx + rdi]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x50]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.18000a8e0
mov byte [rdi + rbx], 0
jmp 0x180002b87
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1800077d0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x180002bc5
lea rax, [rcx + 2]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x50]
mov edx, 0xa3a
mov word [rax + rcx], dx
mov byte [rax + rcx + 2], 0
jmp 0x180002bde
mov qword [rsp + 0x20], rsi
lea r9, [0x18002d6c8]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1800077d0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rcx, qword [0x180034550]
call qword [sym.imp.WS2_32.dll_send]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180002c42
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002c3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002cc1
call fcn.18000926c
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], recv
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180002c8e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002c89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002cc7
call fcn.18000926c
mov eax, 1
jmp 0x180002c97
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180008e90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
call fcn.180011840
nop
call fcn.180011840
int3