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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10031008]
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
mov ebx, ecx
test ebx, ebx
jne 0x100028b9
lea eax, [ecx + 0x57]
jmp 0x10002a6e
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x100028da
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002a6e
push 0xf01ff
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x100028f7
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x22
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
push str.SYSTEMCurrentControlSetServices_
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.10007130
mov dword [ebp - 4], 0
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002940
mov eax, dword [ebp - 0x18]
sub ecx, edx
mov edx, dword [ebp - 0x1c]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x10002988
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x2c]
lea edi, [edx + ecx]
push eax
push ebx
mov dword [ebp - 0x1c], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x14]
jmp 0x1000299a
push ecx
push ebx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10007810
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x34]
push ecx
push 0xf003f
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002a05
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push 0x100286f0
push dword [ebp - 0x34]
mov dword [ebp - 0x14], 1
call esi
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
push 4
push 0
push 0x100286d8
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x10002a12
push edi
call esi
push dword [ebp - 0x38]
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10002a5a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002a50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002a50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002251a
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
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.100224d9
mov esp, ebp
pop ebp
ret