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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14008d558]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov edi, 0x104
lea rcx, [rsp + 0x70]
mov r8d, edi
xor edx, edx
xor r12d, r12d
call fcn.1400158a0
mov dword [rsp + 0x6c], edi
lea r14, [rsp + 0x70]
mov qword [rsp + 0x60], r12
test r13, r13
je 0x1400116ea
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 0x1400116b0
cmp dword [0x14008d0b0], 4
mov qword [rsp + 0x1e0], rbx
jl 0x140011497
test dword [0x14008d12c], 0x10000
je 0x140011497
lea ebx, [r12 + 1]
mov ecx, 0x10000
lea edx, [rbx + 3]
call fcn.14000b080
jmp 0x1400114ac
mov edx, 4
mov ecx, 0x10000
call fcn.14000b080
xor ebx, ebx
test eax, eax
je 0x1400114f7
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.14000b530
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.140015d64
test rax, rax
je 0x140011520
lea r14, [rax + 1]
mov byte [rax], r12b
lea r12, [rsp + 0x70]
test r14, r14
je 0x1400116a8
xor eax, eax
mov qword [rsp + 0x198], rsi
xor esi, esi
mov dword [rsp + 0x58], edi
xor ebx, ebx
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x68], eax
nop word [rax + rax]
test eax, eax
je 0x14001155c
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [rsp + 0x58]
mov rbx, rax
mov eax, dword [rsp + 0x5c]
test edi, edi
je 0x140011578
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [rsp + 0x58]
mov rsi, rax
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x140011585
test rbx, rbx
je 0x140011614
test edi, edi
je 0x140011592
test rsi, rsi
je 0x140011614
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], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x1400115d5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x14001161b
lea edi, [rax + 0xd]
jmp 0x1400115dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test rbx, rbx
je 0x1400115ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
test rsi, rsi
je 0x1400115fd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
cmp edi, 0x7a
jne 0x14001163b
test rbx, rbx
jne 0x140011644
mov edi, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
jmp 0x140011540
mov edi, 0xe
jmp 0x14001163f
mov eax, dword [rsp + 0x68]
test eax, eax
jle 0x140011634
cmp eax, 2
jle 0x140011630
add eax, 0xfffffffc
cmp eax, 1
ja 0x140011634
xor edi, edi
jmp 0x14001164f
mov edi, 0x4e9
jmp 0x14001163f
test edi, edi
je 0x14001164f
test rbx, rbx
je 0x14001164f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
test rsi, rsi
je 0x14001165d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x198]
test edi, edi
jne 0x14001169a
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.ADVAPI32.dll_ConvertSidToStringSidA
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140011697
mov r8, qword [rsp + 0x60]
mov r9, 0xffffffffffffffff
mov rdx, rax
mov rcx, r13
call fcn.140025d24
mov r15, r13
test rbx, rbx
je 0x1400116a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400116c0
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.140014190
add rsp, 0x1a0
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
lea rax, str.Invalid_Buffer
jmp 0x1400116cb