Function at 0x482ba1
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.0045f4df
mov eax, dword [0x4c6990]
pop ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], ebx
pop ecx
jl 0x482bd6
mov dword [ebp - 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x482be8
mov ecx, dword [0x4af550]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
call fcn.0040a750
mov eax, dword [0x4bc7cc]
mov dword [ebp - 0xc], ebx
cmp eax, 1
jne 0x482c1f
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 0x482c81
lea ecx, [ebp - 0xc]
call fcn.00405b3f
mov eax, dword [ebp - 0x1c]
jmp 0x482c7e
cmp eax, 2
jne 0x482c52
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 0x482c81
lea ecx, [ebp - 0xc]
call fcn.00405b3f
mov eax, dword [ebp - 0x1c]
jmp 0x482c7e
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 0x482c81
lea ecx, [ebp - 0xc]
call fcn.00405b3f
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 0x482d9d
lea ecx, [ebp - 8]
call fcn.00405b3f
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 8], ecx
jne 0x482d9d
mov eax, dword [0x4af550]
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.0049c975
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 0x482d95
cmp dword [ebp + 8], ebx
jne 0x482d5d
push dword [0x4c6994]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00405b56
lea ecx, [ebp - 0x1c]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.00405b3f
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.00405b3f
lea ecx, [ebp - 8]
call fcn.00405b3f
lea ecx, [ebp - 0x18]
call fcn.004038fb
push 1
pop eax
jmp 0x482f68
lea ecx, [ebp - 0x1c]
call fcn.004038fb
cmp dword [ebp + 8], 0xffffffff
je 0x482f3e
cmp dword [ebp + 8], 1
jne 0x482f3e
cmp dword [ebp - 8], ebx
je 0x482dc2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
lea edx, [ebp - 0x28]
mov ecx, dword [0x4c6994]
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 0x482df9
lea ecx, [ebp - 8]
call fcn.00405b3f
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 [0x4af550]
push 2
pop edi
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
push dword [ebp - 0x18]
push 0x4b15e4
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.00407bd0
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.00407c41
lea ecx, [ebp - 0x28]
call fcn.004038fb
lea ecx, [ebp - 0x20]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.00405b3f
push ebx
push ebx
push edi
push ebx
push ebx
lea ecx, [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00407bd0
push ebx
lea ecx, [ebp - 8]
push dword [0x4c6998]
call fcn.00407c41
lea ecx, [ebp - 8]
call fcn.00405b3f
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.00407bd0
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.00407c41
lea ecx, [ebp - 8]
call fcn.00405b3f
lea ecx, [ebp + 8]
call fcn.004038fb
pop edi
lea ecx, [ebp - 0xc]
call fcn.00405b3f
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.00405b3f
lea ecx, [ebp - 8]
call fcn.00405b3f
lea ecx, [ebp - 0x18]
call fcn.004038fb
xor eax, eax
pop esi
pop ebx
leave
ret