Function at 0x408850
Capabilities:
Create process on windows
Print debug messages
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443219
mov eax, dword fs:[0]
push eax
sub esp, 0x6d4
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6dc], ecx
mov ecx, dword [ebp - 0x6dc]
call fcn.00407ed0
mov ecx, dword [ebp - 0x6dc]
call fcn.00408660
mov eax, dword [ebp - 0x6dc]
add eax, 0x148
push eax
mov ecx, dword [ebp - 0x6dc]
push ecx
lea edx, [ebp - 0x278]
push edx
call fcn.0040b600
add esp, 0xc
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6d8], esp
lea eax, [ebp - 0x278]
push eax
call fcn.0040a240
mov dword [ebp - 0x6e0], eax
mov ecx, dword [ebp - 0x6dc]
call fcn.004080e0
mov ecx, dword [ebp - 0x6dc]
cmp dword [ecx + 0x128], 0
je 0x4089b2
push 0x44beb8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x44bf10
lea ecx, [ebp - 0x4ac]
call fcn.0040a290
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x6dc]
add edx, 0x12c
push edx
lea ecx, [ebp - 0x4ac]
call fcn.0040a330
push 0
push 0x44bf20
lea ecx, [ebp - 0x4ac]
call fcn.0040a370
push eax
push 0x44bf24
push 0x44bf34
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x490]
push eax
push 0x44bf40
lea ecx, [ebp - 0x48c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.0040a2d0
jmp 0x408c05
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x6dc]
add eax, 0x12c
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040a240
mov byte [ebp - 4], 2
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x408a1e
push str.OpenSCManager_fail_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.0040a2d0
jmp 0x408c05
push 0x10
lea ecx, [ebp - 0x4c]
call fcn.0040a370
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x27c], eax
mov edx, dword [ebp - 0x27c]
push edx
push str.open_service_err_d
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x50], 0
jne 0x408aa9
push str.OpenService_fail_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.0040a2d0
jmp 0x408c05
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0
jne 0x408b9e
push str.________use_sc_cmd_to_start_service_______
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.start
lea ecx, [ebp - 0x6d4]
call fcn.0040a290
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6dc]
add ecx, 0x12c
push ecx
lea ecx, [ebp - 0x6d4]
call fcn.0040a330
push 0
push 0x44c048
lea ecx, [ebp - 0x6d4]
call fcn.0040a370
push eax
push str.sc.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6b8], eax
mov edx, dword [ebp - 0x6b8]
push edx
push 0x44c068
lea eax, [ebp - 0x6b4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x6b4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6d4]
call fcn.0040a2d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.0040a2d0
jmp 0x408c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
push ecx
push str.start_service_err_d
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.0040a2d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret