Function at 0x457582
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.0044a4e0
mov eax, dword [0x492fd0]
pop ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], ebx
pop ecx
jl 0x4575b7
mov dword [ebp - 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4575c9
mov ecx, dword [0x47e520]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
call fcn.0040833f
mov eax, dword [0x488e14]
mov dword [ebp - 0xc], ebx
cmp eax, 1
jne 0x457600
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push ebx
push SHChangeNotifyDeregister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457662
lea ecx, [ebp - 0xc]
call fcn.0040372e
mov eax, dword [ebp - 0x1c]
jmp 0x45765f
cmp eax, 2
jne 0x457633
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 0x457662
lea ecx, [ebp - 0xc]
call fcn.0040372e
mov eax, dword [ebp - 0x1c]
jmp 0x45765f
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareClasses
push SHChangeNotifyDeregister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457662
lea ecx, [ebp - 0xc]
call fcn.0040372e
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 0x45777e
lea ecx, [ebp - 8]
call fcn.0040372e
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 8], ecx
jne 0x45777e
mov eax, dword [0x47e520]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, 0x400
push eax
mov dword [ebp - 0x24], eax
call fcn.004016d4
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.0040173c
push esi
lea ecx, [ebp - 0x20]
call fcn.004013c8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b6
push dword [ebp - 0x1c]
mov eax, dword [eax]
push eax
call fcn.0046b615
neg eax
pop ecx
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x28]
mov byte [ebp - 1], al
call fcn.0040139c
lea ecx, [ebp - 0x20]
call fcn.0040139c
cmp byte [ebp - 1], bl
je 0x457776
cmp dword [ebp + 8], ebx
jne 0x45773e
push dword [0x492fd4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00403745
lea ecx, [ebp - 0x1c]
call fcn.0040139c
lea ecx, [ebp - 0xc]
call fcn.0040372e
lea ecx, [ebp - 0x10]
call fcn.0040139c
lea ecx, [ebp - 0x14]
call fcn.0040372e
lea ecx, [ebp - 8]
call fcn.0040372e
lea ecx, [ebp - 0x18]
call fcn.0040139c
push 1
pop eax
jmp 0x457949
lea ecx, [ebp - 0x1c]
call fcn.0040139c
cmp dword [ebp + 8], 0xffffffff
je 0x45791f
cmp dword [ebp + 8], 1
jne 0x45791f
cmp dword [ebp - 8], ebx
je 0x4577a3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
lea edx, [ebp - 0x28]
mov ecx, dword [0x492fd4]
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 0x4577da
lea ecx, [ebp - 8]
call fcn.0040372e
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 [0x47e520]
push 2
pop edi
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
push dword [ebp - 0x18]
push str._s__d
push eax
call fcn.004017cc
add esp, 0x10
lea ecx, [ebp - 0x20]
push str._shellopencommand
call fcn.004013c8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b6
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.004057ce
lea ecx, [ebp - 0x28]
call fcn.0040139c
lea ecx, [ebp - 0x20]
call fcn.0040139c
push esi
lea ecx, [ebp - 0x20]
call fcn.004013c8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b6
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 8]
call fcn.00405825
lea ecx, [ebp - 0x28]
call fcn.0040139c
lea ecx, [ebp - 0x20]
call fcn.0040139c
lea ecx, [ebp - 8]
call fcn.0040372e
push ebx
push ebx
push edi
push ebx
push ebx
lea ecx, [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004057ce
push ebx
lea ecx, [ebp - 8]
push dword [0x492fd8]
call fcn.00405825
lea ecx, [ebp - 8]
call fcn.0040372e
push str.DefaultIcon
lea ecx, [ebp - 0x20]
call fcn.004013c8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b6
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.004057ce
lea ecx, [ebp - 0x28]
call fcn.0040139c
lea ecx, [ebp - 0x20]
call fcn.0040139c
push ebx
lea ecx, [ebp - 8]
push dword [ebp + 8]
call fcn.00405825
lea ecx, [ebp - 8]
call fcn.0040372e
lea ecx, [ebp + 8]
call fcn.0040139c
pop edi
lea ecx, [ebp - 0xc]
call fcn.0040372e
lea ecx, [ebp - 0x10]
call fcn.0040139c
lea ecx, [ebp - 0x14]
call fcn.0040372e
lea ecx, [ebp - 8]
call fcn.0040372e
lea ecx, [ebp - 0x18]
call fcn.0040139c
xor eax, eax
pop esi
pop ebx
leave
ret