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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140043040]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x60]
call fcn.14002f210
lea rcx, [rsp + 0x60]
call fcn.1400065d0
nop
mov ecx, 0x202
lea rdx, [rbp + 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0x270]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x140002c71
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Error_getting_hostname:
lea rcx, [rsp + 0x60]
call fcn.1400095f0
mov rcx, rax
mov edx, ebx
call fcn.140006970
mov rcx, rax
call fcn.140009b80
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
mov dword [rsp + 0x20], 0x10
movups xmmword [rsp + 0x38], xmm0
mov rcx, qword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140002bbf
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140002bbf
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x140002bf0
test cl, 4
jne 0x140002be6
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002be6
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140002bf0
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140002bfe
mov rcx, rdi
call fcn.140008e60
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140006300
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x5c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14000e674
nop
jmp 0x140003039
lea rdx, str.Hostname:
lea rcx, [rsp + 0x60]
call fcn.1400095f0
mov rcx, rax
lea rdx, [rbp + 0x270]
call fcn.1400095f0
mov rcx, rax
lea rdx, [0x14003c84c]
call fcn.1400095f0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x5c], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x6c], xmm1
mov dword [rbp + 0x7c], r14d
mov qword [rsp + 0x30], r14
mov dword [rbp + 0x54], r14d
mov dword [rbp + 0x58], 1
mov dword [rbp + 0x50], 2
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x50]
xor edx, edx
lea rcx, [rbp + 0x270]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140002e1c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Error_getting_address_info:
lea rcx, [rsp + 0x60]
call fcn.1400095f0
mov rcx, rax
mov edx, ebx
call fcn.140006970
mov rcx, rax
call fcn.140009b80
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 0x40
movups xmmword [rsp + 0x38], xmm0
mov rcx, qword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140002d6c
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140002d6c
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x140002d9d
test cl, 4
jne 0x140002d93
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002d93
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140002d9d
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140002dab
mov rcx, rdi
call fcn.140008e60
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140006300
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14000e674
nop
jmp 0x140003039
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140002f2f
lea r15, str.IPv6
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov rax, qword [rbx + 0x20]
cmp dword [rbx + 4], 2
lea rsi, [rax + 4]
je 0x140002e5e
lea rsi, [rax + 8]
lea rdx, str.IPv4
cmovne rdx, r15
mov r8d, 4
lea rcx, [rsp + 0x38]
call fcn.140008e60
mov r9d, 0x41
lea r8, [rbp + 0x220]
mov rdx, rsi
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_inet_ntop]
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000b260
lea rdx, str._Address:
mov rcx, rax
call fcn.1400095f0
mov rcx, rax
lea rdx, [rbp + 0x220]
call fcn.1400095f0
mov rcx, rax
lea rdx, [0x14003c84c]
call fcn.1400095f0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140002f1d
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003068
call fcn.14000f2b0
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140002e31
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 4
movups xmmword [rsp + 0x38], xmm0
mov rcx, qword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140002f8e
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140002f8e
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x140002fbf
test cl, 4
jne 0x140002fb5
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002fb5
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140002fbf
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140002fcd
mov rcx, rdi
call fcn.140008e60
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.140006300
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14000e674
nop
mov rax, rdi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14000f290
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001797c
nop
int3