Function at 0x140077a90
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x470], rax
lea r12, [rcx + 0x7c6]
mov qword [rsp + 0x5b8], rbx
mov rbx, rcx
mov qword [rsp + 0x20], r12
mov rcx, qword [0x1401fc638]
mov r8, r12
mov r9d, 0x100
mov edx, reloc.dwmapi.dll_Ordinal_102
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9, 0xffffffffffffffff
lea r8, [0x1401cf808]
mov edx, 0x80
mov rcx, r12
call fcn.14014c430
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x1a0]
test eax, eax
je 0x140077d45
cmp byte [0x1401f42c2], 0
je 0x140077b4c
mov eax, dword [0x1401fc310]
cmp eax, 0xc
jge 0x140077b4c
inc eax
lea r8, [0x1401fc430]
mov edx, Ordinal_102
mov dword [0x1401fc310], eax
lea rcx, [rsp + 0x30]
call fcn.14013ac00
jmp 0x140077d25
mov edx, 0x100
mov dword [0x1401fc310], 0
lea rcx, [rbp + 0x170]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140077b8b
mov r9d, Ordinal_102
lea r8, str.Host_name_unavailable
mov edx, r9d
lea rcx, [rsp + 0x30]
call fcn.14014a54c
jmp 0x140077d25
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x5c0], rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
jne 0x140077bc7
mov r9d, Ordinal_102
lea r8, str.IP_address_unavailable
mov edx, r9d
lea rcx, [rsp + 0x30]
call fcn.14014a54c
jmp 0x140077d1d
mov byte [rsp + 0x30], 0
mov rax, qword [rax + 0x18]
cmp qword [rax], 0
je 0x140077d1d
mov qword [rsp + 0x5c8], rdi
xor r12d, r12d
mov qword [rsp + 0x590], r13
lea r13, [rsp + 0x30]
mov qword [rsp + 0x588], r14
mov r14d, r12d
mov qword [rsp + 0x580], r15
mov r15d, r12d
nop dword [rax + rax]
mov edi, r12d
mov rbx, r12
cmp r12w, word [rsi + 0x12]
jge 0x140077c83
nop dword [rax]
mov rax, qword [rsi + 0x18]
lea rdx, [0x1401ca108]
mov rcx, qword [rax + r14]
movzx r8d, byte [rcx + rbx]
lea rcx, [rsp + 0x28]
call fcn.140048a90
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140077c50
mov r9d, Ordinal_102
lea r8, [rsp + 0x28]
sub r9, rax
lea rcx, [rsp + 0x30]
mov edx, Ordinal_102
call fcn.1401385c8
movsx eax, word [rsi + 0x12]
inc edi
inc rbx
cmp edi, eax
jl 0x140077c20
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x140077c90
mov byte [rax + r13 - 1], r12b
mov rax, qword [rsi + 0x18]
cmp qword [rax + r14 + 8], r12
je 0x140077ce3
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r12b
jne 0x140077cb7
mov r9d, Ordinal_102
lea r8, [0x1401ca10c]
sub r9, rax
lea rcx, [rsp + 0x30]
mov edx, Ordinal_102
call fcn.1401385c8
mov rax, qword [rsi + 0x18]
inc r15
lea r14, [r15*8]
cmp qword [r14 + rax], r12
jne 0x140077c10
mov r12, qword [rsp + 0x20]
mov r15, qword [rsp + 0x580]
mov r14, qword [rsp + 0x588]
mov r13, qword [rsp + 0x590]
mov rdi, qword [rsp + 0x5c8]
mov rsi, qword [rsp + 0x5c0]
mov r8d, Ordinal_102
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xa0]
call fcn.14013a834
lea r8, [rbp + 0xa0]
jmp 0x140077d4c
lea r8, str.Not_listening
mov r9, 0xffffffffffffffff
mov edx, 0x80
mov rcx, r12
call fcn.14014c430
xor edx, edx
lea rcx, [rbp + 0x270]
mov r8d, 0x200
call fcn.1401348e0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.1401348e0
mov edx, 0x100
lea rcx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_gethostname]
mov rbx, qword [rsp + 0x5b8]
test eax, eax
jne 0x140077e00
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140077db0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x270]
call fcn.14013a834
mov r9, 0xffffffffffffffff
lea r8, [0x1401cf808]
mov edx, 0x80
mov rcx, r12
call fcn.14014c430
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x270]
mov edx, 0x80
mov rcx, r12
call fcn.14014c430
mov rax, qword [0x1401fef68]
lea rcx, str.___application__
lea r8, str.___service__
mov edx, 0x80
mov r9, 0xffffffffffffffff
cmp dword [rax + 0xe20], 0
cmove r8, rcx
mov rcx, r12
call fcn.14014c430
mov r9, 0xffffffffffffffff
lea r8, [0x1401f42c8]
mov edx, 0x80
mov rcx, r12
call fcn.14014c430
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0x598
pop r12
pop rbp
ret