Function at 0x14000cff0
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x2a8
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xe00
call fcn.140113f90
mov qword [rsp + 0x40], rax
mov r8d, 0x800
xor edx, edx
lea rcx, [0x14032e770]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x78], rcx
cmp qword [rsp + 0x60], 0
je 0x14000d0a4
lea rdx, [0x14032e758]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x80], rcx
cmp qword [rsp + 0x68], 0
jne 0x14000d0a4
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x78], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xb9c], 4
mov ecx, 0x18
call fcn.140114d40
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.140125e90
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
mov eax, dword [rsp + 0x2b0]
or eax, 8
or eax, 0x10
bts eax, 8
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x298], eax
mov r8d, 0x800
xor edx, edx
lea rcx, [0x14032e748]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x48], 0
je 0x14000d155
lea rdx, str.GetHostNameW
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000d155
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x58], 0
je 0x14000d1b9
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [rsp + 0x58]
test eax, eax
jne 0x14000d1b7
mov rax, qword [rsp + 0x40]
add rax, 0x29c
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x80]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x14000d1d2
mov rax, qword [rsp + 0x40]
add rax, 0x29c
mov edx, 0xff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostname]
cmp qword [rsp + 0x48], 0
je 0x14000d1ee
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx eax, byte [rsp + 0x71]
mov byte [rsp + 0x50], al
cmp byte [rsp + 0x50], 0x80
je 0x14000d212
cmp byte [rsp + 0x50], 0xff
je 0x14000d223
jmp 0x14000d234
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xbac], 3
jmp 0x14000d244
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xbac], 0
jmp 0x14000d244
movzx eax, byte [rsp + 0x71]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0xbac], eax
movsxd rax, dword [0x1402ffe64]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.140114170
mov ecx, 8
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
mov qword [rax + rcx], rdx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x2a8
ret