Function at 0x1400019a0
Capabilities:
Copy file
Get common file path
Persist via lnk shortcut

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x258], rbx
mov qword [rbp + 0x260], rdi
mov rax, qword [0x140040020]
xor rax, rbp
mov qword [rbp + 0x230], rax
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x140001c2e
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x104
call fcn.140009040
movups xmm0, xmmword [str.C:ProgramDataMicrosoftWindowsStart_MenuProgramsStartup]
mov eax, dword [0x14003a480]
xor edx, edx
movups xmm1, xmmword [0x14003a458]
lea rcx, [rbp + 0x4d]
mov dword [rbp + 0x48], eax
movaps xmmword [rbp + 0x10], xmm0
mov r8d, 0xc7
movups xmm0, xmmword [0x14003a468]
movzx eax, byte [0x14003a484]
movaps xmmword [rbp + 0x20], xmm1
movsd xmm1, qword [0x14003a478]
movaps xmmword [rbp + 0x30], xmm0
movsd qword [rbp + 0x40], xmm1
mov byte [rbp + 0x4c], al
call fcn.140009040
xor edx, edx
lea rax, [rbp]
lea r9, [0x14002d830]
mov qword [rsp + 0x20], rax
lea rcx, [0x14002d840]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140001c14
mov rcx, qword [rbp]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rbp]
lea rdx, str.C:Program_Files__x86_3ShapeDongle_Server_ServiceDongleServer.exe
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rbp]
lea r8, [rbp + 8]
lea rdx, [0x14002d820]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140001c0a
xor r9d, r9d
lea rdx, [rbp + 0x120]
xor ecx, ecx
lea r8d, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
movzx edx, word [0x14003a49c]
mov r8d, dword [0x14003a498]
movups xmm2, xmmword [str.3Shape]
cmp eax, 0x3a8
jne 0x140001b0d
lea rax, [rbp + 0x120]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140001af6
movups xmmword [rax], xmm2
mov dword [rax + 0x10], r8d
mov word [rax + 0x14], dx
jmp 0x140001b4b
lea rcx, [rbp + 0x120]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001b20
movups xmm0, xmmword [str.3Shape_Dongle_Patch.lnk]
movzx eax, byte [0x14003a4b8]
movsd xmm1, qword [0x14003a4b0]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
mov byte [rcx + 0x18], al
lea rax, [rbp + 0x10]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140001b52
movups xmmword [rax], xmm2
mov dword [rax + 0x10], r8d
lea rcx, [rbp + 0x120]
mov word [rax + 0x14], dx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140001b75
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140001bee
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140001ba6
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140007180
sub rsp, rcx
lea rdi, [rsp + 0x30]
test rdi, rdi
je 0x140001bee
xor ebx, ebx
mov dword [rsp + 0x28], edx
lea r8, [rbp + 0x120]
mov word [rdi], bx
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r9d, [rbx - 1]
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
cmove rdi, rbx
mov rbx, rdi
jmp 0x140001bf0
xor ebx, ebx
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov al, 1
mov rcx, qword [rbp + 0x230]
xor rcx, rbp
call fcn.140006b20
mov rbx, qword [rbp + 0x258]
mov rdi, qword [rbp + 0x260]
lea rsp, [rbp + 0x240]
pop rbp
ret