Function at 0x140029360
Capabilities:
Check if file exists
Get logon sessions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0xa8], xmm0
lea rcx, str.localhost
call qword [sym.imp.WTSAPI32.dll_WTSOpenServerW]
mov rbx, rax
mov byte [rbp], r12b
mov qword [rbp - 0x60], rax
lea rax, [rbp]
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x50], 1
lea ecx, [r12 + 0x18]
call fcn.1400f89d8
mov r15, rax
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_resource_void____ptr64__class__lambda_517749c7661d1502921330507a69b29e__.0
mov qword [r15], rax
mov qword [r15 + 0x10], rbx
mov qword [rbp + 0xa8], rbx
mov qword [rbp + 0xb0], r15
lea r14, [r12 - 1]
test rbx, rbx
jne 0x1400294d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x1400294bc
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
mov edx, ebx
lea rcx, [rbp + 0x28]
call fcn.14002bbe0
nop
mov r12d, 1
mov dword [rsp + 0x30], r12d
cmp qword [rax + 0x18], 0x10
jb 0x1400294a4
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_GetActiveLogonUser:_WTSOpenServer_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001efa0
nop
test r12b, 1
je 0x140029a08
lea rcx, [rbp + 0x28]
call fcn.1400091f0
jmp 0x140029a08
lea rax, [rbp + 0xc]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x1400295a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x140029590
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
mov edx, ebx
lea rcx, [rbp + 0x28]
call fcn.14002bbe0
nop
mov r12d, 2
mov dword [rsp + 0x30], r12d
cmp qword [rax + 0x18], 0x10
jb 0x14002957a
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_GetActiveLogonUser:_WTSEnumerateSessions_failed__s
mov edx, r12d
mov rcx, rdi
call fcn.14001efa0
nop
test r12b, 2
je 0x140029a08
lea rcx, [rbp + 0x28]
call fcn.1400091f0
jmp 0x140029a08
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
xor r13d, r13d
mov qword [rbp + 0x20], r13
xor ebx, ebx
mov rdi, qword [rbp + 0x18]
cmp dword [rbp + 0xc], ebx
jbe 0x14002961b
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbx + rbx*2]
mov rax, qword [rbp - 8]
lea r8, [rax + rcx*8]
mov eax, dword [r8 + 0x10]
test eax, 0xfffffffa
jne 0x140029614
cmp eax, 5
je 0x140029614
cmp rdi, r13
je 0x140029600
mov eax, dword [r8]
mov dword [rdi], eax
add rdi, 4
mov qword [rbp + 0x18], rdi
jmp 0x140029614
mov rdx, rdi
lea rcx, [rbp + 0x10]
call fcn.14002eb60
mov r13, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x18]
inc ebx
cmp ebx, dword [rbp + 0xc]
jb 0x1400295d0
xor ebx, ebx
mov dword [rbp + 8], ebx
mov qword [rbp - 0x10], rbx
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 8]
call qword [sym.imp.Secur32.dll_LsaEnumerateLogonSessions]
test eax, eax
je 0x1400296ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x1400296d4
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
mov edx, ebx
lea rcx, [rbp + 0x28]
call fcn.14002bbe0
nop
mov r12d, 4
mov dword [rsp + 0x30], r12d
cmp qword [rax + 0x18], 0x10
jb 0x1400296bc
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_GetActiveLogonUser:_LsaEnumerateLogonSessions_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001efa0
nop
test r12b, 4
je 0x1400299c5
lea rcx, [rbp + 0x28]
call fcn.1400091f0
jmp 0x1400299c5
mov esi, ebx
cmp dword [rbp + 8], ebx
jbe 0x1400299ba
nop word [rax + rax]
mov ecx, esi
mov rax, qword [rbp - 0x10]
lea rcx, [rax + rcx*8]
lea rdx, [rbp - 0x18]
call qword [sym.imp.Secur32.dll_LsaGetLogonSessionData]
mov ebx, eax
test eax, eax
jne 0x140029a65
mov r8, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
xor ebx, ebx
mov edx, ebx
cmp rax, rdi
je 0x1400299a6
mov r9d, dword [r8 + 0x44]
nop word [rax + rax]
mov rcx, rdx
inc rdx
cmp dword [rax], r9d
cmovne rdx, rcx
add rax, 4
cmp rax, rdi
jne 0x140029740
test rdx, rdx
je 0x1400299a6
mov eax, dword [r8 + 0x40]
sub eax, 2
test eax, 0xfffffff7
jne 0x1400299a6
mov rdx, qword [r8 + 0x60]
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], bx
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x1400297a0
lea rcx, [rbp + 0x88]
call fcn.140009050
nop
cmp qword [rbp + 0x98], 0
jne 0x1400297d2
lea rcx, [rbp + 0x88]
call fcn.140008fe0
jmp 0x1400299af
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 0x28]
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], bx
mov r8, r14
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400297f4
lea rcx, [rbp + 0x68]
call fcn.140009050
nop
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 0x18]
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], bx
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140029830
lea rcx, [rbp + 0x48]
call fcn.140009050
nop
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov r8d, 1
lea rdx, [0x14015c270]
lea rcx, [rbp - 0x80]
call fcn.140009050
nop
lea r8, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae r8, qword [rbp + 0x68]
mov r9, qword [rbp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.14002f160
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
or r12d, 0x10
lea rdx, [rbp + 0x48]
cmp qword [rbp + 0x60], 8
cmovae rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.1400191f0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
or r12d, 0x20
mov dword [rsp + 0x30], r12d
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14001b3f0
nop
lea rcx, [rsp + 0x40]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x60]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x80]
call fcn.140008fe0
mov rax, qword [rbp - 0x18]
mov ebx, dword [rax + 0x44]
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.14002e9e0
mov rcx, qword [rax]
mov dword [rcx + 0x40], ebx
lea rcx, [rbp + 0x28]
call fcn.1400091f0
nop
lea rcx, [rbp + 0x48]
call fcn.140008fe0
nop
lea rcx, [rbp + 0x68]
call fcn.140008fe0
nop
lea rcx, [rbp + 0x88]
call fcn.140008fe0
mov r8, qword [rbp - 0x18]
xor ebx, ebx
mov rcx, r8
call qword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
inc esi
cmp esi, dword [rbp + 8]
jb 0x140029700
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140029a08
sub r13, rcx
sar r13, 2
lea rdx, [r13*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029a02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029b1e
call fcn.1400f89d0
nop
mov eax, r14d
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x140029a33
mov rdx, qword [r15]
mov rcx, r15
call qword [rdx]
lock xadd dword [r15 + 0xc], r14d
cmp r14d, 1
jne 0x140029a33
mov rdx, qword [r15]
mov rcx, r15
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x140029b06
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rdi, rax
mov edx, ebx
lea rcx, [rbp - 0x38]
call fcn.14002bbe0
nop
or r12d, 8
mov dword [rsp + 0x30], r12d
cmp qword [rax + 0x18], 0x10
jb 0x140029aee
mov rax, qword [rax]
mov r9, rax
lea r8, str.WindowsImpersonatorAgent_GetActiveLogonUser:_LsaGetLogonSessionData_failed__s
mov edx, 2
mov rcx, rdi
call fcn.14001efa0
nop
test r12b, 8
je 0x1400299c5
lea rcx, [rbp - 0x38]
call fcn.1400091f0
jmp 0x1400299c5
call fcn.14010347c
int3