Function at 0x445cc0
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push 0xf003f
push 0
push 0
mov dword [ebp - 0x14], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x445d37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x586800
cmp eax, 5
je 0x445ef3
cmp eax, 0x429
je 0x445ee3
jmp 0x445ed3
cmp edi, 0xffffffff
jne 0x445d48
mov dword [ebp - 0x14], 0
jmp 0x445f03
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebx + 8]
jb 0x445d54
mov ecx, dword [ebx + 8]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x445e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x445e10
mov dword [ebx + 0x68], 4
lea ecx, [ebx + 0x50]
cmp dword [ebx + 0x64], 0x10
jb 0x445d8f
mov ecx, dword [ebx + 0x50]
cmp dword [ebx + 0x34], 0x10
lea esi, [ebx + 0x20]
jb 0x445d9b
mov esi, dword [ebx + 0x20]
cmp dword [ebx + 0x1c], 0x10
lea edx, [ebx + 8]
jb 0x445da7
mov edx, dword [ebx + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push 3
push 1
push 0xf01ff
push esi
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x445e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 0x64], 0x10
lea ecx, [ebx + 0x50]
mov dword [ebp - 0x14], eax
jb 0x445de0
mov ecx, dword [ecx]
cmp dword [ebx + 0x34], 0x10
lea edx, [ebx + 0x20]
jb 0x445deb
mov edx, dword [edx]
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
jb 0x445df6
mov eax, dword [eax]
push dword [ebp - 0x14]
push ecx
push edx
push eax
lea eax, [ebp - 0x198]
push str.Failed_to_create_service_for_driver_name__s__display_name__s__image_path__s._Error__d._n
push eax
call fcn.00413510
add esp, 0x18
mov dword [ebp - 0x14], esi
test esi, esi
je 0x445f03
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x445e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 2
je 0x445f49
sub ecx, 0x41e
jne 0x445f18
lea eax, [ebx + 0x38]
mov dword [ebx + 0x68], 1
cmp dword [eax + 0x14], 0x10
jb 0x445e59
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x98]
push str.._s
push eax
call fcn.00413510
add esp, 0xc
lea eax, [ebp - 0x98]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x445f82
jmp 0x445eac
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x445ec0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.OpenSCManager_Unknown_Error
push eax
call fcn.004e4900
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], str.No_OpenSCManager_Database_exists
push eax
call fcn.004e4900
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], str.Access_denied_to_OpenSCManager.
push eax
call fcn.004e4900
push 0x586800
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], str.Unable_to_open_service_from_SCM_database
push eax
call fcn.004e4900
push eax
lea eax, [ebp - 0x198]
mov dword [ebx + 0x68], 2
push str._StartService___failed._Error__d._n
push eax
call fcn.00413510
add esp, 0xc
mov dword [ebp - 0x2c], str.StartService_failed
lea eax, [ebp - 0x2c]
push 0x586800
push eax
call fcn.004e4900
push esi
mov dword [ebx + 0x68], 3
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 2
lea eax, [ebp - 0x198]
push str._StartService___failed._Error__d._n
push eax
call fcn.00413510
add esp, 0xc
mov dword [ebp - 0x30], str.StartService_failed._Invalid_binary_file
lea eax, [ebp - 0x30]
push 0x586800
push eax
call fcn.004e4900
push 0x586800
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.CreateFile_:_Handle_for_driver_could_not_be_created
push eax
call fcn.004e4900
int3