Function at 0x407540
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b37e
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.00417e70
mov ecx, dword [ebp + 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
add esp, 0xc
cmp eax, 7
jb 0x407942
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 7
cmovae eax, dword [ebp + 8]
push str.Version
push ecx
push eax
push ecx
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x234]
call fcn.00409530
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 3
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftBingWallpaperApp
push 0x80000001
mov dword [ebp - 0x238], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407605
push str.startAppInitialized
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x238]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407618
push eax
call ebx
xor edi, edi
nop word [eax + eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x238], esp
push 0
push 0x4335d8
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x240], esp
push 0
push 0x4335d8
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00408650
xor ecx, ecx
mov byte [ebp - 4], 3
call fcn.00411d20
add esp, 0x48
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x238]
mov dword [ebp - 0x21c], 0x104
push eax
push 1
xor esi, esi
push esi
push str.SoftwareMicrosoftBingWallpaperApp
push 0x80000001
mov dword [ebp - 0x238], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4076dc
mov esi, 0x80004005
jmp 0x407709
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.startAppInitialized
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, 0x80004005
cmovne esi, eax
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x407716
push eax
call ebx
test esi, esi
je 0x4077ca
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00408650
call fcn.004071a0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00417e70
inc edi
add esp, 0x24
cmp edi, 3
jb 0x407620
sub esp, 0x18
mov ecx, esp
push 4
push str.Kill
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
call fcn.004072e0
add esp, 0x18
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x238]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4077bb
push str.BingWallpaperApp
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4077fb
push eax
call ebx
jmp 0x4077fb
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x38]
cmp dword [ebp + 0x4c], 8
cmovae ecx, dword [ebp + 0x38]
cmp dword [ebp - 0x220], 8
lea edx, [eax + eax]
push ecx
push edx
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push ecx
push eax
call fcn.0040c060
add esp, 0x10
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x40783b
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407831
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407947
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 8
jb 0x407892
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407888
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407947
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x4078dc
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4078d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407947
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x407926
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40791c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407947
push edx
push ecx
call fcn.004165af
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call fcn.00409d80
call fcn.00419a7c
int3