Function at 0x1400355b8
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x38], 0
lea rdx, [0x1400486c8]
or r8d, 0xffffffff
mov r15, rcx
call fcn.14004401c
mov edi, eax
test eax, eax
js 0x1400357f6
lea rcx, [rbp - 0x10]
call fcn.140043534
lea rcx, [rbp - 0x20]
mov dword [rbp + 0x40], 0x7fff
call fcn.140043534
mov edx, dword [rbp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140043e38
mov edi, eax
test eax, eax
jns 0x14003562d
lea rcx, [rbp - 0x20]
call fcn.140043af4
lea rcx, [rbp - 0x10]
call fcn.140043af4
jmp 0x1400357f6
mov rdx, qword [rbp - 0x20]
lea r8, [rbp + 0x40]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x14003566e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140035661
lea edi, [rax + 0x57]
jmp 0x140035663
jle 0x140035616
movzx edi, di
or edi, 0x80070000
jmp 0x140035616
mov ebx, 0x44
mov edx, ebx
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140035693
mov edi, 0x8007000e
jmp 0x140035616
mov rdx, qword [rbp - 0x20]
lea rax, [rbp - 0x40]
and dword [rbp + 0x38], 0
lea r9, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov r8, rsi
lea rax, [rbp + 0x38]
mov dword [rbp + 0x48], ebx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test ebx, ebx
jne 0x1400356fa
cmp eax, 0x7a
je 0x1400356fa
test eax, eax
jle 0x1400357d5
movzx edi, ax
or edi, 0x80070000
jmp 0x1400357d5
lea rcx, [rbp - 0x30]
call fcn.140043534
mov edx, dword [rbp + 0x38]
lea rcx, [rbp - 0x30]
inc edx
call fcn.140043e38
mov edi, eax
test eax, eax
js 0x1400357cc
mov rdx, qword [rbp - 0x20]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x38]
mov r8, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test ebx, ebx
jne 0x140035772
test eax, eax
jle 0x1400357cc
movzx edi, ax
or edi, 0x80070000
jmp 0x1400357cc
lea rdx, [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
nop dword [rax + rax]
test eax, eax
jne 0x1400357a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1400357a0
lea edi, [rax + 0x57]
jmp 0x1400357a2
jle 0x1400357cc
movzx edi, di
jmp 0x14003576a
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x10]
or r8d, 0xffffffff
call fcn.14004401c
mov edi, eax
test eax, eax
js 0x1400357cc
mov rdx, qword [rbp - 0x10]
mov rcx, r15
call fcn.140043724
mov edi, eax
lea rcx, [rbp - 0x30]
call fcn.140043af4
lea rcx, [rbp - 0x20]
call fcn.140043af4
lea rcx, [rbp - 0x10]
call fcn.140043af4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14003580b
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x80
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret