Function at 0x140006ef0
Capabilities:
Check os version
Enumerate process modules
Get session information
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x19d8]
mov eax, 0x1ab0
call fcn.14001a5e0
sub rsp, rax
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x19a0], rax
xor r13d, r13d
mov dword [rsp + 0x4c], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [rsp + 0x4c]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8d, [r13 + 5]
mov qword [rsp + 0x60], r13
xor ecx, ecx
mov r15d, r13d
mov r12b, r13b
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140006fa1
cmp dword [rsp + 0x48], r13d
je 0x140006fa1
mov edx, 0x100
lea rcx, [rbp + 0x1590]
call fcn.140012500
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x140006fd5
lea rcx, [rbp + 0xf70]
mov dword [rbp + 0xf70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0xf74], 5
jne 0x140007248
cmp dword [rbp + 0xf78], r13d
jne 0x140007248
mov r12b, 1
lea r8, [rsp + 0x48]
mov edx, 0x1000
lea rcx, [rsp + 0x70]
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x140007248
mov edi, dword [rsp + 0x48]
mov r14d, r13d
shr edi, 2
test edi, edi
je 0x140007111
lea rsi, [rsp + 0x70]
test dword [rsi], 0xfffffff3
jne 0x14000701a
cmp dword [rsi], 0xc
jne 0x140007101
mov ecx, dword [rsi]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], r13d
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jne 0x140007101
mov r8d, dword [rsi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140007101
cmp byte [0x14002da84], r13b
je 0x140007092
mov rax, qword [0x14002da90]
mov dword [rsp + 0x40], r13d
test rax, rax
je 0x140007088
lea rdx, [rsp + 0x40]
mov rcx, rbx
call rax
test eax, eax
je 0x140007088
mov al, r13b
cmp dword [rsp + 0x40], r13d
jne 0x14000708a
mov al, 1
cmp byte [0x14002da84], al
jne 0x1400070f8
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], r13
mov edx, 0x20008
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400070f8
xor edx, edx
lea rcx, [rbp + 0xf70]
mov r8d, 0x200
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
mov r9d, 0x200
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xf70]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140007119
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r14d
add rsi, 4
cmp r14d, edi
jb 0x140007009
mov rax, r15
jmp 0x14000724a
mov rdx, qword [rbp + 0xf70]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x54]
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x1170]
lea rax, [rbp + 0x1790]
mov dword [rsp + 0x54], 0x104
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x1400070f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x1170]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14000717e
test rax, rax
je 0x1400070f8
mov edx, 0x104
lea rcx, [rbp + 0x1170]
call fcn.140012580
lea rcx, [rbp + 0x1170]
test r12b, r12b
jne 0x1400071c4
lea rdx, [rbp + 0x1590]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400071da
jmp 0x1400070f8
lea rdx, str.system
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x1400070f8
test r15, r15
lea rcx, [rbp + 0x1380]
mov r8d, 0x208
cmove r15, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0x1380]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1400070f8
lea rcx, [rbp + 0x1380]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test rax, rax
je 0x140007101
lea rdx, str.explorer.exe
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140007101
mov rax, rbx
jmp 0x14000724a
xor eax, eax
mov rcx, qword [rbp + 0x19a0]
xor rcx, rsp
call fcn.14001a4a0
lea r11, [rsp + 0x1ab0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret