Function at 0x450c90
Capabilities:
Create process on windows
Delete service
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a82f6
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x4cf084]
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 edi, ecx
push str._install
push edi
xor esi, esi
call fcn.0048ba55
add esp, 8
test eax, eax
jne 0x450ce0
call fcn.00451980
mov esi, eax
jmp 0x45113f
push str._uninstall
push edi
call fcn.0048ba55
add esp, 8
test eax, eax
jne 0x450dae
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x450d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenSCManager_Failed__08x_n
call fcn.00458ac0
jmp 0x45113c
push 0xf01ff
push str.ss_conn_service2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x450d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenService_Failed__08x_n
call fcn.00458ac0
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push edi
call ebx
jmp 0x45113f
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x450d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DeleteService_Failed__08x_n
call fcn.00458ac0
add esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
jmp 0x45113f
push str.DeleteService_Succeed_n
call fcn.00458ac0
add esp, 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
jmp 0x45113f
push str._start
push edi
call fcn.0048ba55
add esp, 8
test eax, eax
jne 0x450f6b
push str.start___1__
lea ecx, [ebp - 0x160]
call fcn.004523e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0xc4]
mov ecx, eax
mov dword [ebp - 0xc4], str.ss_conn_service2
mov dword [ebp - 0xc0], fcn.00412a70
mov dword [ebp - 0xbc], 0x455b80
call fcn.00454f50
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004525d0
lea ecx, [ebp - 0x160]
call fcn.00451170
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x7c], 0x3c
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x6c], 0x4bd060
mov dword [ebp - 0x78], 0x240
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], str.open
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x1d
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x450ee7
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x450ea6
test byte [eax + 0x1c], 1
je 0x450ea6
cmp byte [eax + 0x19], 3
jb 0x450ea6
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x11
push dword [eax + 0x10]
call fcn.00401940
mov ecx, dword [ebp - 0x44]
add esp, 8
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x450f2e
test byte [eax + 0x1c], 1
je 0x450f2e
cmp byte [eax + 0x19], 3
jb 0x450f2e
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x12
push dword [eax + 0x10]
call fcn.00401940
jmp 0x450f2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x450f20
test byte [eax + 0x1c], 1
je 0x450f20
cmp byte [eax + 0x19], 3
jb 0x450f20
push esi
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x13
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
push esi
push str.Start_Failed__08x_n
call fcn.00458ac0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x45113f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451135
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45115d
jmp 0x451135
push str._stop
push edi
call fcn.0048ba55
add esp, 8
test eax, eax
jne 0x45113f
push str.stop___1__
lea ecx, [ebp - 0x1fc]
call fcn.004523e0
mov dword [ebp - 4], 1
lea edx, [ebp - 0xc4]
mov ecx, eax
mov dword [ebp - 0xc4], str.ss_conn_service2
mov dword [ebp - 0xc0], fcn.00412a70
mov dword [ebp - 0xbc], 0x455b80
call fcn.00454f50
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.004525d0
lea ecx, [ebp - 0x1fc]
call fcn.00451170
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0xb8], 0x3c
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xa8], 0x4bd060
mov dword [ebp - 0xb4], 0x240
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], str.open
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0x1d
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x4510c2
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x451081
test byte [eax + 0x1c], 1
je 0x451081
cmp byte [eax + 0x19], 3
jb 0x451081
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x14
push dword [eax + 0x10]
call fcn.00401940
mov ecx, dword [ebp - 0x80]
add esp, 8
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x451109
test byte [eax + 0x1c], 1
je 0x451109
cmp byte [eax + 0x19], 3
jb 0x451109
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x15
push dword [eax + 0x10]
call fcn.00401940
jmp 0x451106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x4510fb
test byte [eax + 0x1c], 1
je 0x4510fb
cmp byte [eax + 0x19], 3
jb 0x4510fb
push esi
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x16
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
push esi
push str.Start_Failed__08x_n
call fcn.00458ac0
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45113f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451135
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451162
push edx
push ecx
call fcn.00477197
add esp, 8
mov eax, esi
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.00477156
mov esp, ebp
pop ebp
ret
call fcn.004822a9
call fcn.004822a9
int3