Function at 0x14018af10
Capabilities:
Get user security identifier
Manipulate user privileges

Disassembly:
sub rsp, 0x208
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov dword [rsp + 0x1a0], 0x80
mov dword [rsp + 0x44], 0x80
mov ecx, dword [rsp + 0x1a0]
call fcn.140072250
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x1a8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1a0]
mov r8, qword [rsp + 0x1a8]
lea rdx, [0x140246580]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LookupAccountName__d
mov ecx, 1
call fcn.1400dcf70
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x14018afd0
xor eax, eax
jmp 0x14018b243
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.1400a87c0
lea r9, [rsp + 0x48]
mov r8d, 0x20fff
lea rdx, [rsp + 0x170]
xor ecx, ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
mov dword [rsp + 0x1c0], eax
cmp dword [rsp + 0x1c0], 0
je 0x14018b04e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaOpenPolicy__d
mov ecx, 1
call fcn.1400dcf70
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.140072248
xor eax, eax
jmp 0x14018b243
lea rax, str.SeLockMemoryPrivilege
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400a8944
shl rax, 1
mov word [rsp + 0x52], ax
movzx eax, word [rsp + 0x52]
mov word [rsp + 0x50], ax
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0x1b8]
mov rdx, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaEnumerateAccountRights
mov dword [rsp + 0x1c0], eax
cmp dword [rsp + 0x1c0], 0
jne 0x14018b169
mov dword [rsp + 0x1c4], 0
jmp 0x14018b0cb
mov eax, dword [rsp + 0x1c4]
add eax, 1
mov dword [rsp + 0x1c4], eax
mov eax, dword [rsp + 0x1b0]
cmp dword [rsp + 0x1c4], eax
jae 0x14018b167
lea rcx, [0x140246620]
call fcn.1400a8944
mov r8, rax
mov eax, dword [rsp + 0x1c4]
imul rax, rax, 0x10
lea rdx, [0x140246650]
mov rcx, qword [rsp + 0x1b8]
mov rcx, qword [rcx + rax + 8]
call fcn.1400ab814
test eax, eax
jne 0x14018b162
lea rdx, [0x140246680]
mov ecx, 1
call fcn.1400dcf70
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1d8]
call fcn.140072248
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x14018b243
jmp 0x14018b0ba
jmp 0x14018b18a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaEnumerateAccountRights__d
mov ecx, 1
call fcn.1400dcf70
xor eax, eax
jmp 0x14018b243
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaAddAccountRights
mov dword [rsp + 0x1c0], eax
cmp dword [rsp + 0x1c0], 0
je 0x14018b20a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaAddAccountRights__d
mov ecx, 1
call fcn.1400dcf70
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e0], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.140072248
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x14018b243
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e8], rax
mov rcx, qword [rsp + 0x1e8]
call fcn.140072248
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
mov eax, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x208
ret