Function at 0x1400013d0
Capabilities:
Get logon sessions
Terminate process

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x2de68]
mov eax, 0x2df68
call fcn.140002650
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x2de48], rax
xor edi, edi
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x6c]
mov dword [rbp - 0x6c], edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.Secur32.dll_LsaEnumerateLogonSessions]
test eax, eax
jns 0x14000142b
lea rcx, str.____Unable_to_acquire_sessions.
call fcn.140001070
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movzx eax, byte [0x1400034b8]
lea rdx, [rbp + 0x2de20]
movsd xmm0, qword [str.Kerberos]
mov rcx, 0xffffffffffffffff
mov byte [rbp + 0x2de28], al
mov rax, rcx
mov qword [rsp + 0x2df50], r15
mov r15, qword [rsp + 0x60]
mov dword [rbp - 0x7c], edi
mov dword [rbp - 0x70], edi
movsd qword [rbp + 0x2de20], xmm0
nop dword [rax]
inc rax
cmp byte [rdx + rax], dil
jne 0x140001470
movups xmm0, xmmword [str.User32LogonProcess]
mov word [rbp - 0x80], ax
lea rdx, [rbp + 0x2de20]
inc ax
mov qword [rbp - 0x78], rdx
mov word [rbp - 0x7e], ax
movzx eax, word [0x140003370]
mov word [rbp + 0x2de40], ax
movzx eax, byte [0x140003372]
mov byte [rbp + 0x2de42], al
lea rax, [rbp + 0x2de30]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x74], edi
mov dword [rbp - 0x68], edi
movups xmmword [rbp + 0x2de30], xmm0
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], dil
jne 0x1400014d0
mov word [rsp + 0x70], cx
lea rax, [rbp + 0x2de30]
inc cx
mov qword [rsp + 0x78], rax
mov word [rsp + 0x72], cx
lea r8, [rbp - 0x68]
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.Secur32.dll_LsaRegisterLogonProcess]
test eax, eax
jns 0x14000151f
lea rcx, str.____SeTCBPrivilege_not_held__bailing_out...
call fcn.140001070
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x2df60], r13
lea r8, [rbp - 0x70]
mov r13, qword [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.Secur32.dll_LsaLookupAuthenticationPackage]
test eax, eax
jns 0x140001565
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
mov edx, eax
lea rcx, str._s_n______Failed_LsaLookupAuthenticationPackage:
call fcn.140001070
mov rcx, r13
call qword [sym.imp.Secur32.dll_LsaDeregisterLogonProcess]
jmp 0x140001813
mov qword [rsp + 0x2df80], rbx
lea rcx, [rbp - 0x3c]
mov qword [rsp + 0x2df88], rsi
xor edx, edx
mov qword [rsp + 0x2df90], r12
mov r8d, 0x2de5c
mov qword [rsp + 0x2df58], r14
mov dword [rbp - 0x40], edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [rbp - 0x6c]
mov r14d, edi
mov qword [rsp + 0x40], rdi
mov ebx, edi
test esi, esi
je 0x140001700
lea rdi, [rbp - 0x38]
movsxd rax, ebx
lea rdx, [rsp + 0x40]
lea rcx, [r15 + rax*8]
call qword [sym.imp.Secur32.dll_LsaGetLogonSessionData]
test eax, eax
js 0x1400016f4
mov r8, qword [rsp + 0x40]
mov eax, dword [r8 + 0x40]
cmp eax, 2
je 0x1400015e6
add eax, 0xfffffff7
cmp eax, 1
ja 0x1400016f4
mov rax, qword [r8 + 4]
lea rdx, [rbp - 0x30]
mov rcx, qword [r8 + 0x18]
mov qword [rdi - 8], rax
mov dword [rdi], eax
movsxd rax, r14d
imul r9, rax, 0xeb0
mov rax, r9
sub rax, rcx
add rdx, rax
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001610
mov rcx, qword [r8 + 0x28]
lea rdx, [rbp + 0x98]
mov rax, r9
sub rax, rcx
add rdx, rax
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001640
mov rcx, qword [r8 + 0x70]
lea rdx, [rbp + 0x408]
mov rax, r9
sub rax, rcx
add rdx, rax
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001670
mov rcx, qword [r8 + 0x80]
lea rdx, [rbp + 0x4d0]
mov rax, r9
sub rax, rcx
add rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400016a0
mov rax, qword [r8 + 0x60]
lea rdx, [rbp + 0x340]
sub r9, rax
add rdx, r9
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x1400016d0
mov eax, dword [r8 + 0x44]
inc r14d
mov dword [rdi + 0xe98], eax
add rdi, 0xeb0
inc ebx
cmp ebx, esi
jb 0x1400015b2
xor edi, edi
mov rcx, r15
call qword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
mov qword [rsp + 0x48], rdi
mov esi, edi
mov dword [rbp - 0x58], 0xe
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x64], edi
movsxd r12, r14d
test r14d, r14d
jle 0x1400017f3
lea r15, [rbp - 0x38]
nop dword [rax + rax]
mov eax, dword [r15]
lea r8, [rbp - 0x58]
mov edx, dword [rbp - 0x70]
mov r9d, 0xc
mov dword [rbp - 0x54], eax
mov rcx, r13
lea rax, [rbp - 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Secur32.dll_LsaCallAuthenticationPackage]
test eax, eax
jns 0x140001788
lea rcx, str.LSA_failed_niggaaaaaaaaaaaa
call fcn.140001070
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400017e0
cmp dword [rdx + 4], 0
mov ebx, edi
jbe 0x1400017e0
movsxd rax, esi
lea r14, [rbp - 0x40]
imul rcx, rax, 0xeb0
add r14, rcx
nop dword [rax + rax]
movups xmm0, xmmword [rdi + rdx + 0x28]
mov r8d, dword [rbp - 0x70]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov rdx, r13
movaps xmmword [rsp + 0x60], xmm0
call fcn.1400010d0
mov rdx, qword [rsp + 0x48]
lea rdi, [rdi + 0x60]
inc ebx
cmp ebx, dword [rdx + 4]
jb 0x1400017b0
xor edi, edi
inc esi
add r15, 0xeb0
sub r12, 1
jne 0x140001740
mov r14, qword [rsp + 0x2df58]
mov rsi, qword [rsp + 0x2df88]
mov r12, qword [rsp + 0x2df90]
mov rbx, qword [rsp + 0x2df80]
mov r13, qword [rsp + 0x2df60]
mov r15, qword [rsp + 0x2df50]
mov rcx, qword [rbp + 0x2de48]
xor rcx, rsp
call fcn.140001950
add rsp, 0x2df68
pop rdi
pop rbp
ret