Function at 0x1800011f0
Capabilities:
Compare security identifiers
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4f8
mov rax, qword [0x180033080]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov byte [rsp + 0x2a2], 0
mov dword [rsp + 0x60], 0x101
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x2d0]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
movzx eax, al
test eax, eax
jne 0x180001287
lea rdx, str.Failed_to_get_current_username.
lea rcx, [0x180034500]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
lea rax, [rsp + 0xa0]
mov rdi, qword [rsp + 0x510]
mov rsi, rax
mov ecx, 0x204
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x510]
jmp 0x1800016fa
mov dx, 0x5c
lea rcx, [rsp + 0x2d0]
call fcn.180005510
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1800012ee
lea rdx, str.Invalid_username_format.
lea rcx, [0x180034500]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
lea rax, [rsp + 0xa0]
mov rdi, qword [rsp + 0x510]
mov rsi, rax
mov ecx, 0x204
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x510]
jmp 0x1800016fa
xor eax, eax
mov rcx, qword [rsp + 0x68]
mov word [rcx], ax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x68]
add rax, 2
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.18000f094
lea rdx, str.Current_user:
lea rcx, [0x1800343d0]
call fcn.180001800
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.180001800
lea rdx, str.__Domain:
mov rcx, rax
call fcn.180001800
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0x10
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x2d0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [rsp + 0x48]
mov ecx, eax
call fcn.18000f48c
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x2d0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18000146c
lea rdx, str.Failed_to_lookup_account_name.
lea rcx, [0x180034500]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov rcx, qword [rsp + 0x40]
call fcn.18000f478
lea rax, [rsp + 0xa0]
mov rdi, qword [rsp + 0x510]
mov rsi, rax
mov ecx, 0x204
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x510]
jmp 0x1800016fa
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x1800014bb
lea rdx, str.User_SID:
lea rcx, [0x1800343d0]
call fcn.180001800
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800014dd
lea rdx, str.Failed_to_convert_user_SID_to_string.
lea rcx, [0x180034500]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
lea r9, [rsp + 0x88]
mov r8d, 1
lea rdx, section..data
xor ecx, ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jge 0x180001557
lea rdx, str.Failed_to_open_policy.
lea rcx, [0x180034500]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov rcx, qword [rsp + 0x40]
call fcn.18000f478
lea rax, [rsp + 0xa0]
mov rdi, qword [rsp + 0x510]
mov rsi, rax
mov ecx, 0x204
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x510]
jmp 0x1800016fa
lea r8, [rsp + 0x58]
mov edx, 0xc
mov rcx, qword [rsp + 0x88]
call sub.ADVAPI32.dll_LsaQueryInformationPolicy
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jl 0x18000169f
lea rdx, [rsp + 0x80]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x1800015d7
lea rdx, str.Primary_domain_SID:
lea rcx, [0x1800343d0]
call fcn.180001800
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x40], 0
je 0x180001671
lea rdx, str.Comparing_user_SID_with_primary_domain_SID...
lea rcx, [0x1800343d0]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x18000164d
lea rdx, str.Logged_in_as_a_domain_user.
lea rcx, [0x1800343d0]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov byte [rsp + 0x2a2], 1
jmp 0x18000166f
lea rdx, str.Logged_in_as_a_local_user.
lea rcx, [0x1800343d0]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
jmp 0x180001693
lea rdx, str.Primary_domain_SID_is_null.
lea rcx, [0x180034500]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov rcx, qword [rsp + 0x58]
call sub.ADVAPI32.dll_LsaFreeMemory
jmp 0x1800016c1
lea rdx, str.Failed_to_query_policy_information.
lea rcx, [0x180034500]
call fcn.180001800
lea rdx, [0x180002220]
mov rcx, rax
call fcn.180003410
mov rcx, qword [rsp + 0x88]
call sub.ADVAPI32.dll_LsaClose
mov rcx, qword [rsp + 0x40]
call fcn.18000f478
lea rax, [rsp + 0xa0]
mov rdi, qword [rsp + 0x510]
mov rsi, rax
mov ecx, 0x204
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x510]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180008160
add rsp, 0x4f8
pop rdi
pop rsi
ret