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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cc1e
mov eax, dword fs:[0]
push eax
mov eax, 0x2248
call fcn.004ae7f0
mov eax, dword [0x5f7448]
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
mov dword [ebp - 0x2244], ebx
mov eax, dword [ebp + 0xc]
push 0xf003f
xor edi, edi
push edi
push edi
mov dword [ebp - 0x224c], eax
mov byte [eax], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x45677b
push 1
lea eax, [ebx + 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4560de
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
je 0x45677b
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x2250], edi
test edi, edi
jne 0x45616a
push str.Couldnt_open_service_manager
lea ecx, [ebp - 0x21d0]
call fcn.00405090
mov dword [ebp - 4], edi
push 1
lea eax, [ebp - 0x21d0]
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21bc], 0x10
jb 0x456148
push dword [ebp - 0x21d0]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x21bc], 0xf
mov dword [ebp - 0x21c0], 0
mov byte [ebp - 0x21d0], 0
xor eax, eax
jmp 0x456780
mov eax, dword [ebp - 0x2244]
push 0xf01ff
add eax, 0x30
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4561a5
push edi
call ebx
push str.Couldnt_open_service
lea ecx, [ebp - 0x21d0]
call fcn.00405090
mov dword [ebp - 4], 1
jmp 0x456117
lea eax, [ebp - 0x2240]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2254], 0
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0x1388
jae 0x45620d
lea eax, [ebp - 0x2254]
push eax
push 0x24
lea eax, [ebp - 0x2224]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x45620d
cmp dword [ebp - 0x2220], 1
je 0x45620d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, 0x1388
jb 0x4561d4
cmp byte [ebp + 8], 0
mov dword [ebp - 0x2244], 1
je 0x4562b5
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 0x2248]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x2248], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x456349
call edi
cmp eax, 0x7a
je 0x456349
call edi
push eax
lea eax, [ebp - 0x21e8]
push eax
call fcn.00425090
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x2200]
push str.Couldnt_call_QueryServiceConfig_with_error:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 3
push 1
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2200]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21e8]
call fcn.004050f0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x21c4], 0
mov dword [ebp - 0x21c0], 0
mov dword [ebp - 0x21bc], 0
mov dword [ebp - 4], 0x10
push 0x20006
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x21c4]
call fcn.00450830
test eax, eax
je 0x4565ba
push eax
lea eax, [ebp - 0x21e8]
push eax
call fcn.00425090
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x2200]
push str.Failed_to_open_SafeBoot_with_error:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 0x12
push 1
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 0x11
jmp 0x456609
lea eax, [ebp - 0x2248]
push eax
push dword [ebp - 0x2248]
lea eax, [ebp - 0x21b8]
push eax
push esi
call ebx
test eax, eax
jne 0x4563a9
call edi
push eax
lea eax, [ebp - 0x21e8]
push eax
call fcn.00425090
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x2200]
push str.Couldnt_call_second_QueryServiceConfig_with_error:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 5
push 1
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 4
jmp 0x456298
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0x21ac]
lea ecx, [ebp - 0x21e8]
call fcn.004038b0
mov dword [ebp - 4], 6
lea eax, [ebp - 0x21e8]
push eax
lea eax, [ebp - 0x21d0]
push eax
call fcn.00461ee0
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x2200]
push str.Detected_service_path:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 8
push 0
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2200]
call fcn.004050f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x21d0]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21e8]
call fcn.00403930
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21e8]
call fcn.004038b0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x21e8]
push eax
lea eax, [ebp - 0x21d0]
push eax
call fcn.00461ee0
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x2200]
push str.Binary_path:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 0xb
push 0
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2200]
call fcn.004050f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x21d0]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21e8]
call fcn.00403930
push dword [ebp - 0x21ac]
lea eax, [ebp - 0x218]
push eax
call fcn.004b0d95
add esp, 8
test eax, eax
je 0x456570
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x45654e
call edi
push eax
lea eax, [ebp - 0x21e8]
push eax
call fcn.00425090
mov dword [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x2200]
push str.Couldnt_call_second_QueryServiceConfig_with_error:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 0xd
push 1
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 0xc
jmp 0x456298
mov eax, dword [ebp - 0x224c]
push str.Path_modified
lea ecx, [ebp - 0x21e8]
mov byte [eax], 1
call fcn.00405090
mov dword [ebp - 4], 0xe
jmp 0x456590
mov eax, dword [ebp - 0x224c]
push str.Pathes_are_indentical
lea ecx, [ebp - 0x21e8]
mov byte [eax], 1
call fcn.00405090
mov dword [ebp - 4], 0xf
push 0
lea eax, [ebp - 0x21e8]
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21e8]
call fcn.004050f0
jmp 0x456721
push 0x58133c
lea ecx, [ebp - 0x21c4]
call fcn.0044e460
test eax, eax
je 0x456623
push eax
lea eax, [ebp - 0x21e8]
push eax
call fcn.00425090
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x2200]
push str.Failed_to_delete_sub_SafeBoot_with_error:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 0x14
push 1
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2200]
call fcn.004050f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x21e8]
call fcn.004050f0
call fcn.00449240
push eax
call fcn.004491e0
add esp, 4
test al, al
je 0x4566f5
push str.Trying_to_remove_category
lea ecx, [ebp - 0x2200]
call fcn.00405090
mov byte [ebp - 4], 0x15
push 0
lea eax, [ebp - 0x2200]
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2200]
call fcn.004050f0
lea eax, [ebp - 0x21e8]
push 0
push eax
call fcn.004553e0
add esp, 8
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x21d8], 0
jne 0x4566ab
push str.Category_removed
lea ecx, [ebp - 0x2200]
call fcn.00405090
mov byte [ebp - 4], 0x17
push 0
lea eax, [ebp - 0x2200]
jmp 0x4566cc
lea eax, [ebp - 0x21e8]
push eax
lea eax, [ebp - 0x2200]
push str.Error_removing_category:
push eax
call fcn.0040ccc0
add esp, 0xc
mov byte [ebp - 4], 0x18
push 1
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2200]
call fcn.004050f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x21e8]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c4]
test eax, eax
je 0x456717
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c4], 0
mov dword [ebp - 0x21c0], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x2250]
call esi
cmp dword [ebp - 0x2244], 0
jne 0x45677b
push str.Service_could_not_be_deleted_
lea ecx, [ebp - 0x2200]
call fcn.00405090
mov dword [ebp - 4], 0x19
push 1
lea eax, [ebp - 0x2200]
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2200]
call fcn.004050f0
xor eax, eax
jmp 0x456780
mov eax, 1
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.004adbd4
mov esp, ebp
pop ebp
ret 8