Function at 0x14000c320
Capabilities:
Persist via default file association registry key
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x19e0]
mov eax, 0x1ae0
call fcn.140018cb0
sub rsp, rax
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1b18], rbx
mov qword [rsp + 0x1b20], rsi
mov rax, qword [0x14003f2f0]
xor rax, rsp
mov qword [rbp + 0x19d0], rax
mov r14, rcx
xor r12d, r12d
mov esi, r12d
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x58], r12d
mov qword [rbp - 0x50], r12
mov edi, r12d
mov qword [rbp - 0x80], r12
mov dword [rbp - 0x78], r12d
mov qword [rbp - 0x70], r12
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x3d0]
call fcn.1400166f0
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x7d0]
call fcn.1400166f0
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x17d0]
call fcn.1400166f0
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x13d0]
call fcn.1400166f0
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x11d0]
call fcn.1400166f0
mov rcx, r14
call fcn.140005b10
test eax, eax
je 0x14000cdb1
mov dword [rsp + 0x30], r12d
lea r15, [0x140042700]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], pe_nt_image_headers64
lea r9, [rbp + 0x3d0]
lea r8, [0x14002ce18]
lea rdx, str.ShortCutLabel
mov rcx, r14
call fcn.14000db60
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], pe_nt_image_headers64
lea r9, [rbp + 0x7d0]
lea r8, [0x14002ce18]
lea rdx, str.ExecutablePath
mov rcx, r14
call fcn.14000db60
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], pe_nt_image_headers64
lea r9, [rbp + 0x17d0]
lea r8, [0x14002ce18]
lea rdx, str.Arguments
mov rcx, r14
call fcn.14000db60
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], pe_nt_image_headers64
lea r9, [rbp + 0x13d0]
lea r8, [0x14002ce18]
lea rdx, str.IconFilePath
mov rcx, r14
call fcn.14000db60
mov r9, r15
xor r8d, r8d
lea rdx, str.IconIndex
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], pe_nt_image_headers64
lea r9, [rbp + 0x11d0]
lea r8, [0x14002ce18]
lea rdx, str.IconDescription
mov rcx, r14
call fcn.14000db60
lea rdx, [rbp + 0x3d0]
lea rcx, str._nDropping__s_Shell_Icon_on_Desktop
call fcn.14000adf0
mov r9d, ebx
lea r8, [rbp + 0x13d0]
lea rdx, str._s__u
lea rcx, [rbp + 0x15d0]
call fcn.140018028
mov r14d, r12d
mov ecx, 0x200
call fcn.140015468
mov rbx, rax
mov dword [rsp + 0x58], 0x200
lea rcx, [rbp - 0x48]
call qword [sym.imp.ole32.dll_CoCreateGuid]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ole32.dll_StringFromCLSID]
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x5d0]
sub rdx, rcx
nop
movzx eax, word [rcx]
mov word [rcx + rdx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000c580
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x58]
mov r8, rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea r15, str.Rubik
test eax, eax
jne 0x14000c890
inc r14d
mov dword [rsp + 0x58], 0x200
mov r8, rbx
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace_s
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c676
test rdi, rdi
je 0x14000c671
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x14000c6f1
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x14000c6f1
cmp ecx, 2
jbe 0x14000c6e2
cmp ecx, 7
jne 0x14000c6f1
test al, 1
jne 0x14000c6f1
mov ecx, eax
shr ecx, 1
cmp ecx, 1
jb 0x14000c6f1
mov edx, eax
shr rdx, 1
cmp word [rbp + rdx*2 - 0x32], 0
jne 0x14000c6f1
cmp ecx, 1
jbe 0x14000c6f6
cmp word [rbp + rdx*2 - 0x34], 0
jmp 0x14000c6ef
test al, 1
jne 0x14000c6f1
shr rax, 1
cmp word [rbp + rax*2 - 0x32], 0
je 0x14000c6f6
mov word [rbp - 0x30], r12w
test rdi, rdi
je 0x14000c707
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov dword [rsp + 0x58], 0x200
mov r8, rbx
lea rdx, str.CLSID_sShellFolder
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c768
test rdi, rdi
je 0x14000c763
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Owner
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x14000c7f4
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x14000c7f4
cmp ecx, 2
jbe 0x14000c7e2
cmp ecx, 7
jne 0x14000c7f4
test al, 1
jne 0x14000c7f4
mov ecx, eax
shr ecx, 1
cmp ecx, 1
jb 0x14000c7f4
mov edx, eax
shr rdx, 1
cmp word [rbp + rdx*2 + 0x1ce], 0
jne 0x14000c7f4
cmp ecx, 1
jbe 0x14000c7fc
cmp word [rbp + rdx*2 + 0x1cc], 0
jmp 0x14000c7f2
test al, 1
jne 0x14000c7f4
shr rax, 1
cmp word [rbp + rax*2 + 0x1ce], 0
je 0x14000c7fc
mov word [rbp + 0x1d0], r12w
test rdi, rdi
je 0x14000c80d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov dword [rsp + 0x58], 0x200
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp - 0x30]
call fcn.140017124
test eax, eax
jne 0x14000c83c
mov rdx, r15
lea rcx, [rbp + 0x1d0]
call fcn.140017124
test eax, eax
je 0x14000c86e
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x58]
mov r8, rbx
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x14000c60a
lea rcx, [rbp + 0x5d0]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rcx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14000c880
test rsi, rsi
je 0x14000c8a1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
lea r8, [rbp + 0x5d0]
lea rdx, str.CLSID_s
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000c917
test rsi, rsi
je 0x14000c912
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
lea rcx, [rbp + 0x3d0]
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000c925
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rbp + 0x11d0]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000c961
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x11d0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.InfoTip
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x14000c9a9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
lea r8, [rbp + 0x5d0]
lea rdx, str.CLSID_sDefaultIcon
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ca1f
test rsi, rsi
je 0x14000ca1a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
lea rcx, [rbp + 0x15d0]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000ca30
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x15d0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x14000ca73
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
lea r8, [rbp + 0x5d0]
lea rdx, str.CLSID_sShellOpenCommand
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000cae9
test rsi, rsi
je 0x14000cae4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
lea rcx, [rbp + 0x7d0]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000caf3
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x7d0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x14000cb36
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
lea r8, [rbp + 0x5d0]
lea rdx, str.CLSID_sShellExploreCommand
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000cbac
test rsi, rsi
je 0x14000cba7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
lea rcx, [rbp + 0x7d0]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000cbb6
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x7d0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x14000cbf9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
mov dword [rsp + 0x68], 0x28050030
lea r8, [rbp + 0x5d0]
lea rdx, str.CLSID_sShellFolder
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000cc77
test rsi, rsi
je 0x14000cc72
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Attributes
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], r15
mov r9d, 1
xor r8d, r8d
lea rdx, str.Owner
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x14000ccd9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
lea r8, [rbp + 0x5d0]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace_s
lea rcx, [rbp + 0x9d0]
call fcn.140018028
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x9d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000cd4f
test rsi, rsi
je 0x14000cd4a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
lea rax, [rbp + 0x3d0]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000cd56
inc ebx
lea eax, [rbx + rbx]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x14000cd9a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x3000
mov ecx, 0x8000000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
test rdi, rdi
je 0x14000cdc0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rsi, rsi
je 0x14000cdce
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x19d0]
xor rcx, rsp
call fcn.1400161c0
lea r11, [rsp + 0x1ae0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret