Function at 0x140077bf0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x1401ef010]
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 [0x1401fb638]
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, [0x1401cef88]
mov edx, 0x80
mov rcx, r12
call fcn.14014b820
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x1a0]
test eax, eax
je 0x140077ea5
cmp byte [0x1401f32c2], 0
je 0x140077cac
mov eax, dword [0x1401fb310]
cmp eax, 0xc
jge 0x140077cac
inc eax
lea r8, [0x1401fb430]
mov edx, Ordinal_102
mov dword [0x1401fb310], eax
lea rcx, [rsp + 0x30]
call fcn.140139ff0
jmp 0x140077e85
mov edx, 0x100
mov dword [0x1401fb310], 0
lea rcx, [rbp + 0x170]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140077ceb
mov r9d, Ordinal_102
lea r8, str.Host_name_unavailable
mov edx, r9d
lea rcx, [rsp + 0x30]
call fcn.14014993c
jmp 0x140077e85
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x5c0], rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
jne 0x140077d27
mov r9d, Ordinal_102
lea r8, str.IP_address_unavailable
mov edx, r9d
lea rcx, [rsp + 0x30]
call fcn.14014993c
jmp 0x140077e7d
mov byte [rsp + 0x30], 0
mov rax, qword [rax + 0x18]
cmp qword [rax], 0
je 0x140077e7d
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 0x140077de3
nop dword [rax]
mov rax, qword [rsi + 0x18]
lea rdx, [0x1401c9888]
mov rcx, qword [rax + r14]
movzx r8d, byte [rcx + rbx]
lea rcx, [rsp + 0x28]
call fcn.140048bf0
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140077db0
mov r9d, Ordinal_102
lea r8, [rsp + 0x28]
sub r9, rax
lea rcx, [rsp + 0x30]
mov edx, Ordinal_102
call fcn.1401379b8
movsx eax, word [rsi + 0x12]
inc edi
inc rbx
cmp edi, eax
jl 0x140077d80
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x140077df0
mov byte [rax + r13 - 1], r12b
mov rax, qword [rsi + 0x18]
cmp qword [rax + r14 + 8], r12
je 0x140077e43
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r12b
jne 0x140077e17
mov r9d, Ordinal_102
lea r8, [0x1401c988c]
sub r9, rax
lea rcx, [rsp + 0x30]
mov edx, Ordinal_102
call fcn.1401379b8
mov rax, qword [rsi + 0x18]
inc r15
lea r14, [r15*8]
cmp qword [r14 + rax], r12
jne 0x140077d70
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.140139c24
lea r8, [rbp + 0xa0]
jmp 0x140077eac
lea r8, str.Not_listening
mov r9, 0xffffffffffffffff
mov edx, 0x80
mov rcx, r12
call fcn.14014b820
xor edx, edx
lea rcx, [rbp + 0x270]
mov r8d, 0x200
call fcn.140133cd0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.140133cd0
mov edx, 0x100
lea rcx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_gethostname]
mov rbx, qword [rsp + 0x5b8]
test eax, eax
jne 0x140077f60
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140077f10
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x270]
call fcn.140139c24
mov r9, 0xffffffffffffffff
lea r8, [0x1401cef88]
mov edx, 0x80
mov rcx, r12
call fcn.14014b820
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x270]
mov edx, 0x80
mov rcx, r12
call fcn.14014b820
mov rax, qword [0x1401fdf60]
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.14014b820
mov r9, 0xffffffffffffffff
lea r8, [0x1401f32c8]
mov edx, 0x80
mov rcx, r12
call fcn.14014b820
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.1401312e0
add rsp, 0x598
pop r12
pop rbp
ret