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

Disassembly:
sub rsp, 0x208
mov rax, qword [0x1402a15c0]
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.140071ab0
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, str.Everyone
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.1400dc610
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x140186100
xor eax, eax
jmp 0x140186373
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.1400a8080
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 0x14018617e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaOpenPolicy__d
mov ecx, 1
call fcn.1400dc610
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.140071aa8
xor eax, eax
jmp 0x140186373
lea rax, str.SeLockMemoryPrivilege
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400a8204
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 0x140186299
mov dword [rsp + 0x1c4], 0
jmp 0x1401861fb
mov eax, dword [rsp + 0x1c4]
add eax, 1
mov dword [rsp + 0x1c4], eax
mov eax, dword [rsp + 0x1b0]
cmp dword [rsp + 0x1c4], eax
jae 0x140186297
lea rcx, [0x140240b00]
call fcn.1400a8204
mov r8, rax
mov eax, dword [rsp + 0x1c4]
imul rax, rax, 0x10
lea rdx, [0x140240b30]
mov rcx, qword [rsp + 0x1b8]
mov rcx, qword [rcx + rax + 8]
call fcn.1400a939c
test eax, eax
jne 0x140186292
lea rdx, str.SetLockPagePrivilege_Exists
mov ecx, 1
call fcn.1400dc610
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1d8]
call fcn.140071aa8
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x140186373
jmp 0x1401861ea
jmp 0x1401862ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaEnumerateAccountRights__d
mov ecx, 1
call fcn.1400dc610
xor eax, eax
jmp 0x140186373
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 0x14018633a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaAddAccountRights__d
mov ecx, 1
call fcn.1400dc610
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e0], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.140071aa8
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x140186373
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e8], rax
mov rcx, qword [rsp + 0x1e8]
call fcn.140071aa8
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.1400a8050
add rsp, 0x208
ret