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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d64e
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x43a00c]
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.004195c0
mov ecx, dword [ebp + 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
add esp, 0xc
cmp eax, 7
jb 0x409102
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.0040b6b0
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 0x408dc5
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 0x408dd8
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 0x4354f8
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040c560
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x240], esp
push 0
push 0x4354f8
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0040c560
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.0040a240
xor ecx, ecx
mov byte [ebp - 4], 3
call fcn.00412e30
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 0x408e9c
mov esi, 0x80004005
jmp 0x408ec9
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 0x408ed6
push eax
call ebx
test esi, esi
je 0x408f8a
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.0040a240
call fcn.00408960
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004195c0
inc edi
add esp, 0x24
cmp edi, 3
jb 0x408de0
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.0040c560
call fcn.00408aa0
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 0x408f7b
push str.BingWallpaperApp
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x408fbb
push eax
call ebx
jmp 0x408fbb
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.0040d540
add esp, 0x10
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x408ffb
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408ff1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409107
push edx
push ecx
call fcn.00417807
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 0x409052
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409048
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409107
push edx
push ecx
call fcn.00417807
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 0x40909c
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409092
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409107
push edx
push ecx
call fcn.00417807
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 0x4090e6
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4090dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409107
push edx
push ecx
call fcn.00417807
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.004177f9
mov esp, ebp
pop ebp
ret
call fcn.0040c400
call fcn.0041af8c
int3