Function at 0x140004220
Capabilities:
Create process on windows
Create thread
Inject dll
Inject thread

Disassembly:
jmp 0x140004220
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x558
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xe2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x578]
mov rax, qword [0x140014040]
xor rax, rbp
mov qword [rbp + 0x4f0], rax
lea rcx, [0x1400180f6]
call fcn.1400014a1
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140D.dll_memset
mov dword [rbp + 0x10], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call sub.VCRUNTIME140D.dll_memset
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x520]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rbp + 0xc4], eax
mov rdx, qword [rbp + 0x520]
lea rcx, [rbp + 0xe8]
call fcn.1400011fe
nop
mov r8, 0xffffffffffffffff
mov dl, 0x5c
lea rcx, [rbp + 0xe8]
call fcn.14000148d
inc rax
mov qword [rbp + 0x128], rax
lea rcx, [rbp + 0xe8]
call fcn.140001406
sub rax, qword [rbp + 0x128]
mov r9, rax
mov r8, qword [rbp + 0x128]
lea rdx, [rbp + 0x4b8]
lea rcx, [rbp + 0xe8]
call fcn.140001253
mov qword [rbp + 0x4e8], rax
mov rdx, qword [rbp + 0x4e8]
lea rcx, [rbp + 0xe8]
call fcn.14000114a
lea rcx, [rbp + 0x4b8]
call fcn.1400010c8
cmp dword [rbp + 0xc4], 0
je 0x1400045e2
mov edx, 0xc8
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0xa8]
mov dword [rbp + 0x144], eax
lea rcx, [rbp + 0xe8]
call fcn.140001064
mov rcx, rax
call fcn.14000141a
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0
je 0x14000457e
mov rcx, qword [rbp + 0x528]
call sub.ucrtbased.dll_strlen
inc rax
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x188], 0
je 0x14000455c
mov rcx, qword [rbp + 0x528]
call sub.ucrtbased.dll_strlen
inc rax
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x528]
mov rdx, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rbp + 0x188]
mov qword [rsp + 0x20], rcx
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x1a8], rax
cmp qword [rbp + 0x1a8], 0
je 0x14000453d
mov edx, 0xc8
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x528]
call sub.ucrtbased.dll_strlen
inc rax
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [rbp + 0x1d0]
mov rdx, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rdx, str.Allocated_space_value:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000107d
lea rdx, [rbp + 0x1d0]
mov rcx, rax
call fcn.14000107d
lea rdx, [0x140010484]
mov rcx, rax
call fcn.14000107d
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000456f
lea rdx, str.Failed_to_allocate_memory_in_the_remote_process_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000107d
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400045c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x2f4], eax
lea rdx, str.OpenProcess_failed_with_error
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000107d
mov qword [rbp + 0x4e8], rax
mov edx, dword [rbp + 0x2f4]
mov rcx, qword [rbp + 0x4e8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140010484]
mov rcx, rax
call fcn.14000107d
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004647
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x314], eax
lea rdx, str.CreateProcess_failed_with_error
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000107d
mov qword [rbp + 0x4e8], rax
mov edx, dword [rbp + 0x314]
mov rcx, qword [rbp + 0x4e8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140010484]
mov rcx, rax
call fcn.14000107d
mov r9d, 0x10
lea r8, str.Fail_
lea rdx, str.Cannot_open_process_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
lea rcx, [rbp + 0xe8]
call fcn.1400010c8
lea rcx, [rbp - 0x50]
lea rdx, [0x140010070]
call fcn.1400013d4
mov rcx, qword [rbp + 0x4f0]
xor rcx, rbp
call fcn.140001230
lea rsp, [rbp + 0x508]
pop rdi
pop rbp
ret