Function at 0x140001580
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
movdqa xmm0, xmmword [0x140004640]
mov dword [rbp - 0x68], 0xf1556e09
mov dword [rbp - 0x64], 0xed11970e
mov dword [rbp - 0x60], 0xb817704b
mov word [rbp - 0x5c], 0xe308
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x130
mov eax, dword [rdx + rcx]
mov ebx, 0x138
add rbx, rcx
test al, 1
jne 0x14000165d
or eax, 1
mov dword [rdx + rcx], eax
mov byte [rbx + 0x1e], 1
lea rax, [rbx + 0x1d]
lea rcx, [rbp - 0x5b]
cmp rbx, rcx
ja 0x140001635
lea rcx, [rbp - 0x78]
cmp rax, rcx
jb 0x140001635
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x68]
movsd qword [rbx + 0x10], xmm0
mov eax, dword [rbp - 0x60]
mov dword [rbx + 0x18], eax
movzx eax, word [rbp - 0x5c]
mov word [rbx + 0x1c], ax
jmp 0x140001650
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x68]
movsd qword [rbx + 0x10], xmm0
mov eax, dword [rbp - 0x60]
mov dword [rbx + 0x18], eax
movzx eax, word [rbp - 0x5c]
mov word [rbx + 0x1c], ax
lea rcx, [0x140003000]
call fcn.140002080
nop
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x68], xmm0
movsd xmm1, qword [rbx + 0x10]
movsd qword [rsp + 0x78], xmm1
mov eax, dword [rbx + 0x18]
mov dword [rbp - 0x80], eax
movzx eax, word [rbx + 0x1c]
mov word [rbp - 0x7c], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rbp - 0x7a], al
movaps xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x58], eax
movzx eax, word [rbx + 0x1c]
mov word [rsp + 0x5c], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rsp + 0x5e], al
lea rdx, [rsp + 0x40]
lea rcx, [0x140004590]
call fcn.140001010
cmp byte [rbp - 0x7a], 0
je 0x140001757
xor byte [rsp + 0x68], 0x27
xor byte [rsp + 0x69], 9
xor byte [rsp + 0x6a], 0x39
xor byte [rsp + 0x6b], 0xdf
xor byte [rsp + 0x6c], 0x6f
xor byte [rsp + 0x6d], 0xe3
xor byte [rsp + 0x6e], 0x3f
xor byte [rsp + 0x6f], 0x9d
xor byte [rsp + 0x70], 0x27
xor byte [rsp + 0x71], 9
xor byte [rsp + 0x72], 0x39
xor byte [rsp + 0x73], 0xdf
xor byte [rsp + 0x74], 0x6f
xor byte [rsp + 0x75], 0xe3
xor byte [rsp + 0x76], 0x3f
xor byte [rsp + 0x77], 0x9d
xor byte [rsp + 0x78], 0x27
xor byte [rsp + 0x79], 9
xor byte [rsp + 0x7a], 0x39
xor byte [rsp + 0x7b], 0xdf
xor byte [rsp + 0x7c], 0x6f
xor byte [rsp + 0x7d], 0xe3
xor byte [rsp + 0x7e], 0x3f
xor byte [rsp + 0x7f], 0x9d
xor byte [rbp - 0x80], 0x27
xor byte [rbp - 0x7f], 9
xor byte [rbp - 0x7e], 0x39
xor byte [rbp - 0x7d], 0xdf
xor byte [rbp - 0x7c], 0x6f
xor byte [rbp - 0x7b], 0xe3
mov byte [rbp - 0x7a], 0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 0x202
lea rdx, [rbp]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x1400017aa
lea rdx, str.WSAStartup_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001d00
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140004594]
call fcn.140001d00
mov r14d, 1
jmp 0x140001bc9
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
movdqa xmm0, xmmword [0x140004630]
movdqu xmmword [rbp - 0x38], xmm0
cmp byte [rbp - 0x7a], 0
je 0x140001865
xor byte [rsp + 0x68], 0x27
xor byte [rsp + 0x69], 9
xor byte [rsp + 0x6a], 0x39
xor byte [rsp + 0x6b], 0xdf
xor byte [rsp + 0x6c], 0x6f
xor byte [rsp + 0x6d], 0xe3
xor byte [rsp + 0x6e], 0x3f
xor byte [rsp + 0x6f], 0x9d
xor byte [rsp + 0x70], 0x27
xor byte [rsp + 0x71], 9
xor byte [rsp + 0x72], 0x39
xor byte [rsp + 0x73], 0xdf
xor byte [rsp + 0x74], 0x6f
xor byte [rsp + 0x75], 0xe3
xor byte [rsp + 0x76], 0x3f
xor byte [rsp + 0x77], 0x9d
xor byte [rsp + 0x78], 0x27
xor byte [rsp + 0x79], 9
xor byte [rsp + 0x7a], 0x39
xor byte [rsp + 0x7b], 0xdf
xor byte [rsp + 0x7c], 0x6f
xor byte [rsp + 0x7d], 0xe3
xor byte [rsp + 0x7e], 0x3f
xor byte [rsp + 0x7f], 0x9d
xor byte [rbp - 0x80], 0x27
xor byte [rbp - 0x7f], 9
xor byte [rbp - 0x7e], 0x39
xor byte [rbp - 0x7d], 0xdf
xor byte [rbp - 0x7c], 0x6f
xor byte [rbp - 0x7b], 0xe3
mov byte [rbp - 0x7a], 0
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x38]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400018f0
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x400
lea rbx, [0x140007700]
mov qword [rsp + 0x20], rbx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.getaddrinfo___failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001d00
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140004594]
call fcn.140001d00
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov r14d, 1
jmp 0x140001bc9
mov rax, qword [rsp + 0x60]
mov rbx, qword [rax + 0x18]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test rbx, rbx
je 0x140001928
lea rdx, str.Canonical_name:
call fcn.140001d00
mov rcx, rax
mov rdx, rbx
call fcn.140001d00
mov rcx, rax
lea rdx, [0x140004594]
jmp 0x14000192f
lea rdx, str.Canonical_name_not_available._n
call fcn.140001d00
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
movups xmmword [rbp + 0x1c0], xmm0
movups xmmword [rbp + 0x1d0], xmm0
mov byte [rbp + 0x1e0], al
mov rdi, qword [rsp + 0x60]
xor r14d, r14d
test rdi, rdi
je 0x140001bb7
nop dword [rax]
mov ecx, dword [rdi + 4]
cmp ecx, 2
je 0x140001987
cmp ecx, 0x17
jne 0x1400019e1
mov rdx, qword [rdi + 0x20]
add rdx, 8
jmp 0x14000198f
mov rdx, qword [rdi + 0x20]
add rdx, 4
test rdx, rdx
je 0x1400019e1
mov r9d, 0x41
lea r8, [rbp + 0x1a0]
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
jne 0x1400019ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.inet_ntop___failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001d00
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140004594]
call fcn.140001d00
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140001970
jmp 0x140001bb7
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], 5
mov qword [rbp - 0x40], 0xf
mov eax, dword [str.60964]
mov dword [rbp - 0x58], eax
movzx eax, byte [0x14000460c]
mov byte [rbp - 0x54], al
mov byte [rbp - 0x53], r14b
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
lea rax, [rbp + 0x1a0]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001a40
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140001bf8
mov qword [rsp + 0x58], 0xf
cmp rbx, 0xf
ja 0x140001a8e
mov qword [rsp + 0x50], rbx
mov r8, rbx
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x40], 0
jmp 0x140001b29
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x140001ac7
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001f68
test rax, rax
je 0x140001b6c
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001b04
mov rdi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140001af2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001bfe
jmp 0x140001aa8
test rcx, rcx
je 0x140001b01
call fcn.140001f68
mov rsi, rax
jmp 0x140001b04
mov rsi, r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov r8, rbx
lea rdx, [rbp + 0x1a0]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.140001070
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001b79
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001fa4
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140001bb7
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001fa4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, r14d
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140001ee0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140001560
nop
call fcn.1400014c0
int3