Function at 0x1400011e0
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x2e0
lea rdi, [rsp + 0x40]
mov ecx, 0xa8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2f0]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xe00
call fcn.140138010
mov qword [rsp + 0x40], rax
mov r8d, 0x800
xor edx, edx
lea rcx, [0x1404da6b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x2c0]
mov qword [rax + 0x78], rcx
cmp qword [rsp + 0x2c0], 0
je 0x1400012bf
lea rdx, [0x1404da6c0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x2c8]
mov qword [rax + 0x80], rcx
cmp qword [rsp + 0x2c8], 0
jne 0x1400012bf
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.14013c5f0
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.140154380
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
mov eax, dword [rsp + 0x2f0]
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, [0x1404da6d8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 0
cmp qword [rsp + 0x78], 0
je 0x140001379
lea rdx, [0x1404da6e8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140001379
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x80], 0
je 0x1400013e4
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [rsp + 0x80]
test eax, eax
jne 0x1400013e2
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 + 0xa0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
jmp 0x1400013fe
mov rax, qword [rsp + 0x40]
add rax, 0x29c
mov edx, 0xff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostname]
nop
cmp qword [rsp + 0x78], 0
je 0x14000141a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx eax, byte [rsp + 0x59]
mov byte [rsp + 0x2d0], al
cmp byte [rsp + 0x2d0], 0x80
je 0x140001447
cmp byte [rsp + 0x2d0], 0xff
je 0x140001458
jmp 0x140001469
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xbac], 3
jmp 0x140001479
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xbac], 0
jmp 0x140001479
movzx eax, byte [rsp + 0x59]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0xbac], eax
movsxd rax, dword [0x140434b28]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.140138230
mov ecx, 8
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
mov qword [rax + rcx], rdx
mov rax, qword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14037c300
mov rax, rdi
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x2e0
pop rdi
ret