Function at 0x14001382c
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
sub rsp, 0x190
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x108], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp + 0xe8]
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
cmp eax, 1
sete al
test al, al
je 0x14001398e
mov dword [rbp + 0xa8], 4
mov dword [rbp + 0x104], 0
mov rax, qword [rbp + 0xe8]
lea rcx, [rbp + 0xac]
lea rdx, [rbp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
mov edx, 0x14
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
test eax, eax
setne al
test al, al
je 0x1400138d6
mov eax, dword [rbp + 0xac]
mov dword [rbp + 0x104], eax
mov dword [rbp + 0xa4], 0
mov rax, qword [rbp + 0xe8]
lea rdx, [rbp + 0xa4]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
mov eax, dword [rbp + 0xa4]
test eax, eax
je 0x14001397b
cmp dword [rbp + 0x104], 0
je 0x14001397b
mov eax, dword [rbp + 0xa4]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp + 0x108], rax
mov r8d, dword [rbp + 0xa4]
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp + 0xa4]
mov qword [rsp + 0x20], rdx
mov r9d, r8d
mov r8, rcx
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp qword [rbp + 0x108], 0
jne 0x1400139a2
mov eax, 0
jmp 0x140013c53
lea rax, [rbp + 0xb0]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x100], 0
lea rdx, [rbp + 0xe0]
lea rax, [rbp + 0xb0]
mov r9, rdx
mov r8d, 0xf0fff
mov rdx, rax
mov ecx, 0
call sym.LsaOpenPolicy
test eax, eax
sete al
test al, al
je 0x140013c3a
movabs rax, 0x6f004c00650053
movabs rdx, 0x65004d006b0063
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
movabs rax, 0x790072006f006d
movabs rdx, 0x76006900720050
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x670065006c0069
mov edx, 0x65
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
lea rax, [rbp - 0x50]
mov qword [rbp + 0x98], rax
mov word [rbp + 0x90], 0x2a
mov word [rbp + 0x92], 0x2c
mov qword [rbp + 0x88], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xfc], 0
mov rax, qword [rbp + 0x108]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xe0]
lea r8, [rbp + 0x84]
lea rcx, [rbp + 0x88]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.LsaEnumerateAccountRights
test eax, eax
sete al
test al, al
je 0x140013beb
mov qword [rbp + 0xf0], 0
jmp 0x140013bcb
mov rdx, qword [rbp + 0x88]
mov rax, qword [rbp + 0xf0]
shl rax, 4
add rax, rdx
movzx edx, word [rax]
movzx eax, word [rbp + 0x90]
cmp dx, ax
jne 0x140013bc3
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x88]
mov rax, qword [rbp + 0xf0]
shl rax, 4
add rax, rcx
mov rax, qword [rax + 8]
mov r8d, 0x2a
mov rcx, rax
call sym.memcmp
test eax, eax
jne 0x140013bc3
mov dword [rbp + 0xfc], 1
jmp 0x140013bdc
add qword [rbp + 0xf0], 1
mov eax, dword [rbp + 0x84]
mov eax, eax
cmp qword [rbp + 0xf0], rax
jb 0x140013b61
mov rax, qword [rbp + 0x88]
mov rcx, rax
call sym.LsaFreeMemory
cmp dword [rbp + 0xfc], 0
jne 0x140013c2b
mov rax, qword [rbp + 0x108]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xe0]
lea rcx, [rbp + 0x90]
mov r9d, 1
mov r8, rcx
mov rcx, rax
call sym.LsaAddAccountRights
test eax, eax
sete al
movzx eax, al
mov dword [rbp + 0x100], eax
mov rax, qword [rbp + 0xe0]
mov rcx, rax
call sym.LsaClose
mov rax, qword [rbp + 0x108]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, dword [rbp + 0x100]
add rsp, 0x190
pop rbp
ret