Function at 0x140003260
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x140070080]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x70]
mov ecx, 0x202
xor edi, edi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140003466
movdqa xmm1, xmmword [0x140067b20]
mov r9b, 0xb6
movd r11d, xmm1
movzx r10d, r9b
movdqu xmmword [rbp + 0x110], xmm1
mov qword [rsp + 0x378], rsi
mov cl, 0xb9
xor byte [rbp + 0x112], r11b
movdqa xmm0, xmm1
xor byte [rbp + 0x113], r11b
xor cl, r11b
xor byte [rbp + 0x114], r11b
mov dl, 0xbe
xor byte [rbp + 0x115], r11b
xor dl, r11b
xor byte [rbp + 0x116], r11b
mov r8b, 0xa8
xor byte [rbp + 0x117], r11b
xor r8b, r11b
xor byte [rbp + 0x118], r11b
xor r9b, r11b
xor byte [rbp + 0x119], r11b
xor r10b, r11b
xor byte [rbp + 0x11a], r11b
mov bl, 0x7e
xor byte [rbp + 0x11b], r11b
xor bl, r11b
xor byte [rbp + 0x11c], r11b
mov dil, 9
xor byte [rbp + 0x11d], r11b
xor dil, r11b
xor byte [rbp + 0x11e], r11b
mov sil, gethostname
xor byte [rbp + 0x11f], r11b
xor sil, r11b
mov qword [rsp + 0x380], r12
mov r12b, Ordinal_50
mov qword [rsp + 0x388], r13
xor r12b, r11b
mov qword [rsp + 0x348], r14
mov r13b, 0x3d
psrldq xmm0, 1
xor r13b, r11b
movd eax, xmm0
mov r14b, Ordinal_50
mov qword [rsp + 0x340], r15
xor r14b, r11b
mov byte [rbp + 0x120], cl
mov r15b, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
xor al, r11b
mov byte [rbp + 0x111], al
xor r15b, r11b
mov al, 0x35
mov byte [rbp + 0x121], dl
xor al, r11b
mov byte [rbp + 0x122], r8b
mov byte [rbp + 0x12c], al
lea rdx, [rbp + 0x111]
mov al, reloc.WS2_32.dll_WSASetLastError
mov byte [rbp + 0x123], r9b
xor al, r11b
mov byte [rbp + 0x124], r10b
mov byte [rbp + reloc.WLDAP32.dll_Ordinal_301], al
mov byte [rbp + 0x125], bl
mov byte [rbp + 0x126], dil
mov byte [rbp + 0x127], sil
mov byte [rbp + 0x128], r14b
mov byte [rbp + 0x129], r15b
mov byte [rbp + 0x12a], r12b
mov byte [rbp + 0x12b], r13b
mov byte [rbp + 0x12e], 0
call fcn.140005c40
lea rdx, [0x140005e10]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, qword [rsp + 0x30]
xor edi, edi
mov r15, qword [rsp + 0x340]
mov r14, qword [rsp + 0x348]
mov r13, qword [rsp + 0x388]
mov r12, qword [rsp + 0x380]
mov rsi, qword [rsp + 0x378]
mov edx, 0xff
lea rcx, [rbp + 0x130]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x14000352e
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x38], xmm0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x3c], 2
lea r8, [rsp + 0x38]
xor edx, edx
lea rcx, [rbp + 0x130]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000352e
mov rax, qword [rsp + 0x30]
lea r8, [rbp + 0x110]
mov r9d, reloc.WLDAP32.dll_Ordinal_22
mov rdx, qword [rax + 0x20]
add rdx, 4
lea ecx, [r9 - 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xorps xmm0, xmm0
lea rax, [rbp + 0x110]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003510
lea rdx, [rbp + 0x110]
mov rcx, rbx
call fcn.140006140
mov rax, rbx
jmp 0x140003534
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400574c0
add rsp, 0x350
pop rdi
pop rbx
pop rbp
ret