Function at 0x48313a
Capabilities:
Delete registry key
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0045f8d1
mov eax, dword [0x4c7a78]
pop ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], ebx
pop ecx
jl 0x48316f
mov dword [ebp - 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x483181
mov ecx, dword [0x4b0550]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
call fcn.0040a70f
mov eax, dword [0x4bd894]
mov dword [ebp - 0xc], ebx
cmp eax, 1
jne 0x4831b8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push ebx
push SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48321a
lea ecx, [ebp - 0xc]
call fcn.00405bf5
mov eax, dword [ebp - 0x1c]
jmp 0x483217
cmp eax, 2
jne 0x4831eb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareClasses
push reloc.SHELL32.dll_SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48321a
lea ecx, [ebp - 0xc]
call fcn.00405bf5
mov eax, dword [ebp - 0x1c]
jmp 0x483217
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareClasses
push SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48321a
lea ecx, [ebp - 0xc]
call fcn.00405bf5
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0x20019
push ebx
push str.qdirdoc_shellopencommand
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov esi, str.___1_
jne 0x483336
lea ecx, [ebp - 8]
call fcn.00405bf5
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 8], ecx
jne 0x483336
mov eax, dword [0x4b0550]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, 0x400
push eax
mov dword [ebp - 0x24], eax
call fcn.00403c58
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403cd2
push esi
lea ecx, [ebp - 0x20]
call fcn.00403927
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403b20
push dword [ebp - 0x1c]
mov eax, dword [eax]
push eax
call fcn.0049cec5
neg eax
pop ecx
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x28]
mov byte [ebp - 1], al
call fcn.004038fb
lea ecx, [ebp - 0x20]
call fcn.004038fb
cmp byte [ebp - 1], bl
je 0x48332e
cmp dword [ebp + 8], ebx
jne 0x4832f6
push dword [0x4c7a7c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00405c0c
lea ecx, [ebp - 0x1c]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.00405bf5
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.00405bf5
lea ecx, [ebp - 8]
call fcn.00405bf5
lea ecx, [ebp - 0x18]
call fcn.004038fb
push 1
pop eax
jmp 0x483501
lea ecx, [ebp - 0x1c]
call fcn.004038fb
cmp dword [ebp + 8], 0xffffffff
je 0x4834d7
cmp dword [ebp + 8], 1
jne 0x4834d7
cmp dword [ebp - 8], ebx
je 0x48335b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
lea edx, [ebp - 0x28]
mov ecx, dword [0x4c7a7c]
mov eax, dword [ebp - 0xc]
push edx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x14], eax
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push ecx
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x483392
lea ecx, [ebp - 8]
call fcn.00405bf5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x4b0550]
push 2
pop edi
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
push dword [ebp - 0x18]
push 0x4b25e4
push eax
call fcn.00403d66
add esp, 0x10
lea ecx, [ebp - 0x20]
push str._shellopencommand
call fcn.00403927
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403b20
mov eax, dword [eax]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
lea ecx, [ebp - 8]
push dword [ebp - 0x14]
call fcn.00407b8f
lea ecx, [ebp - 0x28]
call fcn.004038fb
lea ecx, [ebp - 0x20]
call fcn.004038fb
push esi
lea ecx, [ebp - 0x20]
call fcn.00403927
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403b20
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 8]
call fcn.00407c00
lea ecx, [ebp - 0x28]
call fcn.004038fb
lea ecx, [ebp - 0x20]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.00405bf5
push ebx
push ebx
push edi
push ebx
push ebx
lea ecx, [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00407b8f
push ebx
lea ecx, [ebp - 8]
push dword [0x4c7a80]
call fcn.00407c00
lea ecx, [ebp - 8]
call fcn.00405bf5
push str.DefaultIcon
lea ecx, [ebp - 0x20]
call fcn.00403927
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403b20
mov eax, dword [eax]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
lea ecx, [ebp - 8]
push dword [ebp - 0x14]
call fcn.00407b8f
lea ecx, [ebp - 0x28]
call fcn.004038fb
lea ecx, [ebp - 0x20]
call fcn.004038fb
push ebx
lea ecx, [ebp - 8]
push dword [ebp + 8]
call fcn.00407c00
lea ecx, [ebp - 8]
call fcn.00405bf5
lea ecx, [ebp + 8]
call fcn.004038fb
pop edi
lea ecx, [ebp - 0xc]
call fcn.00405bf5
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.00405bf5
lea ecx, [ebp - 8]
call fcn.00405bf5
lea ecx, [ebp - 0x18]
call fcn.004038fb
xor eax, eax
pop esi
pop ebx
leave
ret