Function at 0x1401490b0
Capabilities:
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov r15, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x140149182
mov r14, rax
mov qword [rsp + 0xa0], 0
mov word [rsp + 0x98], 2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x9c], eax
mov cx, 0xfae
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x9a], ax
test r15, r15
je 0x1401493fe
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x140232ef0]
movaps xmmword [rsp + 0x30], xmm0
mov rcx, r15
call fcn.1401ceb10
cmp rax, 0xfffffffffffffff0
jae 0x1401494be
mov rdi, rax
cmp rax, 0x17
jae 0x14014918e
lea rsi, [rsp + 0x30]
mov byte [rsi + 0x17], dil
test rdi, rdi
jne 0x1401491b8
jmp 0x1401491c6
lea rdx, str.Failed_to_create_socket._n
jmp 0x14014947b
mov rbx, rdi
add rbx, 0x10
and rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.1401a2e6c
mov rsi, rax
mov qword [rsp + 0x30], rax
bts rbx, 0x3f
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov rcx, rsi
mov rdx, r15
mov r8, rdi
call fcn.1401a6090
mov byte [rsi + rdi], 0
mov word [rsp + 0x98], 2
mov r12d, dword [rsp + 0x9c]
movzx r15d, word [rsp + 0x9a]
xor eax, eax
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x30]
mov dl, 0x3a
xor r8d, r8d
call fcn.1400b8c10
cmp rax, 0xffffffffffffffff
je 0x1401492a5
lea rbx, [rax + 1]
movzx ecx, byte [rsp + 0x47]
mov rdx, rcx
test cl, cl
jns 0x140149232
mov rdx, qword [rsp + 0x38]
cmp rbx, rdx
jae 0x1401492a9
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x20], rbp
lea rsi, [rsp + 0x48]
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9, rax
call fcn.1400b8b50
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], rbp
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, 0xffffffffffffffff
call fcn.1400b8b50
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x70], rax
jmp 0x1401492ea
mov cl, byte [rsp + 0x47]
test cl, cl
js 0x1401492c9
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x80], xmm0
jmp 0x1401492e0
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.1400b8db0
xor eax, eax
mov byte [rsp + 0x77], al
mov byte [rsp + 0x60], al
movzx eax, byte [rsp + 0x97]
mov rcx, rax
test al, al
jns 0x140149301
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140149377
cmp rcx, 7
jne 0x140149340
mov qword [rsp + 0x20], 7
lea r9, str.0.0.0.0
xor r12d, r12d
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8, 0xffffffffffffffff
call fcn.1400b90d0
test eax, eax
je 0x140149377
mov al, byte [rsp + 0x97]
test al, al
jns 0x14014934e
mov rcx, qword [rsp + 0x80]
jmp 0x140149356
lea rcx, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1401493c5
cmp word [rax + 0x10], 2
jne 0x1401493c5
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
test rax, rax
je 0x1401493c5
mov r12d, dword [rax]
movzx eax, byte [rsp + 0x77]
mov rcx, rax
test al, al
jns 0x140149388
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401493b4
test al, al
jns 0x140149398
mov rcx, qword [rsp + 0x60]
jmp 0x14014939d
lea rcx, [rsp + 0x60]
call fcn.1401c44fc
cmp eax, 0xffff
ja 0x1401493c5
mov ecx, eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov r15d, eax
mov dword [rsp + 0x9c], r12d
mov word [rsp + 0x9a], r15w
cmp byte [rsp + 0x77], 0
jns 0x1401493d6
mov rcx, qword [rsp + 0x60]
call fcn.1401a2ea8
cmp byte [rsp + 0x97], 0
jns 0x1401493ed
mov rcx, qword [rsp + 0x80]
call fcn.1401a2ea8
cmp byte [rsp + 0x47], 0
jns 0x1401493fe
mov rcx, qword [rsp + 0x30]
call fcn.1401a2ea8
lea r9, [rsp + 0x80]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov rcx, r14
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14014943e
lea rdx, str.Failed_to_set_SO_EXCLUSIVEADDRUSE_option._n
mov ecx, 0xfffffffe
call fcn.1401f7e70
lea rdx, [rsp + 0x98]
mov rcx, r14
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140149462
lea rdx, str.Failed_to_bind_server._n
jmp 0x14014947b
mov rcx, r14
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1401494ac
lea rdx, str.Failed_to_listen._n
mov ecx, 0xfffffffd
call fcn.1401f7e70
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401a4270
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 8
call fcn.1401a2e6c
mov rsi, rax
mov qword [rax], r14
jmp 0x140149487
lea rcx, [rsp + 0x30]
call fcn.1400b7d50
int3