Function at 0x42e802
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push 0x481d38
lea ecx, [ebp - 0x28]
call fcn.004013c8
test byte [0x48edcc], 1
jne 0x42e83d
mov eax, dword [0x47e520]
or byte [0x48edcc], 1
push 0x42eeb7
mov dword [0x48edc8], eax
call fcn.0046bac1
pop ecx
mov eax, dword [0x48edc8]
push ebx
xor ebx, ebx
push esi
cmp dword [eax - 8], ebx
push edi
mov esi, 0x48edc8
jne 0x42e8a6
mov eax, dword [0x488b6c]
mov ecx, 0x81
mov dword [ebp - 0x244], eax
xor eax, eax
lea edi, [ebp - 0x240]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x244]
test eax, eax
je 0x42e897
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x244]
push ecx
push eax
mov ecx, esi
call fcn.0040148d
push str.___e__L__D__1__S_
lea ecx, [ebp - 0x20]
call fcn.004013c8
push 0x47efc4
lea ecx, [ebp - 8]
call fcn.004013c8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004015b6
lea ecx, [ebp - 4]
call fcn.0040139c
lea ecx, [ebp - 8]
call fcn.0040139c
lea ecx, [ebp - 0x20]
call fcn.0040139c
mov eax, dword [0x488e14]
mov dword [ebp - 0x18], ebx
cmp eax, 1
jne 0x42e92e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
mov edi, 0xf003f
push eax
push edi
push ebx
push ebx
push SHChangeNotifyDeregister
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x42e996
lea ecx, [ebp - 0x18]
call fcn.0040372e
mov eax, dword [ebp - 8]
jmp 0x42e993
cmp eax, 2
jne 0x42e964
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
mov edi, 0xf003f
push eax
push edi
push ebx
push str.SoftwareClasses
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x42e996
lea ecx, [ebp - 0x18]
call fcn.0040372e
mov eax, dword [ebp - 8]
jmp 0x42e993
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
mov edi, 0xf003f
push eax
push edi
push ebx
push str.SoftwareClasses
push SHChangeNotifyDeregister
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x42e996
lea ecx, [ebp - 0x18]
call fcn.0040372e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push str._shell_
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x24], ebx
call fcn.00408569
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004015b6
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push 1
push ebx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x42e9ef
lea ecx, [ebp - 0x24]
call fcn.0040372e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea ecx, [ebp - 0x1c]
call fcn.0040139c
cmp dword [ebp - 4], ebx
jne 0x42ec0a
push str.command
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], 0x400
call fcn.004013c8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push str._shell_
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408569
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004015b6
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 1
push ebx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x42ea74
lea ecx, [ebp - 0x24]
call fcn.0040372e
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x34]
call fcn.0040139c
lea ecx, [ebp - 0x38]
call fcn.0040139c
lea ecx, [ebp - 0x10]
call fcn.0040139c
lea ecx, [ebp - 0xc]
call fcn.0040139c
cmp dword [ebp - 0x1c], ebx
jne 0x42ec0a
mov eax, dword [0x47e520]
push 0x400
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.004016d4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040173c
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call fcn.0046b615
pop ecx
test eax, eax
pop ecx
jne 0x42ec02
cmp dword [ebp + 0x10], ebx
jne 0x42ebb6
lea eax, [ebp + 8]
push str._shell
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.00408569
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push 1
push ebx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0xc], ebx
call esi
mov esi, eax
cmp esi, ebx
jne 0x42eb2e
lea ecx, [ebp - 4]
call fcn.0040372e
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040139c
cmp esi, ebx
jne 0x42ebac
mov ecx, dword [0x47e520]
mov eax, 0x400
mov dword [ebp - 0xc], ecx
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
call fcn.004016d4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
call fcn.0040173c
push dword [ebp - 0x28]
push dword [ebp - 0xc]
call fcn.0046b615
pop ecx
test eax, eax
pop ecx
jne 0x42eba4
cmp dword [ebp + 0xc], ebx
je 0x42eb9d
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea ecx, [ebp - 4]
call fcn.0040372e
jmp 0x42ebbb
mov dword [ebp - 8], 1
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea ecx, [ebp - 4]
call fcn.0040372e
jmp 0x42ec02
cmp dword [ebp + 0xc], ebx
je 0x42ebfb
lea ecx, [ebp - 0x1c]
call fcn.0040139c
lea ecx, [ebp - 0x24]
call fcn.0040372e
lea ecx, [ebp - 0x14]
call fcn.0040372e
lea ecx, [ebp - 0x18]
call fcn.0040372e
lea ecx, [ebp - 0x2c]
call fcn.0040139c
lea ecx, [ebp - 0x28]
call fcn.0040139c
lea ecx, [ebp + 8]
call fcn.0040139c
push 1
pop eax
jmp 0x42eeb2
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x1c]
call fcn.0040139c
lea ecx, [ebp - 0x24]
call fcn.0040372e
cmp dword [ebp + 0xc], ebx
jne 0x42ee88
call fcn.0042d763
call fcn.0042d648
test eax, eax
je 0x42ece5
lea eax, [ebp - 4]
push 0x108
push eax
call fcn.0044bfce
pop ecx
mov esi, 0x47e630
pop ecx
push esi
lea ecx, [ebp + 0xc]
call fcn.004013c8
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push eax
push dword [eax - 8]
call fcn.00401658
lea ecx, [ebp + 0xc]
call fcn.0040139c
push esi
lea ecx, [ebp + 0xc]
call fcn.004013c8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 4]
push eax
call fcn.0040865b
lea ecx, [ebp + 0xc]
call fcn.0040139c
lea eax, [ebp + 0xc]
push 0x109
push eax
call fcn.0044bfce
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.0040865b
lea ecx, [ebp + 0xc]
call fcn.0040139c
push str.CLSID
lea ecx, [ebp - 0x10]
call fcn.004013c8
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp + 8]
call fcn.0040179a
test eax, eax
lea ecx, [ebp - 0x10]
setge byte [ebp + 0xf]
call fcn.0040139c
cmp byte [ebp + 0xf], bl
je 0x42ecdd
push ebx
push ebx
push dword [ebp - 4]
push dword [0x48f85c]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 4]
call fcn.0040139c
cmp dword [ebp - 8], ebx
je 0x42ed79
lea eax, [ebp + 8]
push str._shell
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00408569
mov eax, dword [eax]
push edi
push eax
lea ecx, [ebp + 0x10]
push dword [ebp - 0x30]
call fcn.00403829
neg eax
sbb al, al
lea ecx, [ebp - 0x10]
inc al
mov byte [ebp + 0xf], al
call fcn.0040139c
cmp byte [ebp + 0xf], bl
je 0x42ed6c
lea ecx, [ebp - 0x14]
call fcn.0040372e
push 0x488b68
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x481cec
lea ecx, [ebp + 0x10]
call fcn.00403745
push edi
lea ecx, [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 0x30]
call fcn.00403829
test eax, eax
jne 0x42ed6c
push str.shell
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp + 0x10]
call fcn.0040372e
jmp 0x42ee88
lea ecx, [ebp - 0x14]
call fcn.0040372e
push 0x47f070
lea ecx, [ebp + 0xc]
call fcn.004013c8
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004015b6
mov eax, dword [eax]
mov esi, dword [ebp - 0x30]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004057ce
lea ecx, [ebp - 0x10]
call fcn.0040139c
lea ecx, [ebp + 0xc]
call fcn.0040139c
lea eax, [ebp + 8]
push str._shell_
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00408569
mov eax, dword [eax]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004057ce
lea ecx, [ebp + 0xc]
call fcn.0040139c
cmp dword [ebp + 0x10], ebx
jne 0x42ee01
push ebx
push 0x481cec
lea ecx, [ebp - 0x14]
call fcn.00405825
lea eax, [ebp + 8]
push str._shellQ_Dir
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00408569
mov eax, dword [eax]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004057ce
lea ecx, [ebp + 0xc]
call fcn.0040139c
push str.Icon
lea ecx, [ebp + 0xc]
call fcn.004013c8
push dword [eax]
lea ecx, [ebp - 0x14]
push dword [0x48edc8]
call fcn.00405825
lea ecx, [ebp + 0xc]
call fcn.0040139c
lea eax, [ebp + 8]
push str._shellQ_Dircommand
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00408569
mov eax, dword [eax]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004057ce
lea ecx, [ebp + 0xc]
call fcn.0040139c
push ebx
lea ecx, [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00405825
lea ecx, [ebp - 0x14]
call fcn.0040372e
lea ecx, [ebp - 0x18]
call fcn.0040372e
lea ecx, [ebp - 0x2c]
call fcn.0040139c
lea ecx, [ebp - 0x28]
call fcn.0040139c
lea ecx, [ebp + 8]
call fcn.0040139c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret