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

Disassembly:
sub rsp, 0x208
mov rax, qword [0x1402a25c0]
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.140071aa8
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.1400dc5d0
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x140186070
xor eax, eax
jmp 0x1401862e3
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.1400a8070
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 0x1401860ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaOpenPolicy__d
mov ecx, 1
call fcn.1400dc5d0
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.140071ab0
xor eax, eax
jmp 0x1401862e3
lea rax, str.SeLockMemoryPrivilege
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400a81f4
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 0x140186209
mov dword [rsp + 0x1c4], 0
jmp 0x14018616b
mov eax, dword [rsp + 0x1c4]
add eax, 1
mov dword [rsp + 0x1c4], eax
mov eax, dword [rsp + 0x1b0]
cmp dword [rsp + 0x1c4], eax
jae 0x140186207
lea rcx, [0x140241b00]
call fcn.1400a81f4
mov r8, rax
mov eax, dword [rsp + 0x1c4]
imul rax, rax, 0x10
lea rdx, [0x140241b30]
mov rcx, qword [rsp + 0x1b8]
mov rcx, qword [rcx + rax + 8]
call fcn.1400a938c
test eax, eax
jne 0x140186202
lea rdx, str.SetLockPagePrivilege_Exists
mov ecx, 1
call fcn.1400dc5d0
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1d8]
call fcn.140071ab0
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x1401862e3
jmp 0x14018615a
jmp 0x14018622a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaEnumerateAccountRights__d
mov ecx, 1
call fcn.1400dc5d0
xor eax, eax
jmp 0x1401862e3
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 0x1401862aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaAddAccountRights__d
mov ecx, 1
call fcn.1400dc5d0
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e0], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.140071ab0
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x1401862e3
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e8], rax
mov rcx, qword [rsp + 0x1e8]
call fcn.140071ab0
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.1400a8040
add rsp, 0x208
ret