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

Disassembly:
sub rsp, 0x208
mov rax, qword [0x1402bd5c0]
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.140073290
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.1400de020
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x140190500
xor eax, eax
jmp 0x140190773
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.1400a9850
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 0x14019057e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaOpenPolicy__d
mov ecx, 1
call fcn.1400de020
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.140073288
xor eax, eax
jmp 0x140190773
lea rax, str.SeLockMemoryPrivilege
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400a99d4
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 0x140190699
mov dword [rsp + 0x1c4], 0
jmp 0x1401905fb
mov eax, dword [rsp + 0x1c4]
add eax, 1
mov dword [rsp + 0x1c4], eax
mov eax, dword [rsp + 0x1b0]
cmp dword [rsp + 0x1c4], eax
jae 0x140190697
lea rcx, [0x140257ae0]
call fcn.1400a99d4
mov r8, rax
mov eax, dword [rsp + 0x1c4]
imul rax, rax, 0x10
lea rdx, [0x140257b10]
mov rcx, qword [rsp + 0x1b8]
mov rcx, qword [rcx + rax + 8]
call fcn.1400aab6c
test eax, eax
jne 0x140190692
lea rdx, [0x140257b40]
mov ecx, 1
call fcn.1400de020
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1d8]
call fcn.140073288
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x140190773
jmp 0x1401905ea
jmp 0x1401906ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaEnumerateAccountRights__d
mov ecx, 1
call fcn.1400de020
xor eax, eax
jmp 0x140190773
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 0x14019073a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LsaAddAccountRights__d
mov ecx, 1
call fcn.1400de020
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e0], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.140073288
mov rcx, qword [rsp + 0x1b8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x140190773
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1e8], rax
mov rcx, qword [rsp + 0x1e8]
call fcn.140073288
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.1400a9820
add rsp, 0x208
ret