Function at 0x140046930
Capabilities:
Create shortcut via ishelllink
Persist via com hijack
Set registry value

Disassembly:
jmp 0x140046930
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x140232d98]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, r9
mov rdi, r8
mov r12, rdx
mov r13, rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
lea rdx, str.Installing_shortcut:
lea rcx, [0x140239100]
call fcn.140003ff8
mov rcx, rax
mov rdx, r13
call fcn.140001069
mov rcx, rax
lea rdx, [0x1401c2244]
call fcn.140003ff8
mov rcx, rax
mov rdx, r12
call fcn.140001069
mov rcx, rax
lea rdx, [0x1401c2244]
call fcn.140003ff8
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400469ce
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140002d1f
mov rcx, rax
call fcn.14000385a
lea rcx, [rbp + 0x80]
call fcn.14000214e
nop
lea r14, str.long___cdecl_LinkHelper::installShortcut_const_class_std::filesystem::path__const_class_std::filesystem::path__const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov rdx, r14
mov rcx, rax
call fcn.14000852b
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, str.Installing_shortcut:
call fcn.140006776
mov rcx, rax
mov rdx, r13
call fcn.140003166
mov rcx, rax
lea rdx, [0x1401c2244]
call fcn.140001889
mov rcx, rax
mov rdx, r12
call fcn.140003166
mov rcx, rax
lea rdx, [0x1401c2244]
call fcn.140001889
mov rcx, rax
mov rdx, rdi
call fcn.140005245
mov rcx, rax
lea rdx, [0x1401c2244]
call fcn.140001889
mov rcx, rax
mov rdx, rsi
call fcn.140005245
nop
lea rcx, [rbp + 0x80]
call fcn.140004769
cmp qword [rsi + 0x10], 0
je 0x140046ebc
call fcn.140007db0
mov r14, rax
mov qword [rbp + 0x1a0], r15
mov qword [rbp + 0x1a8], r15
mov r15, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140046ab4
mov r14, qword [rax]
cmp r15, 8
jae 0x140046ad2
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0x190], xmm0
mov qword [rbp + 0x1a8], 7
jmp 0x140046b1b
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x190]
call fcn.140005b1e
mov qword [rbp + 0x190], rax
lea r8, [r15*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.140003f8a
mov qword [rbp + 0x1a8], rbx
mov qword [rbp + 0x1a0], r15
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rbp + 0x80]
call fcn.1400035df
nop
lea rdx, str.SOFTWAREClassesCLSID_
lea rcx, [rbp + 0x90]
call fcn.140003ff8
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140046b58
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, rax
call fcn.140002d1f
mov rcx, rax
lea rdx, str.LocalServer32
call fcn.140003ff8
nop
movdqa xmm0, xmmword [0x1401c4900]
movdqu xmmword [rbp + 0x1c0], xmm0
xor r15d, r15d
mov word [rbp + 0x1b0], r15w
mov dword [rsp + 0x38], 9
mov rcx, qword [rbp + 0x108]
test cl, 2
jne 0x140046bd0
mov rax, qword [rbp + 0xd8]
mov r8, qword [rax]
test r8, r8
je 0x140046bd0
mov rax, qword [rbp + 0xb8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x100]
cmovb r8, qword [rbp + 0x100]
sub r8, rdx
jmp 0x140046c01
test cl, 4
jne 0x140046c11
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140046c11
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xe8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x1b0]
call fcn.140002220
nop
lea rcx, [rbp + 0x80]
call fcn.140002b71
nop
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea r14, str.long___cdecl_LinkHelper::installShortcut_const_class_std::filesystem::path__const_class_std::filesystem::path__const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov rdx, r14
mov rcx, rax
call fcn.14000852b
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x1b0]
call fcn.140005245
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
mov eax, dword [rbp + 0x1a0]
add eax, eax
lea rcx, [rbp + 0x190]
cmp qword [rbp + 0x1a8], 8
cmovae rcx, qword [rbp + 0x190]
lea rdx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 8
cmovae rdx, qword [rbp + 0x1b0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov ebx, eax
test eax, eax
jg 0x140046cc3
mov dword [rsp + 0x38], eax
jmp 0x140046cd0
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x38], ebx
mov qword [rbp + 0x180], r14
mov dword [rsp + 0x30], 0x5c
lea rax, str.C:_cfb73e75_snoretoast_0.7.0_srclinkhelper.cpp
mov qword [rsp + 0x40], rax
test ebx, ebx
jns 0x140046e18
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
nop
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 8
jb 0x140046db1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046dac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400475df
call fcn.140001933
movdqa xmm0, xmmword [0x1401c4900]
movdqu xmmword [rbp + 0x1c0], xmm0
mov word [rbp + 0x1b0], r15w
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 8
jb 0x1400475b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046e0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400475e5
call fcn.140001933
jmp 0x1400475b4
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 8
jb 0x140046e5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046e59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400475eb
call fcn.140001933
movdqa xmm0, xmmword [0x1401c4900]
movdqu xmmword [rbp + 0x1c0], xmm0
mov word [rbp + 0x1b0], r15w
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 8
jb 0x140046ebc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046eb7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400475d9
call fcn.140001933
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x48]
call fcn.140007fd6
mov qword [rsp + 0x20], rax
lea r9, [0x1401c7bc8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1401d3d68]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 0x61
lea rax, str.C:_cfb73e75_snoretoast_0.7.0_srclinkhelper.cpp
mov qword [rbp + 0x180], rax
test ebx, ebx
jns 0x140046f8b
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
jmp 0x14004759e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
cmp qword [r12 + 0x18], 8
jb 0x140046f9f
mov r12, qword [r12]
mov rdx, r12
call qword [rax + 0xa0]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 0x62
lea r12, str.C:_cfb73e75_snoretoast_0.7.0_srclinkhelper.cpp
mov qword [rbp + 0x180], r12
test eax, eax
jns 0x140047049
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
jmp 0x14004759e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [0x1401c1ec0]
call qword [rax + 0x58]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 0x63
mov qword [rbp + 0x180], r12
test eax, eax
jns 0x1400470f5
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
jmp 0x14004759e
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x1401c8110]
call qword [rax]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 0x66
mov qword [rbp + 0x180], r12
test eax, eax
jns 0x1400471aa
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
jmp 0x140047588
cmp qword [rdi + 0x18], 8
jb 0x1400471b4
mov rdi, qword [rdi]
mov ebx, 0x80070057
test rdi, rdi
cmovne ebx, r15d
je 0x140047221
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x1400471d0
lea r14, [rax*2 + 2]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0x68], rax
mov ebx, 0x8007000e
test rax, rax
cmovne ebx, r15d
je 0x14004721a
mov r9, r14
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.140048340
mov eax, 0x1f
mov word [rsp + 0x60], ax
lea r14, str.long___cdecl_LinkHelper::installShortcut_const_class_std::filesystem::path__const_class_std::filesystem::path__const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
test ebx, ebx
jns 0x140047236
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 0x69
mov qword [rbp + 0x180], r12
test ebx, ebx
jns 0x1400472ce
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
jmp 0x140047588
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x1401dd2f0]
call qword [rax + 0x30]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 0x6a
mov qword [rbp + 0x180], r12
test eax, eax
jns 0x14004737f
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
jmp 0x140047588
lea rcx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_PropVariantClear]
cmp qword [rsi + 0x10], 0
je 0x140047475
cmp qword [rsi + 0x18], 8
jb 0x14004739f
mov rsi, qword [rsi]
lea rdx, [rbp + 0x180]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov ebx, eax
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x30]
mov r8, r14
mov edx, 0x6f
mov rcx, r12
call fcn.140007f27
test al, al
je 0x140047588
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
mov rdx, r14
mov rcx, rax
call fcn.14000852b
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.1400039b8
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
xor eax, eax
mov qword [rbp + 0x190], rax
mov qword [rbp + 0x1a0], rax
mov eax, 0x48
mov word [rbp + 0x190], ax
lea rax, [rbp + 0x180]
mov qword [rbp + 0x198], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rbp + 0x190]
lea rdx, [0x1401e1b80]
call qword [rax + 0x30]
mov ebx, eax
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x30]
mov r8, r14
mov edx, 0x76
mov rcx, r12
call fcn.140007f27
test al, al
je 0x140047588
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x30], 0x78
mov qword [rbp + 0x180], r12
test eax, eax
jns 0x140047517
lea rcx, [rbp - 0x80]
call fcn.14000214e
nop
lea rdx, str.bool___cdecl_Utils::checkResult_const_char__const_long_const_char__const_long__
mov rcx, rax
call fcn.140005b96
mov rcx, rax
lea rdx, [0x1401c2248]
call fcn.1400025a4
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.140005a15
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140004c41
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140005a15
mov rcx, rax
lea rdx, str.:_n_t_t_t
call fcn.140001537
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140004c41
nop
lea rcx, [rbp - 0x80]
call fcn.140004769
jmp 0x140047588
mov qword [rsp + 0x58], r15
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x1401c7bb0]
call qword [rax]
mov ebx, eax
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x30]
mov r8, r14
mov edx, 0x7b
mov rcx, r12
call fcn.140007f27
test al, al
je 0x140047572
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
cmp qword [r13 + 0x18], 8
jb 0x140047564
mov r13, qword [r13]
mov r8d, 1
mov rdx, r13
call qword [rax + 0x30]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140047588
mov qword [rsp + 0x58], r15
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004759e
mov qword [rsp + 0x50], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400475b4
mov qword [rsp + 0x48], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140005ff6
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140002658
nop
call fcn.140002658
nop
call fcn.140002658
nop
call fcn.140002658
int3