Function at 0x14002b610
Capabilities:
Create process on windows
Enumerate process modules
Enumerate processes on remote desktop session host

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
xor r15d, r15d
lea rax, [rbp + 0x250]
mov r14, rdx
mov qword [rsp + 0x60], r15
mov esi, ecx
mov qword [rsp + 0x70], r15
lea r9, [rsp + 0x70]
mov dword [rbp + 0x250], r15d
lea edi, [r15 + 1]
mov qword [rsp + 0x20], rax
mov r8d, edi
xor edx, edx
xor ecx, ecx
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
jne 0x14002b692
mov rcx, qword [0x1400b5090]
test rcx, rcx
je 0x14002b7ae
lea r9, str.WTSEnumerateProcesses_failed.
mov r8d, edi
mov edx, 0x60004002
call fcn.14002fdb0
jmp 0x14002b7a7
mov ebx, r15d
cmp dword [rbp + 0x250], ebx
jbe 0x14002b79d
cmp qword [rsp + 0x60], r15
jne 0x14002b79d
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x70]
cmp dword [rax + rcx*8], esi
jne 0x14002b78f
mov r8d, dword [rax + rcx*8 + 4]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14002b78f
lea r9, [rbp + 0x258]
mov qword [rsp + 0x78], r15
mov r8d, 8
mov dword [rbp + 0x258], r15d
lea rdx, [rsp + 0x78]
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x14002b785
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x200
call fcn.140038310
mov rdx, qword [rsp + 0x78]
lea r8, [rbp + 0x10]
mov rcx, qword [rsp + 0x68]
mov r9d, 0x200
call sub.KERNEL32.dll_K32GetModuleBaseNameA
mov r8d, 0xc
lea rdx, str.winlogon.exe
lea rcx, [rbp + 0x10]
call fcn.14005e77c
test eax, eax
jne 0x14002b785
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
lea edx, [rax + 0xf]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14002b785
mov rcx, qword [0x1400b5090]
test rcx, rcx
je 0x14002b785
lea r9, str.OpenProcessToken_failed.
mov r8d, edi
mov edx, 0x60004002
call fcn.14002fdb0
lea rcx, [rsp + 0x68]
call fcn.140030100
inc ebx
cmp ebx, dword [rbp + 0x250]
jb 0x14002b6a1
mov rcx, qword [rsp + 0x70]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x1400b5090]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x14002b7dc
test rcx, rcx
je 0x14002b7d5
lea r9, str.GetSystemToken_failed_to_get_a_token.__Session_id__u
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, 0x60004002
call fcn.14002fdb0
xor eax, eax
jmp 0x14002b898
xor eax, eax
lea rcx, [rbp - 0x60]
xor edx, edx
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea r8d, [rax + 0x68]
call fcn.140038310
lea rax, str.WinSta0Default
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov word [rbp - 0x20], r15w
mov qword [rsp + 0x50], rax
mov r8, r14
lea rax, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x48], rax
mov rcx, rbx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x14002b87a
mov rcx, qword [0x1400b5090]
test rcx, rcx
je 0x14002b877
lea r9, str.CreateProcessAsUser_failed.__Session_id__u
mov dword [rsp + 0x20], esi
mov r8d, edi
mov edx, 0x60004002
call fcn.14002fdb0
mov edi, r15d
lea rcx, [rbp - 0x80]
call fcn.140030100
lea rcx, [rsp + 0x60]
call fcn.140030100
lea rcx, [rbp - 0x78]
call fcn.140030100
mov eax, edi
mov rbx, qword [rsp + 0x340]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret