Function at 0x140031600
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 0x140031682
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x14003179e
lea r9, str.WTSEnumerateProcesses_failed.
mov r8d, edi
mov edx, 0x60004002
call fcn.140040490
jmp 0x140031797
mov ebx, r15d
cmp dword [rbp + 0x250], ebx
jbe 0x14003178d
cmp qword [rsp + 0x60], r15
jne 0x14003178d
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x70]
cmp dword [rax + rcx*8], esi
jne 0x14003177f
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 0x14003177f
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 0x140031775
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x200
call fcn.1400514f0
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.140077960
test eax, eax
jne 0x140031775
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
lea edx, [rax + 0xf]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140031775
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140031775
lea r9, str.OpenProcessToken_failed.
mov r8d, edi
mov edx, 0x60004002
call fcn.140040490
lea rcx, [rsp + 0x68]
call fcn.140040b70
inc ebx
cmp ebx, dword [rbp + 0x250]
jb 0x140031691
mov rcx, qword [rsp + 0x70]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x1400da5d8]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x1400317cc
test rcx, rcx
je 0x1400317c5
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.140040490
xor eax, eax
jmp 0x140031888
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.1400514f0
lea rax, [0x1400a6c48]
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 0x14003186a
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140031867
lea r9, str.CreateProcessAsUser_failed.__Session_id__u
mov dword [rsp + 0x20], esi
mov r8d, edi
mov edx, 0x60004002
call fcn.140040490
mov edi, r15d
lea rcx, [rbp - 0x80]
call fcn.140040b70
lea rcx, [rsp + 0x60]
call fcn.140040b70
lea rcx, [rbp - 0x78]
call fcn.140040b70
mov eax, edi
mov rbx, qword [rsp + 0x340]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret