Function at 0x4d7250
Capabilities:
Check for time delay via gettickcount
Delete registry key
Delete service
Modify service
Query service status
Stop service

Disassembly:
jmp 0x4d7250
push 0xffffffffffffffff
push 0x786c2e
mov eax, dword fs:[0]
push eax
mov eax, 0x2270
call fcn.00564f40
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x226c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x2284]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2298]
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
mov dword [esp + 0x20], eax
mov byte [eax], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4d72e0
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 1
add edi, 0x30
push edi
push esi
call ebx
test eax, eax
je 0x4d72d3
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp ebp, esi
jne 0x4d72ea
mov eax, 1
jmp 0x4d7972
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esp + 0x20], eax
cmp eax, esi
jne 0x4d736a
push 0x1d
push str.Couldnt_open_service_manager
lea ecx, [esp + 0xc4]
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], esi
mov byte [esp + 0xc8], 0
call fcn.00405920
mov dword [esp + 0x228c], esi
push 1
lea eax, [esp + 0xc0]
push eax
mov ecx, 0x868edc
call fcn.0054c860
cmp dword [esp + 0xd4], 0x10
jb 0x4d7970
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.00564155
add esp, 4
jmp 0x4d7970
push 0xf01ff
push edi
push eax
call ebx
mov ebp, eax
cmp ebp, esi
jne 0x4d73a2
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Couldnt_open_service
lea ecx, [esp + 0xc0]
call fcn.004062df
mov dword [esp + 0x228c], 1
jmp 0x4d7333
lea edx, [esp + 0xa0]
push edx
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [esp + 0x40], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x1388
jae 0x4d7407
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x40]
push eax
push 0x24
lea ecx, [esp + 0x84]
push ecx
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4d7407
cmp dword [esp + 0x80], 1
je 0x4d7407
push 0x64
call ebx
call esi
sub eax, edi
cmp eax, 0x1388
jb 0x4d73d2
cmp byte [esp + 0x2294], 0
mov ebx, 1
je 0x4d74a4
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push ebp
mov dword [esp + 0x28], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d751b
call esi
cmp eax, 0x7a
je 0x4d751b
call esi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004083af
push eax
lea ecx, [esp + 0xc8]
push 0x7b9440
push ecx
mov dword [esp + 0x22a0], 2
call fcn.00404cfa
add esp, 0x14
push ebx
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2294], 3
call fcn.0054c860
lea ecx, [esp + 0xbc]
call fcn.00402ed7
lea ecx, [esp + 0x24]
call fcn.00402ed7
or edi, 0xffffffff
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x20006
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
mov ebx, 0x10
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x24]
mov dword [esp + 0x2298], ebx
call fcn.00402185
test eax, eax
je 0x4d77c7
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004083af
push eax
lea edx, [esp + 0x50]
push str.Failed_to_open_SafeBoot_with_error:
push edx
mov byte [esp + 0x22a0], 0x11
call fcn.00404cfa
add esp, 0x14
mov byte [esp + 0x228c], 0x12
jmp 0x4d7809
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x2e8]
push ecx
push ebp
call edi
test eax, eax
jne 0x4d758c
call esi
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.004083af
push eax
lea eax, [esp + 0x30]
push 0x7b9398
push eax
mov dword [esp + 0x22a0], 4
call fcn.00404cfa
add esp, 0x14
push 1
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2294], 5
call fcn.0054c860
lea ecx, [esp + 0x24]
call fcn.00402ed7
lea ecx, [esp + 0xbc]
jmp 0x4d749f
push 0x208
lea ecx, [esp + 0xdc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x2ec]
push edx
lea ecx, [esp + 0xc0]
call fcn.00403706
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x2294], 6
call fcn.00407662
push eax
lea edx, [esp + 0x30]
push str.Detected_service_path:
push edx
mov byte [esp + 0x22a0], 7
call fcn.00404cfa
add esp, 0x14
push 0
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2294], 8
call fcn.0054c860
lea ecx, [esp + 0x24]
call fcn.00402ed7
lea ecx, [esp + 0x44]
call fcn.00402ed7
or edi, 0xffffffff
lea ecx, [esp + 0xbc]
mov dword [esp + 0x228c], edi
call fcn.00403a26
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0xc0]
call fcn.00403706
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2294], 9
call fcn.00407662
push eax
lea eax, [esp + 0x50]
push str.Binary_path:
push eax
mov byte [esp + 0x22a0], 0xa
call fcn.00404cfa
add esp, 0x14
push 0
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2294], 0xb
call fcn.0054c860
lea ecx, [esp + 0x44]
call fcn.00402ed7
lea ecx, [esp + 0x24]
call fcn.00402ed7
lea ecx, [esp + 0xbc]
mov dword [esp + 0x228c], edi
call fcn.00403a26
mov ecx, dword [esp + 0x2ec]
push ecx
lea edx, [esp + 0xdc]
push edx
call fcn.005680c6
add esp, 8
test eax, eax
je 0x4d7778
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xf0]
push eax
push edi
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x4d7749
call esi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004083af
push eax
lea edx, [esp + 0x50]
push 0x7b9398
push edx
mov dword [esp + 0x22a0], 0xc
call fcn.00404cfa
add esp, 0x14
push 1
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2294], 0xd
call fcn.0054c860
lea ecx, [esp + 0x44]
call fcn.00402ed7
lea ecx, [esp + 0x24]
call fcn.00402ed7
jmp 0x4d74a7
mov eax, dword [esp + 0x14]
push str.Path_modified
lea ecx, [esp + 0xc0]
mov byte [eax], 1
call fcn.004062df
push 0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x2290], 0xe
push ecx
jmp 0x4d77a5
mov edx, dword [esp + 0x14]
push str.Pathes_are_indentical
lea ecx, [esp + 0xc0]
mov byte [edx], 1
call fcn.004062df
push 0
lea eax, [esp + 0xc0]
mov dword [esp + 0x2290], 0xf
push eax
mov ecx, 0x868edc
call fcn.0054c860
lea ecx, [esp + 0xbc]
mov dword [esp + 0x228c], edi
call fcn.00402ed7
jmp 0x4d7925
mov eax, dword [esp + 0x18]
push 0x7b9328
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4d782f
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004083af
push eax
lea edx, [esp + 0x50]
push str.Failed_to_delete_sub_SafeBoot_with_error:
push edx
mov byte [esp + 0x22a0], 0x13
call fcn.00404cfa
add esp, 0x14
mov byte [esp + 0x228c], 0x14
push 1
push eax
mov ecx, 0x868edc
call fcn.0054c860
lea ecx, [esp + 0x44]
call fcn.00402ed7
lea ecx, [esp + 0x24]
mov byte [esp + 0x228c], bl
call fcn.00402ed7
call fcn.004074d7
push eax
call fcn.0040806c
add esp, 4
test al, al
je 0x4d7911
push str.Trying_to_remove_category
lea ecx, [esp + 0x64]
call fcn.004062df
push 0
lea eax, [esp + 0x64]
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2294], 0x15
call fcn.0054c860
lea ecx, [esp + 0x60]
mov byte [esp + 0x228c], bl
call fcn.00402ed7
lea ecx, [esp + 0xbc]
push 0
push ecx
call fcn.00404692
add esp, 8
cmp dword [esp + 0xd0], 0
mov byte [esp + 0x228c], 0x16
jne 0x4d78cd
push str.Category_removed
lea ecx, [esp + 0x64]
call fcn.004062df
push 0
lea edx, [esp + 0x64]
push edx
mov ecx, 0x868edc
mov byte [esp + 0x2294], 0x17
call fcn.0054c860
lea ecx, [esp + 0x60]
jmp 0x4d7900
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x48]
push str.Error_removing_category:
push ecx
call fcn.00404cfa
add esp, 0xc
push 1
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2294], 0x18
call fcn.0054c860
lea ecx, [esp + 0x44]
call fcn.00402ed7
lea ecx, [esp + 0xbc]
call fcn.00402ed7
lea ecx, [esp + 0x18]
mov dword [esp + 0x228c], edi
call fcn.00406226
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
test ebx, ebx
jne 0x4d72e0
push str.Service_could_not_be_deleted_
lea ecx, [esp + 0x64]
call fcn.004062df
push 1
lea eax, [esp + 0x64]
push eax
mov ecx, 0x868edc
mov dword [esp + 0x2294], 0x19
call fcn.0054c860
lea ecx, [esp + 0x60]
call fcn.00402ed7
xor eax, eax
mov ecx, dword [esp + 0x2284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x226c]
xor ecx, esp
call fcn.00564b24
add esp, 0x227c
ret 8