Function at 0x140001fd0
Capabilities:
Create thread
Enumerate processes on remote desktop session host
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xc0]
call fcn.140029780
mov qword [rsp + 0x70], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], 6
mov qword [rsp + 0x90], 7
movsd xmm0, qword [str.X4.exe]
movsd qword [rsp + 0x78], xmm0
mov eax, dword [0x140036240]
mov dword [rsp + 0x80], eax
xor r14d, r14d
mov word [rsp + 0x84], r14w
mov dword [rsp + 0x5c], 1
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 0xfffffffe
lea rdx, [rsp + 0x5c]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesExW]
test eax, eax
jne 0x1400020e4
lea rdx, str.Could_not_enumerate_processes._n
lea rcx, [0x14003d3c0]
call fcn.1400045c0
mov rcx, rax
lea rdx, str.Error_code:
call fcn.1400045c0
mov rdx, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
call fcn.1400024f0
mov rcx, rax
lea rdx, [0x140036248]
call fcn.1400045c0
nop
mov edi, r14d
jmp 0x14000218a
mov edi, r14d
mov r9d, r14d
mov r11, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x58]
nop dword [rax]
nop dword [rax + rax]
mov ebx, r9d
shl rbx, 6
add rbx, r11
mov rax, qword [rbx + 8]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], di
jne 0x140002115
cmp rcx, 6
jne 0x1400024d4
mov rdx, rcx
lea r8, [rsp + 0x78]
sub r8, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x1400024d4
add rax, 2
sub rdx, 1
jne 0x140002140
lea rdx, str.Found_X4_process__n
lea rcx, [0x14003d3c0]
call fcn.1400045c0
mov edi, dword [rbx + 4]
mov r11, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x58]
mov r8d, r10d
mov rdx, r11
mov ecx, 1
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemoryExW]
nop
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov r9d, 0x104
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r12, rax
lea rdx, str.AddPlayerMoney
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
lea r8d, [rdx + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x140002228
lea rdx, str.____Could_not_allocate_memory_in_remote_X4.exe
lea rcx, [0x14003d3c0]
call fcn.1400045c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi - 1]
jmp 0x1400024a6
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x70]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400022af
lea rdx, str.____Trouble_writing_memory_to_process___Error_code:
lea rcx, [0x14003d3c0]
call fcn.1400045c0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call fcn.1400026f0
lea rdx, [0x140036248]
mov rcx, rax
call fcn.1400045c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x1400024a6
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0xa0]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rcx, [0x14003d3c0]
test eax, eax
jne 0x140002351
lea rdx, str.____Could_not_read_memory_at
call fcn.1400045c0
mov rdx, rdi
mov rcx, rax
call fcn.1400045c0
lea rdx, str._in_remote_process._Error_code:
mov rcx, rax
call fcn.1400045c0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call fcn.1400026f0
lea rdx, [0x140036248]
mov rcx, rax
call fcn.1400045c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x1400024a6
lea rdx, str.___Successfully_wrote_bytes_n
call fcn.1400045c0
lea rdx, str._.__Attempting_to_execute_AddPlayerMoney_n
lea rcx, [0x14003d3c0]
call fcn.1400045c0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov r14, rax
test rax, rax
jne 0x1400023db
lea rdx, str.____Could_not_create_remote_thread
lea rcx, [0x14003d3c0]
call fcn.1400045c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [r14 - 1]
jmp 0x1400024a6
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, str.___Success__Cleaning_up.
lea rcx, [0x14003d3c0]
call fcn.1400045c0
mov rsi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x40]
call fcn.140004480
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov dl, 0xa
mov rcx, rax
call r8
movzx r15d, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000245f
mov r8, qword [rcx]
call qword [r8 + 0x10]
test rax, rax
je 0x14000245f
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
movzx edx, r15b
mov rcx, rsi
call fcn.140005bd0
mov rcx, rsi
call fcn.1400040e0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
xor eax, eax
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140008830
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
inc r9d
cmp r9d, r10d
jbe 0x140002100
jmp 0x140002178