Function at 0x140078280
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 + 0x7ce]
mov qword [rsp + 0x5b8], rbx
mov rbx, rcx
mov qword [rsp + 0x20], r12
mov rcx, qword [0x1401fb658]
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, [0x1401cefd8]
mov edx, 0x80
mov rcx, r12
call fcn.14014cb68
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x1a0]
test eax, eax
je 0x140078535
cmp byte [0x1401f32e2], 0
je 0x14007833c
mov eax, dword [0x1401fb330]
cmp eax, 0xc
jge 0x14007833c
inc eax
lea r8, [0x1401fb450]
mov edx, Ordinal_102
mov dword [0x1401fb330], eax
lea rcx, [rsp + 0x30]
call fcn.14013b330
jmp 0x140078515
mov edx, 0x100
mov dword [0x1401fb330], 0
lea rcx, [rbp + 0x170]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x14007837b
mov r9d, Ordinal_102
lea r8, str.Host_name_unavailable
mov edx, r9d
lea rcx, [rsp + 0x30]
call fcn.1401456fc
jmp 0x140078515
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x5c0], rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
jne 0x1400783b7
mov r9d, Ordinal_102
lea r8, str.IP_address_unavailable
mov edx, r9d
lea rcx, [rsp + 0x30]
call fcn.1401456fc
jmp 0x14007850d
mov byte [rsp + 0x30], 0
mov rax, qword [rax + 0x18]
cmp qword [rax], 0
je 0x14007850d
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 0x140078473
nop dword [rax]
mov rax, qword [rsi + 0x18]
lea rdx, [0x1401c98d8]
mov rcx, qword [rax + r14]
movzx r8d, byte [rcx + rbx]
lea rcx, [rsp + 0x28]
call fcn.140049270
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140078440
mov r9d, Ordinal_102
lea r8, [rsp + 0x28]
sub r9, rax
lea rcx, [rsp + 0x30]
mov edx, Ordinal_102
call fcn.140138cf8
movsx eax, word [rsi + 0x12]
inc edi
inc rbx
cmp edi, eax
jl 0x140078410
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x140078480
mov byte [rax + r13 - 1], r12b
mov rax, qword [rsi + 0x18]
cmp qword [rax + r14 + 8], r12
je 0x1400784d3
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r12b
jne 0x1400784a7
mov r9d, Ordinal_102
lea r8, [0x1401c98dc]
sub r9, rax
lea rcx, [rsp + 0x30]
mov edx, Ordinal_102
call fcn.140138cf8
mov rax, qword [rsi + 0x18]
inc r15
lea r14, [r15*8]
cmp qword [r14 + rax], r12
jne 0x140078400
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.14013af64
lea r8, [rbp + 0xa0]
jmp 0x14007853c
lea r8, str.Not_listening
mov r9, 0xffffffffffffffff
mov edx, 0x80
mov rcx, r12
call fcn.14014cb68
xor edx, edx
lea rcx, [rbp + 0x270]
mov r8d, 0x200
call fcn.140135010
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.140135010
mov edx, 0x100
lea rcx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_gethostname]
mov rbx, qword [rsp + 0x5b8]
test eax, eax
jne 0x1400785f0
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400785a0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x270]
call fcn.14013af64
mov r9, 0xffffffffffffffff
lea r8, [0x1401cefd8]
mov edx, 0x80
mov rcx, r12
call fcn.14014cb68
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x270]
mov edx, 0x80
mov rcx, r12
call fcn.14014cb68
mov rax, qword [0x1401fdf80]
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.14014cb68
mov r9, 0xffffffffffffffff
lea r8, [0x1401f32e8]
mov edx, 0x80
mov rcx, r12
call fcn.14014cb68
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140132620
add rsp, 0x598
pop r12
pop rbp
ret