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

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov esi, 0x104
lea rcx, [rsp + 0x70]
mov r8d, esi
xor edx, edx
xor r12d, r12d
call fcn.140107f60
mov dword [rsp + 0x6c], esi
lea r14, [rsp + 0x70]
mov qword [rsp + 0x60], r12
test r13, r13
je 0x1400f6fab
mov qword [rsp + 0x190], r15
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x70]
lea r15, str.Failed_getting_user_name
call qword [sym.imp.ADVAPI32.DLL_GetUserNameA]
test eax, eax
je 0x1400f6f71
cmp dword [0x14027edf0], 4
mov qword [rsp + 0x1e0], rbx
jl 0x1400f6d5a
test dword [0x14027ee6c], 0x10000
je 0x1400f6d5a
lea ebx, [r12 + 1]
jmp 0x1400f6d5c
xor ebx, ebx
mov edx, 4
mov ecx, 0x10000
call fcn.1400e8cc0
test ebx, ebx
jne 0x1400f6d73
test eax, eax
je 0x1400f6dbe
lea rcx, [rsp + 0x70]
mov r9d, 4
mov qword [rsp + 0x40], rcx
mov r8d, 0x10000
lea rcx, str.User_Name_is__s_n
mov edx, eax
mov qword [rsp + 0x38], rcx
lea rcx, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_named_pipe.c
mov dword [rsp + 0x30], 0xf1
mov qword [rsp + 0x28], rcx
lea rcx, str.GetProcessSid
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call fcn.1400bfc30
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.140108100
test rax, rax
je 0x1400f6de7
lea r14, [rax + 1]
mov byte [rax], r12b
lea r12, [rsp + 0x70]
test r14, r14
je 0x1400f6f69
xor eax, eax
mov qword [rsp + 0x198], rdi
xor edi, edi
mov dword [rsp + 0x58], esi
xor ebx, ebx
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x68], eax
test eax, eax
je 0x1400f6e1d
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, dword [rsp + 0x58]
mov rbx, rax
mov eax, dword [rsp + 0x5c]
test esi, esi
je 0x1400f6e39
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, dword [rsp + 0x58]
mov rdi, rax
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x1400f6e46
test rbx, rbx
je 0x1400f6ed5
test esi, esi
je 0x1400f6e53
test rdi, rdi
je 0x1400f6ed5
lea rax, [rsp + 0x68]
mov r8, rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x5c]
lea rax, [rsp + 0x58]
mov rdx, r14
mov qword [rsp + 0x28], rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.DLL_LookupAccountNameA]
test eax, eax
je 0x1400f6e96
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
jne 0x1400f6edc
lea esi, [rax + 0xd]
jmp 0x1400f6e9e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test rbx, rbx
je 0x1400f6eae
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
test rdi, rdi
je 0x1400f6ebc
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor edi, edi
cmp esi, 0x7a
jne 0x1400f6efc
test rbx, rbx
jne 0x1400f6efc
mov esi, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
jmp 0x1400f6e01
mov esi, 0xe
jmp 0x1400f6f00
mov eax, dword [rsp + 0x68]
test eax, eax
jle 0x1400f6ef5
cmp eax, 2
jle 0x1400f6ef1
add eax, 0xfffffffc
cmp eax, 1
ja 0x1400f6ef5
xor esi, esi
jmp 0x1400f6f10
mov esi, 0x4e9
jmp 0x1400f6f00
test esi, esi
je 0x1400f6f10
test rbx, rbx
je 0x1400f6f10
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
test rdi, rdi
je 0x1400f6f1e
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rdi, qword [rsp + 0x198]
test esi, esi
jne 0x1400f6f5b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.ADVAPI32.DLL_ConvertSidToStringSidA
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400f6f58
mov r8, qword [rsp + 0x60]
mov r9, 0xffffffffffffffff
mov rdx, rax
mov rcx, r13
call fcn.140115e08
mov r15, r13
test rbx, rbx
je 0x1400f6f69
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rbx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400f6f81
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rax, r15
mov r15, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140106650
add rsp, 0x1a0
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
lea rax, str.Invalid_Buffer
jmp 0x1400f6f8c