Function at 0x40ca90
Capabilities:
Delete registry key
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48862b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8b8
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x6ba]
push ecx
mov word [ebp - 0x6bc], ax
call fcn.00420c90
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x8c2]
push eax
mov word [ebp - 0x8c4], dx
call fcn.00420c90
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x4b2]
push edx
mov word [ebp - 0x4b4], cx
call fcn.00420c90
add esp, 0x24
push 0xffffffffffffffff
push str.iTunes.ipa
lea ecx, [ebp - 0xa4]
call fcn.00431607
sub esp, 0x84
mov edi, esp
mov dword [ebp - 4], 0
mov ecx, 0x21
lea esi, [ebp - 0xa4]
push str._s_shell
lea edx, [ebp - 0x2ac]
rep movsd dword es:[edi], dword [esi]
call fcn.00408780
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x88
lea eax, [ebp - 0x10]
push eax
push 0x20219
push 0
lea ecx, [ebp - 0x2ac]
push ecx
push SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cc12
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x4a05a8
push edx
mov dword [ebp - 0x1c], 0x208
mov dword [ebp - 0x14], 1
call edi
test eax, eax
jne 0x40cc12
mov ecx, 0x4b3960
call fcn.0043133d
lea edx, [ebp - 0x4b4]
mov cx, word [edx]
cmp cx, word [eax]
jne 0x40cbda
test cx, cx
je 0x40cbd6
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x40cbda
add edx, 4
add eax, 4
test cx, cx
jne 0x40cbb4
xor eax, eax
jmp 0x40cbdf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cc12
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.004311e9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov ecx, 0x208
lea eax, [ebp - 0x2ac]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40cc30
push 0x208
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsiTunes.exe
lea edx, [ebp - 0x2ac]
push 0x104
push edx
call fcn.0041b544
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x20219
push 0
lea ecx, [ebp - 0x2ac]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40ccdb
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x4a05a8
push edx
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x18], 1
call edi
test eax, eax
jne 0x40ccdb
lea eax, [ebp - 0x6bc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ccb0
sub eax, edx
sar eax, 1
je 0x40ccdb
lea eax, [ebp - 0x6bc]
push eax
push str._s__166
lea edx, [ebp - 0x8c4]
call fcn.00408780
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call ebx
push str.open
push 0x4a179c
lea edx, [ebp - 0x4b4]
call fcn.00408780
add esp, 8
lea ecx, [ebp - 0xa4]
call fcn.0043133d
push eax
push str._sDefaultIcon
lea edx, [ebp - 0x2ac]
call fcn.00408780
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x2ac]
push eax
push SysReAllocString
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x40cd68
lea eax, [ebp - 0x8c4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cd43
sub eax, edx
mov edx, dword [ebp - 0x10]
sar eax, 1
inc eax
push eax
lea ecx, [ebp - 0x8c4]
push ecx
push 1
push 0x4a05a8
push edx
call esi
mov eax, dword [ebp - 0x10]
push eax
call ebx
lea ecx, [ebp - 0xa4]
call fcn.0043133d
push eax
push str._s_shell
lea edx, [ebp - 0x2ac]
call fcn.00408780
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2ac]
push edx
push SysReAllocString
call edi
test eax, eax
jne 0x40cdd5
lea eax, [ebp - 0x4b4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cdb0
mov ecx, dword [ebp - 0x10]
sub eax, edx
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x4b4]
push eax
push 1
push 0x4a05a8
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call ebx
lea ecx, [ebp - 0xa4]
call fcn.0043133d
push eax
push str._s_shell3uTools
lea edx, [ebp - 0x2ac]
call fcn.00408780
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
push SysReAllocString
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40ce21
mov edx, dword [ebp - 0x10]
push str.command
push edx
call esi
mov eax, dword [ebp - 0x10]
push eax
call ebx
lea ecx, [ebp - 0xa4]
call fcn.0043133d
push eax
push str._s_shell_
lea edx, [ebp - 0x2ac]
call fcn.00408780
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2ac]
push edx
push SysReAllocString
call edi
test eax, eax
jne 0x40ce6d
mov ecx, 0x4b36b8
call fcn.0043133d
push eax
mov eax, dword [ebp - 0x10]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call ebx
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.004311e9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret