Function at 0x140001820
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbx
push rsi
sub rsp, 0x198
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov edx, 0x100
xor esi, esi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x14000189a
lea rdx, str.Error_getting_hostname.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400029f0
lea rdx, [0x140002bc0]
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]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], recv
mov byte [rbx], sil
jmp 0x140001a39
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
movups xmmword [rsp + 0x30], xmm0
lea r9, [rsp + 0x28]
mov dword [rsp + 0x34], 2
lea r8, [rsp + 0x30]
mov dword [rsp + 0x38], 1
xor edx, edx
lea rcx, [rsp + 0x80]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400018eb
lea rdx, str.Error_getting_address_info.
jmp 0x140001864
mov rax, qword [rsp + 0x28]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x1b8], rbp
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x190], r14
mov r14d, socket
mov rdx, qword [rax + 0x20]
mov r9d, r14d
add rdx, 4
lea ecx, [r14 - 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov rdi, 0xffffffffffffffff
mov qword [rbx + 0x18], rsi
nop dword [rax]
inc rdi
cmp byte [rax + rdi], sil
jne 0x140001950
movabs rbp, 0x7fffffffffffffff
cmp rdi, rbp
ja 0x140001a56
cmp rdi, 0xf
ja 0x140001997
mov r8, rdi
mov qword [rbx + 0x10], rdi
lea rdx, [rsp + 0x60]
mov qword [rbx + 0x18], recv
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], sil
jmp 0x140001a21
mov rax, rdi
or rax, 0xf
cmp rax, rbp
jbe 0x1400019cc
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003564
test rax, rax
je 0x1400019ee
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001a02
cmp rax, r14
mov rbp, rax
cmovb rbp, r14
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x1400019f5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001a5c
jmp 0x1400019b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001a02
call fcn.140003564
mov rsi, rax
mov r8, rdi
mov qword [rbx], rsi
lea rdx, [rsp + 0x60]
mov qword [rbx + 0x10], rdi
mov rcx, rsi
mov qword [rbx + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], 0
mov rdi, qword [rsp + 0x1c0]
mov rbp, qword [rsp + 0x1b8]
mov r14, qword [rsp + 0x190]
mov rax, rbx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400032a0
add rsp, 0x198
pop rsi
pop rbx
ret
call fcn.1400011c0
int3
call fcn.140001120
int3