Function at 0x1400ac740
Capabilities:
Get hostname

Disassembly:
endbr64
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1f8
mov rdi, qword [0x14041fc80]
mov r8d, 1
mov rax, qword [rdi]
mov qword [rsp + 0x1e8], rax
xor eax, eax
mov rsi, rcx
lea rdx, [rsp + 0x4f]
mov byte [rsp + 0x4f], 1
call fcn.1400e3fd0
lea rdx, [rsp + 0x98]
mov rcx, rsi
mov r8d, 8
mov qword [rsp + 0x98], 8
call fcn.1400e3fd0
lea rdx, [rsp + 0xa0]
mov rcx, rsi
mov r8d, 8
mov qword [rsp + 0xa0], 4
call fcn.1400e3fd0
lea rdx, [rsp + 0xa8]
mov rcx, rsi
mov r8d, 8
mov qword [rsp + 0xa8], 4
call fcn.1400e3fd0
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, 4
mov dword [rsp + 0x50], 0xc
call fcn.1400e3fd0
lea rdx, [rsp + 0x54]
mov rcx, rsi
mov r8d, 4
mov dword [rsp + 0x54], 0
call fcn.1400e3fd0
lea rdx, [rsp + 0x58]
mov rcx, rsi
mov r8d, 4
mov dword [rsp + 0x58], 0
call fcn.1400e3fd0
lea rdx, [rsp + 0x5c]
mov rcx, rsi
mov r8d, 4
mov dword [rsp + 0x5c], 0x31512
call fcn.1400e3fd0
mov rcx, rsi
mov r8d, 9
lea rdx, str.12_posix
call fcn.1400e3fd0
mov rcx, rsi
mov r8d, 4
lea rdx, [0x1402c2bac]
call fcn.1400e3fd0
xor eax, eax
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
mov ecx, eax
cpuid
mov r8d, 4
mov dword [rsp + 0x70], ecx
mov rcx, rsi
lea rdi, [rsp + 0x68]
mov dword [rsp + 0x74], edx
lea rdx, [rsp + 0x78]
lea rbp, [rsp + 0x6c]
mov r14d, 1
mov dword [rsp + 0x6c], ebx
lea r12, [rsp + 0x70]
lea r13, [rsp + 0x74]
mov r15d, r14d
mov dword [rsp + 0x68], eax
lea rbx, [rsp + 0x80]
call fcn.1400e3fd0
lea rdx, [rsp + 0x7c]
mov r8d, 4
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, rdi
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, rbp
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, r12
mov rcx, rsi
call fcn.1400e3fd0
mov rdx, r13
mov r8d, 4
mov rcx, rsi
call fcn.1400e3fd0
mov eax, dword [rsp + 0x68]
mov edx, 0xff
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x84]
cmp eax, edx
mov qword [rsp + 0x30], rbx
cmovbe edx, eax
mov dword [rsp + 0x3c], edx
test eax, eax
je 0x1400aca6b
mov dword [rsp + 0x38], 0
xor r14d, r14d
jmp 0x1400ac9b5
cmp r15d, 7
je 0x1400acda0
cmp r15d, 0xb
je 0x1400acdd0
cmp r15d, 0xd
jne 0x1400aca5c
mov eax, dword [rsp + 0x68]
or eax, dword [rsp + 0x6c]
or eax, dword [rsp + 0x70]
or eax, dword [rsp + 0x74]
je 0x1400aca5c
add r14d, 1
cmp r14d, 0x100
je 0x1400aca5c
mov dword [rsp + 0x80], r15d
mov eax, r15d
mov ecx, r14d
mov dword [rsp + 0x84], r14d
cpuid
mov dword [rsp + 0x74], edx
mov rdx, qword [rsp + 0x28]
mov r8d, 4
mov dword [rsp + 0x70], ecx
mov rcx, rsi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], ebx
call fcn.1400e3fd0
mov rdx, qword [rsp + 0x30]
mov r8d, 4
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, rdi
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, rbp
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, r12
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, r13
mov rcx, rsi
call fcn.1400e3fd0
cmp r15d, 4
jne 0x1400ac970
test byte [rsp + 0x68], 0x1f
jne 0x1400ac9a4
add r15d, 1
cmp dword [rsp + 0x3c], r15d
jae 0x1400ac960
mov dword [rsp + 0x88], 0x80000000
mov eax, 0x80000000
xor ecx, ecx
mov dword [rsp + 0x8c], 0
cpuid
mov r8d, 4
mov dword [rsp + 0x70], ecx
mov rcx, rsi
mov dword [rsp + 0x74], edx
lea rdx, [rsp + 0x88]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], ebx
call fcn.1400e3fd0
lea rdx, [rsp + 0x8c]
mov r8d, 4
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, rdi
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, rbp
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, r12
mov rcx, rsi
call fcn.1400e3fd0
mov rdx, r13
mov r8d, 4
mov rcx, rsi
call fcn.1400e3fd0
mov eax, dword [rsp + 0x68]
mov edx, 0x800000ff
cmp eax, edx
cmovbe edx, eax
mov dword [rsp + 0x28], edx
cmp eax, 0x80000000
jbe 0x1400acbf5
lea rax, [rsp + 0x94]
mov r14d, 0x80000001
lea r15, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rax, r13
mov r13, r12
mov r12, rbp
mov rbp, rdi
mov edi, r14d
mov r14, rax
nop dword [rax]
mov dword [rsp + 0x90], edi
mov eax, edi
xor ecx, ecx
mov dword [rsp + 0x94], 0
cpuid
mov r8d, 4
mov dword [rsp + 0x70], ecx
mov rcx, rsi
add edi, 1
mov dword [rsp + 0x74], edx
mov rdx, r15
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], ebx
call fcn.1400e3fd0
mov rdx, qword [rsp + 0x30]
mov r8d, 4
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, rbp
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, r12
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, r13
mov rcx, rsi
call fcn.1400e3fd0
mov r8d, 4
mov rdx, r14
mov rcx, rsi
call fcn.1400e3fd0
cmp dword [rsp + 0x28], edi
jae 0x1400acb58
lea rdx, [rsp + 0xb0]
mov r8d, 8
mov rcx, rsi
mov qword [rsp + 0xb0], rsi
call fcn.1400e3fd0
lea rax, [fcn.1400ac740]
lea rdx, [rsp + 0xb8]
mov r8d, 8
mov rcx, rsi
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0xe0]
call fcn.1400e3fd0
mov rax, qword [sub.msvcrt.dll_malloc]
lea rdx, [rsp + 0xc0]
mov rcx, rsi
mov r8d, 8
mov qword [rsp + 0xc0], rax
call fcn.1400e3fd0
call qword [sym.imp.msvcrt.dll__errno]
lea rdx, [rsp + 0xc8]
mov r8d, 8
mov rcx, rsi
mov qword [rsp + 0xc8], rax
call fcn.1400e3fd0
mov rbp, qword [sym.imp.msvcrt.dll__environ]
mov rcx, rsi
lea rdx, [rsp + 0xd0]
mov r8d, 8
mov rax, qword [rbp]
mov qword [rsp + 0xd0], rax
call fcn.1400e3fd0
mov edx, 0x100
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1400ace13
mov rax, qword [rbp]
mov rax, qword [rax]
test rax, rax
je 0x1400acd12
mov rbx, qword [rax]
test rbx, rbx
je 0x1400acd12
mov edi, 8
nop dword [rax]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, rsi
mov r8, rax
call fcn.1400e3fd0
mov rax, qword [rbp]
mov rax, qword [rax]
mov rbx, qword [rax + rdi]
add rdi, 8
test rbx, rbx
jne 0x1400acce8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x60]
mov r8d, 4
mov rcx, rsi
mov dword [rsp + 0x60], eax
call fcn.1400e3fd0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x64]
mov r8d, 4
mov rcx, rsi
mov dword [rsp + 0x64], eax
call fcn.1400e3fd0
call fcn.14000df90
lea rdx, [rsp + 0xd8]
mov r8d, 8
mov rcx, rsi
mov qword [rsp + 0xd8], rax
call fcn.1400e3fd0
mov rdi, qword [0x14041fc80]
mov rax, qword [rsp + 0x1e8]
sub rax, qword [rdi]
jne 0x1400ace33
add rsp, 0x1f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r14d, r14d
je 0x1400acdf8
mov eax, dword [rsp + 0x38]
cmp r14d, eax
jne 0x1400ac9a4
add r15d, 1
cmp dword [rsp + 0x3c], r15d
jae 0x1400ac960
jmp 0x1400aca6b
test dword [rsp + 0x70], 0xff00
jne 0x1400ac9a4
add r15d, 1
cmp dword [rsp + 0x3c], r15d
jae 0x1400ac960
jmp 0x1400aca6b
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x1400aca5c
mov r14d, 1
jmp 0x1400ac9b5
mov rcx, rbx
mov edx, 0x100
call fcn.14018e4f0
mov rdx, rbx
mov rcx, rsi
mov r8, rax
call fcn.1400e3fd0
jmp 0x1400accc8
call fcn.14018c640
nop
nop dword [rax]