Function at 0x14004a730
Capabilities:
Get hostname
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rdx, [rbp - 0x15]
mov dword [rbp - 0x19], reloc.WS2_32.dll_recv
lea rcx, [rbp + 0x37]
mov dword [rbp - 0x15], reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor edi, edi
test eax, eax
jne 0x14004a7de
lea rax, [0x14010b618]
mov ecx, edi
cmp ecx, 0x10
jae 0x14004a78f
inc rax
inc ecx
cmp byte [rax], dil
jne 0x14004a780
lea eax, [rcx + 1]
cmp eax, 0x10
jbe 0x14004a7c4
lea r9, str.ymemory
mov dword [rsp + 0x20], 0x14c
lea r8, str.YPANIC:_s:_d_n
mov edx, 0x14c
lea rcx, str.ymemory
call fcn.14000a9a0
mov byte [rbp + 0x37], dil
jmp 0x14004a7de
mov ebx, ecx
lea rdx, [0x14010b618]
mov r8d, ecx
lea rcx, [rbp + 0x37]
call fcn.140050fe0
mov byte [rbp + rbx + 0x37], dil
lea rax, [0x14010e528]
mov ecx, edi
cmp ecx, 0x12
jae 0x14004a7f6
inc rax
inc ecx
cmp byte [rax], dil
jne 0x14004a7e7
lea eax, [rcx + 1]
cmp eax, 0x12
jbe 0x14004a82d
lea r9, str.ymemory
mov dword [rsp + 0x20], 0x14c
lea r8, str.YPANIC:_s:_d_n
mov edx, 0x14c
lea rcx, str.ymemory
call fcn.14000a9a0
mov ecx, edi
mov byte [rbp + 0x1f], dil
jmp 0x14004a861
mov ebx, ecx
lea rdx, [0x14010e528]
mov r8d, ecx
lea rcx, [rbp + 0x1f]
call fcn.140050fe0
mov ecx, edi
mov byte [rbp + rbx + 0x1f], dil
lea rax, [rbp + 0x1f]
cmp byte [rbp + 0x1f], cl
je 0x14004a861
cmp ecx, 0x12
jae 0x14004a861
inc rax
inc ecx
cmp byte [rax], dil
jne 0x14004a852
lea eax, [rcx + 1]
cmp eax, 0x12
jbe 0x14004a892
lea r9, str.ymemory
mov dword [rsp + 0x20], 0x164
lea r8, str.YPANIC:_s:_d_n
mov edx, 0x164
lea rcx, str.ymemory
call fcn.14000a9a0
jmp 0x14004a8b1
mov eax, ecx
lea r8, [rbp + 0x37]
mov edx, reloc.WS2_32.dll_select
mov r9d, reloc.WS2_32.dll_select
sub edx, ecx
lea rcx, [rbp + 0x1f]
add rcx, rax
call fcn.1400217c0
lea r8, [rbp - 9]
lea rdx, str.SeShutdownPrivilege
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14004aa43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x11]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14004aa43
mov rax, qword [rbp - 9]
lea r8, [rbp + 0xf]
mov rcx, qword [rbp - 0x11]
mov r9d, reloc.WS2_32.dll_recv
mov qword [rbp + 0x13], rax
xor edx, edx
lea rax, [rbp - 0x19]
mov dword [rbp + 0xf], 1
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x1b], edi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rax, qword [rbp - 9]
lea r8, [rbp - 1]
mov r9d, dword [rbp - 0x19]
xor edx, edx
mov rcx, qword [rbp - 0x11]
or dword [rbp + 0xb], 2
mov qword [rsp + 0x28], rdi
mov qword [rbp + 3], rax
mov dword [rbp - 1], 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14004a969
lea rcx, str.Shutdown:_problem_setting_privileges_n
call fcn.140041200
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Shutdown_in_progress_n
call fcn.140041200
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, str.The_Virtual_hub_is_shutting_down_your_computer
lea rcx, [rbp + 0x1f]
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14004aa43
cmp eax, 0x35
jne 0x14004a9d4
lea rcx, str.Shutdown:_failed_with_code
call fcn.140041200
lea ecx, [rbx + 0x35]
call fcn.1400411b0
lea rcx, str.._Retrying_shutdown_without_providing_a_network_path_n
call fcn.140041200
xor ecx, ecx
jmp 0x14004aa02
cmp eax, 5
jne 0x14004aa1e
lea rcx, str.Shutdown:_failed_with_code
call fcn.140041200
mov ecx, 5
call fcn.1400411b0
lea rcx, str.._Retrying_shutdown_with_127.0.0.1_n
call fcn.140041200
lea rcx, str.127.0.0.1
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, str.The_Virtual_hub_is_shutting_down_your_computer
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x14004aa43
lea rcx, str.Shutdown:_failed_with_code
call fcn.140041200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400411b0
lea rcx, reloc.WS2_32.dll_ioctlsocket
call fcn.140041200
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14004ee60
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret