Function at 0x180001140
Capabilities:
Persist via contextmenuhandlers registry key
Set registry value

Disassembly:
sub rsp, 0x478
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rcx, qword [0x18001ff18]
lea rdx, [rsp + 0x250]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x30]
lea rdx, str._shellexContextMenuHandlersITL_Total_Security
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800011ae
mov eax, 0x80040201
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180004430
add rsp, 0x478
ret
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x470], rdi
lea rdi, str.EC6FBE09_5A2F_439F_89E5_F8356582FB3A
lea rdx, [0x1800194e0]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x30]
lea rdx, str.CLSIDEC6FBE09_5A2F_439F_89E5_F8356582FB3AInProcServer32
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x180001217
mov eax, 0x80040201
jmp 0x1800013fd
mov qword [rsp + 0x480], rbx
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x250]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180001230
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
lea rdx, [0x1800194e0]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x250]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, str.Apartment
lea rdx, str.ThreadingModel
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x30]
lea rdx, str.Folder_shellexContextMenuHandlersITL_Total_Security
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x180001338
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 1]
lea rdx, [0x1800194e0]
xor r8d, r8d
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x18001fe00]
mov dword [0x18001fe00], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x18001fe10], 2
jne 0x1800013f3
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x180001342
mov eax, 0x80040201
jmp 0x1800013f5
xor ecx, ecx
lea rdx, str.Scan_with
nop dword [rax + rax]
movzx eax, word [rcx + rdx]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x3e], ax
test ax, ax
jne 0x180001350
lea rax, [rsp + 0x40]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x180001370
mov ecx, dword [0x1800196d0]
movups xmm0, xmmword [str.Total_Security]
movsd xmm1, qword [0x1800196c8]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
mov dword [rax + 0x18], ecx
movzx ecx, word [0x1800196d4]
mov word [rax + 0x1c], cx
lea rax, [rsp + 0x40]
nop dword [rax + rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1800013b0
mov rcx, qword [rsp + 0x30]
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180004430
add rsp, 0x478
ret