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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x104
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000652f
jmp 0x1400067da
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x4c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x208
mov dword [rsp + 0x68], 0x104
mov dword [rsp + 0x64], 7
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x2b0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400065b6
jmp 0x1400067da
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x1400065cd
jmp 0x1400067da
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400065ed
jmp 0x1400067da
mov dword [rsp + 0x40], 0
mov r9d, 1
lea r8, str.S__lu_
mov edx, 0x104
mov rcx, qword [rsp + 0x6f0]
call fcn.140005890
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x140006624
jmp 0x1400067da
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax]
mov ecx, 0x104
sub ecx, dword [rsp + 0x40]
mov ecx, ecx
mov rdx, qword [rsp + 0x6f0]
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rdx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x58]
cmp word [rdx + rdi*2], 0
jne 0x14000666a
mov rdx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x6f0]
lea rdx, [rdi + rdx*2]
mov qword [rsp + 0x90], rdx
mov r9d, eax
lea r8, [0x140024e28]
mov rdx, rcx
mov rax, qword [rsp + 0x90]
mov rcx, rax
call fcn.140005890
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x1400066c9
jmp 0x1400067da
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140006701
jmp 0x1400067da
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xf
jbe 0x140006719
jmp 0x1400067da
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x48], 0
jmp 0x140006735
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jae 0x1400067d0
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140006772
mov dword [rsp + 0x4c], 0
jmp 0x1400067d0
mov eax, 0x104
sub eax, dword [rsp + 0x40]
mov eax, eax
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x6f0]
lea rcx, [rdx + rcx*2]
mov rdx, qword [rsp + 0x80]
mov r9d, dword [rdx]
lea r8, str.__lu
mov edx, eax
call fcn.140005890
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x1400067bb
mov dword [rsp + 0x4c], 0
jmp 0x1400067d0
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14000672b
xor eax, eax
test eax, eax
jne 0x1400064f7
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140008d50
add rsp, 0x6e0
pop rdi
ret