Function at 0x140005f60
Capabilities:
Compare security identifiers
Get thread local storage value
Get user security identifier
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.1400e1740
sub rsp, rax
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x13b0], rax
mov r15, rcx
mov ecx, 2
call fcn.1400e8270
mov qword [rsp + 0x50], rax
xor r12d, r12d
mov word [rax], r12w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x78]
lea edx, [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006479
mov dword [rsp + 0x68], 0x1000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000
lea r8, [rbp + 0x3b0]
lea edx, [r12 + 1]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x78]
test eax, eax
jne 0x140006015
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006479
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], r12d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.System
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ecx, dword [rsp + 0x40]
call fcn.1400e8270
mov r14, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8, r14
lea rdx, str.System
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ecx, 0x620
call fcn.1400e8270
mov rdi, rax
mov qword [rbp - 0x80], rax
mov rdx, qword [rsp + 0x50]
lea r8, [rax + 8]
nop
movzx ecx, word [rdx]
mov word [r8], cx
lea rdx, [rdx + 2]
lea r8, [r8 + 2]
test cx, cx
jne 0x1400060b0
movups xmm0, xmmword [str..Default]
movups xmmword [rax + 8], xmm0
movzx eax, word [0x140124768]
mov word [rdi + 0x18], ax
mov rax, qword [0x1401791a8]
sub rax, qword [0x1401791a0]
sar rax, 3
mov dword [rdi + 4], eax
lea rsi, [rdi + 0x210]
lea r9, str.SYSTEM
lea r8, str.NT_AUTHORITY
lea rdx, [0x140124790]
mov rcx, rsi
call fcn.140017950
test r15, r15
je 0x14000614e
mov ebx, dword [rdi + 4]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetMenu]
mov rcx, rax
mov edx, 3
call qword [sym.imp.USER32.dll_GetSubMenu]
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov edx, 0xffffffff
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.USER32.dll_InsertMenuW]
mov rdx, qword [rbp + 0x3b0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14000616e
mov byte [rdi], 1
mov qword [0x140178378], rdi
jmp 0x140006171
mov byte [rdi], 0
lea rcx, [rdi + 0x418]
lea r9, str.Config
lea r8, [0x140178830]
lea rdx, [0x140124790]
call fcn.140017950
mov rdx, qword [0x1401791a8]
cmp rdx, qword [0x1401791b0]
je 0x1400061af
mov qword [rdx], rdi
add qword [0x1401791a8], 8
jmp 0x1400061bf
lea r8, [rbp - 0x80]
lea rcx, [0x1401791a0]
call fcn.140004910
mov ecx, dword [0x140178818]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
mov rcx, qword [0x14016aa18]
call fcn.140009290
test eax, eax
jne 0x140006469
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140018f50
test eax, eax
jne 0x14000645e
mov ecx, dword [0x140178818]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.140009290
test eax, eax
jne 0x140006441
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140124828]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006437
test byte [rsp + 0x6c], 8
jne 0x140006437
mov rcx, qword [rsp + 0x50]
call fcn.1400070b0
mov rsi, rax
test rax, rax
je 0x140006437
mov dword [rsp + 0x70], 0x104
mov dword [rsp + 0x44], 0x104
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x1a0]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x14000642e
mov ecx, 0x620
call fcn.1400e8270
mov rdi, rax
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x48], 0x208
lea rcx, [rax + 0x418]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProfileImagePath
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006426
mov rcx, qword [rsp + 0x50]
lea rdx, [rdi + 8]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x140006350
mov rax, qword [0x1401791a8]
sub rax, qword [0x1401791a0]
sar rax, 3
mov dword [rdi + 4], eax
lea r14, [rdi + 0x210]
lea r9, [rbp + 0x1a0]
lea r8, [rbp - 0x70]
lea rdx, [0x140124790]
mov rcx, r14
call fcn.140017950
test r15, r15
je 0x1400063d4
mov ebx, dword [rdi + 4]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetMenu]
mov rcx, rax
mov edx, 3
call qword [sym.imp.USER32.dll_GetSubMenu]
mov qword [rsp + 0x20], r14
mov r9d, ebx
mov edx, 0xffffffff
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.USER32.dll_InsertMenuW]
mov rdx, qword [rbp + 0x3b0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400063f4
mov byte [rdi], 1
mov qword [0x140178378], rdi
jmp 0x1400063f7
mov byte [rdi], 0
mov rdx, qword [0x1401791a8]
cmp rdx, qword [0x1401791b0]
je 0x140006414
mov qword [rdx], rdi
add qword [0x1401791a8], 8
jmp 0x14000642e
lea r8, [rbp - 0x80]
lea rcx, [0x1401791a0]
call fcn.140004910
jmp 0x14000642e
mov rcx, rdi
call fcn.1400e825c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r12d
lea r8, [rsp + 0x50]
mov edx, r12d
mov rcx, qword [rsp + 0x60]
call fcn.140018f50
test eax, eax
je 0x140006214
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.SeRestorePrivilege
call fcn.140006b20
test eax, eax
jne 0x1400064a2
test r15, r15
je 0x14000649b
mov rcx, r15
call qword [sym.imp.USER32.dll_GetMenu]
mov r8d, 0x400
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
mov byte [0x140177290], 1
mov rcx, qword [rsp + 0x50]
call fcn.1400e825c
mov rcx, qword [rbp + 0x13b0]
xor rcx, rsp
call fcn.1400e17a0
lea r11, [rsp + 0x14c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret