Function at 0x1400324e0
Capabilities:
Get common file path
Get hostname
Get user security identifier
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x30450]
mov eax, 0x30550
call fcn.14009f8b0
sub rsp, rax
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rbp + 0x30440], rax
xor eax, eax
mov dword [rsp + 0x54], 0x8000
xor esi, esi
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x58], rsi
mov ebx, esi
mov qword [rsp + 0x60], rsi
mov r14, rdx
mov word [rsp + 0x68], si
mov rdi, rcx
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov dword [rbp - 0x7e], eax
mov word [rbp - 0x7a], ax
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x48], 0x44
mov dword [rsp + 0x44], shutdown
call fcn.140084fc0
mov dword [rax], esi
call fcn.140032430
test eax, eax
je 0x140032578
xor eax, eax
jmp 0x14003291f
test rdi, rdi
je 0x1400325cf
mov rcx, rdi
call fcn.14008b610
mov rbx, rax
test rax, rax
jne 0x1400325b3
call fcn.140084fc0
mov r8, rdi
lea rdx, str.get_passwd
lea rcx, str._s_failed_to_duplicate__s
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.140046b30
jmp 0x1400328fc
lea rdx, [0x1400d54a4]
mov rcx, rax
call fcn.140079700
test rax, rax
je 0x1400325cf
mov edx, 0x5c
mov word [rax], dx
test r14, r14
je 0x140032614
mov r8, r14
lea rdx, [rbp - 0x50]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x140032676
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034510
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
jmp 0x1400328fc
lea rax, [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x44]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400325e6
call fcn.140084fc0
mov dword [rax], 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.get_passwd
lea rcx, str._s:_LookupAccountName___failed:__d.
call fcn.140046c10
jmp 0x1400328fc
lea rax, [rsp + 0x40]
mov dword [rsp + 0x4c], 0x101
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], shutdown
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x230]
lea rax, [rsp + 0x68]
xor ecx, ecx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x1400326f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034510
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.get_passwd
lea rcx, str._s:_LookupAccountSid___failed:__d.
call fcn.140046c10
jmp 0x1400328fc
cmp dword [rsp + 0x40], 1
je 0x140032726
call fcn.140084fc0
lea rdx, str.get_passwd
lea rcx, str._s:_Invalid_account_type:__d.
mov dword [rax], 2
mov r8d, dword [rsp + 0x40]
call fcn.140046c70
jmp 0x1400328fc
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], shutdown
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1400328fc
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x68]
call fcn.140087f48
test eax, eax
jne 0x140032782
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x78]
call fcn.140087f48
test eax, eax
je 0x140032782
lea r8, [rbp + 0x230]
mov edx, 0x111
lea rcx, [rbp]
call fcn.1400885ec
jmp 0x1400327a8
lea rax, [rbp + 0x230]
mov edx, 0x111
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8, [0x1400d2b88]
lea rcx, [rbp]
call fcn.1400284e0
mov r9, qword [rsp + 0x58]
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_ls
mov edx, 0x8000
lea rcx, [rbp + 0x20440]
call fcn.1400284e0
cmp eax, 0xffffffff
je 0x140032862
lea rax, [rsp + 0x60]
mov r9d, 0x20101
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x20440]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140032862
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rdx, str.ProfileImagePath
lea rax, [rbp + 0x440]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140032862
xor r8d, r8d
lea rcx, [rbp + 0x440]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x8000
ja 0x140032862
mov r8d, 0x8000
lea rdx, [rbp + 0x10440]
lea rcx, [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140032899
mov edx, 0x8000
lea rcx, [rbp + 0x10440]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140032899
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetWindowsDirectoryW_failed_with__d
call fcn.140046c70
call fcn.140084fc0
mov dword [rax], 0x83
jmp 0x1400328fc
lea rax, [rbp]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x1400328a1
inc rdx
lea rcx, [rbp]
call fcn.1400882e0
lea rcx, [rbp]
call fcn.140034090
mov qword [0x14010fde0], rax
test rax, rax
je 0x1400328ec
lea rcx, [rbp + 0x10440]
call fcn.140034090
mov qword [0x14010fe00], rax
test rax, rax
je 0x1400328ec
lea rsi, [0x14010fde0]
jmp 0x1400328fc
call fcn.1400323f0
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003290c
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003291c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rbp + 0x30440]
xor rcx, rsp
call fcn.140078840
lea r11, [rsp + 0x30550]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret