Function at 0x1800363e0
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801fdc38]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r13
mov word [rsp + 0x60], r13w
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r13
mov word [rbp - 0x78], r13w
lea edx, [r13 + 5]
lea rcx, [rbp + 0x28]
call fcn.180036200
mov rdi, rax
lea edx, [r13 + 7]
lea rcx, [rbp]
call fcn.180036200
nop
lea r8, [0x18019bef0]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.180007fc0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1800368f0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.180015b20
nop
cmp qword [rbp - 0x10], 8
jb 0x1800364ac
mov rcx, qword [rbp - 0x28]
call fcn.1801196dc
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
cmp qword [rbp - 0x38], 8
jb 0x1800364cd
mov rcx, qword [rbp - 0x50]
call fcn.1801196dc
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
cmp qword [rbp + 0x18], 8
jb 0x1800364ee
mov rcx, qword [rbp]
call fcn.1801196dc
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
cmp qword [rbp + 0x40], 8
jb 0x18003650f
mov rcx, qword [rbp + 0x28]
call fcn.1801196dc
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x48], 1
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x18003661a
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x1800365f4
cmp qword [rbx + 0x18], 8
jb 0x18003658d
mov rcx, qword [rbx]
call fcn.1801196dc
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov rcx, qword [rsp + 0x78]
cmp rcx, 8
jae 0x1800365c6
mov r8, qword [rsp + 0x70]
lea r8, [r8 + r8 + 2]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180119850
mov rcx, qword [rsp + 0x78]
jmp 0x1800365d3
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
mov qword [rsp + 0x60], r13
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r13
mov word [rsp + 0x60], r13w
cmp qword [rbp - 0x60], 8
jb 0x180036604
mov rcx, qword [rbp - 0x78]
call fcn.1801196dc
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r13
mov word [rbp - 0x78], r13w
jmp 0x180036886
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
lea rcx, [rbp - 0x28]
call fcn.180036b40
nop
mov edx, dword [rsp + 0x44]
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
lea rcx, [rbp - 0x50]
call fcn.1800061a0
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov r12, qword [rbp - 0x50]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov rsi, qword [rbp - 0x28]
mov r8, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x180036763
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x180036721
cmp qword [rbx + 0x18], 8
jb 0x1800366ba
mov rcx, qword [rbx]
call fcn.1801196dc
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov rcx, qword [rsp + 0x78]
cmp rcx, 8
jae 0x1800366f3
mov r8, qword [rsp + 0x70]
lea r8, [r8 + r8 + 2]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180119850
mov rcx, qword [rsp + 0x78]
jmp 0x180036700
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
mov qword [rsp + 0x60], r13
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r13
mov word [rsp + 0x60], r13w
test r12, r12
je 0x18003672f
mov rcx, r12
call fcn.1801196dc
nop
test rsi, rsi
je 0x18003673d
mov rcx, rsi
call fcn.1801196dc
nop
cmp qword [rbp - 0x60], 8
jb 0x18003674d
mov rcx, qword [rbp - 0x78]
call fcn.1801196dc
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r13
mov word [rbp - 0x78], r13w
jmp 0x180036886
mov qword [rsp + 0x50], r13
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1800367b9
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x1800367b9
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1800367b9
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.180015970
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x180036849
cmp qword [rbx + 0x18], 8
jb 0x1800367e2
mov rcx, qword [rbx]
call fcn.1801196dc
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov rcx, qword [rsp + 0x78]
cmp rcx, 8
jae 0x18003681b
mov r8, qword [rsp + 0x70]
lea r8, [r8 + r8 + 2]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180119850
mov rcx, qword [rsp + 0x78]
jmp 0x180036828
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
mov qword [rsp + 0x60], r13
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r13
mov word [rsp + 0x60], r13w
test r12, r12
je 0x180036857
mov rcx, r12
call fcn.1801196dc
nop
test rsi, rsi
je 0x180036865
mov rcx, rsi
call fcn.1801196dc
nop
cmp qword [rbp - 0x60], 8
jb 0x180036875
mov rcx, qword [rbp - 0x78]
call fcn.1801196dc
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r13
mov word [rbp - 0x78], r13w
cmp qword [rsp + 0x78], 8
jb 0x180036898
mov rcx, qword [rsp + 0x60]
call fcn.1801196dc
mov rax, rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180119820
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret