Function at 0x140027aa0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rdi, qword [0x1400ff520]
xor ebx, ebx
or r14d, 0xffffffff
mov esi, ebx
cmp dword [0x1400eee88], ebx
mov r12d, ebx
je 0x140027aed
xor eax, eax
jmp 0x140027e4d
mov qword [rsp + 0x538], r15
call fcn.140084fc0
mov r8, qword [0x1400ff528]
lea rdx, str.get_user_groups
lea rcx, str._s:_extracting_all_groups_of_user__s
mov r15, rbx
mov dword [rax], ebx
call fcn.140046c40
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], shutdown
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140027b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.get_user_groups
lea rcx, str._s:_GetComputerNameW___failed:__d
call fcn.140046c70
call fcn.140084fc0
mov dword [rax], 0x83
jmp 0x140027e1e
xor r9d, r9d
mov dword [rsp + 0x40], ebx
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140027b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140027ba1
mov ecx, dword [rsp + 0x40]
call fcn.140088334
mov rsi, rax
test rax, rax
jne 0x140027bcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_GetTokenInformation___failed:__d
lea rdx, str.get_user_groups
mov r8d, eax
call fcn.140046c70
call fcn.140084fc0
mov dword [rax], 0x83
jmp 0x140027ddd
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x20], rax
mov edx, 2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140027c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._s:_GetTokenInformation___failed_with_error__d
jmp 0x140027bae
mov ecx, dword [rsi]
shl rcx, 3
call fcn.140088334
mov r15, rax
test rax, rax
jne 0x140027c23
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x140027ddd
mov r14d, ebx
mov qword [rsp + 0x530], r13
cmp dword [rsi], ebx
jbe 0x140027dae
mov qword [rsp + 0x58], rbx
nop dword [rax + rax]
mov edi, r14d
add rdi, rdi
test byte [rsi + rdi*8 + 0x10], 4
je 0x140027da2
mov rcx, qword [rsi + rdi*8 + 8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140027da2
mov r13, qword [rsi + rdi*8 + 8]
mov rcx, r13
mov dword [rsp + 0x60], ebx
mov word [rsp + 0x64], 0x500
mov edi, dword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov ecx, ebx
cmp ebx, dword [rax]
jne 0x140027da2
movzx ecx, word [rsp + 0x64]
cmp cx, word [rax + 4]
jne 0x140027da2
cmp edi, 0x15
je 0x140027ca8
cmp edi, 0x20
jne 0x140027da2
lea rax, [rsp + 0x48]
mov dword [rsp + 0x50], 0x101
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], shutdown
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x1e0]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov rdx, r13
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x140027e87
mov rax, qword [rsp + 0x58]
inc r12d
mov r13, rax
inc rax
mov qword [rsp + 0x58], rax
cmp edi, 0x20
je 0x140027d4b
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140087f48
test eax, eax
je 0x140027d4b
lea rax, [rbp + 0x1e0]
mov edx, 0x111
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8, [0x1400d2b88]
lea rcx, [rbp - 0x50]
call fcn.1400284e0
jmp 0x140027d67
lea r9, [rbp + 0x1e0]
mov edx, 0x111
lea r8, [0x1400d2b7c]
lea rcx, [rbp - 0x50]
call fcn.1400284e0
mov edx, 0x111
lea rcx, [rbp - 0x50]
call fcn.1400882e0
mov r8, qword [0x1400ff528]
lea rdx, [rbp - 0x50]
lea rcx, str.Added_group__ls_for_user__s
call fcn.140046c70
lea rcx, [rbp - 0x50]
call fcn.140034090
mov qword [r15 + r13*8], rax
test rax, rax
je 0x140027e73
inc r14d
cmp r14d, dword [rsi]
jb 0x140027c40
movsxd rdx, r12d
mov rcx, r15
mov dword [0x1400ff514], r12d
lea rdx, [rdx*8]
call fcn.1400880e0
mov qword [0x1400ff518], rax
mov r15, rbx
mov r14d, ebx
mov r13, qword [rsp + 0x530]
test rsi, rsi
je 0x140027dea
mov rcx, rsi
call fcn.14007a8b4
test r15, r15
je 0x140027e1e
test r12d, r12d
je 0x140027e1e
movsxd rdi, r12d
jle 0x140027e16
nop dword [rax]
mov rcx, qword [r15 + rbx*8]
test rcx, rcx
je 0x140027e0e
call fcn.14007a8b4
inc rbx
cmp rbx, rdi
jl 0x140027e00
mov rcx, r15
call fcn.14007a8b4
mov r8, qword [0x1400ff528]
lea rdx, str.get_user_groups
lea rcx, str._s:_done_extracting_all_groups_of_user__s
call fcn.140046c40
mov r15, qword [rsp + 0x538]
mov eax, r14d
mov dword [0x1400eee88], 1
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140078840
mov rbx, qword [rsp + 0x540]
add rsp, 0x500
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140084fc0
or r14d, 0xffffffff
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x140027dd5
call fcn.140084fc0
mov dword [rax], 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.get_user_groups
lea rcx, str._s:_LookupAccountSid___failed:__d.
call fcn.140046c10
or r14d, 0xffffffff
jmp 0x140027dd5