Function at 0x180004330
Capabilities:
Persist via contextmenuhandlers registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x1800180a0]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rdi, rcx
lea rdx, [rbp + 0x380]
lea rcx, [0x180013bf0]
mov r8d, 0x104
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x62]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x60], si
call fcn.1800083f0
lea rcx, [rbp + 0x172]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x170], si
call fcn.1800083f0
cmp word [rdi], 0x2e
jne 0x180004457
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x58], 0x208
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jle 0x1800043f9
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x180004457
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x170]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jle 0x180004433
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x180004457
cmp word [rbp + 0x170], si
lea rax, [rbp + 0x170]
cmove rax, rdi
mov rdi, rax
cmp word [rdi], 0x2a
mov r9, rdi
lea r8, str._s_shellexContextMenuHandlers_s
mov edx, 0x104
lea rcx, [rsp + 0x60]
jne 0x180004506
lea rbx, str.Titan
mov qword [rsp + 0x20], rbx
call fcn.180001860
test eax, eax
js 0x1800045bc
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jle 0x1800044da
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1800045ba
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x380]
mov qword [rsp + 0x20], rax
jmp 0x18000458a
lea rax, [rbp + 0x380]
mov qword [rsp + 0x20], rax
call fcn.180001860
test eax, eax
js 0x1800045bc
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jle 0x18000456b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1800045ba
lea rbx, str.Titan
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x1800045af
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.180005a00
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret