Function at 0x41b708
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
sub esp, 0xc68
lea ebp, [esp - 4]
mov eax, dword [0x4f2720]
xor eax, ebp
mov dword [ebp + 0xc68], eax
push 0x40
mov eax, 0x4bdca6
call fcn.004603b7
mov eax, dword [ebp + 0xc74]
mov edi, dword [ebp + 0xc78]
mov ebx, dword [ebp + 0xc7c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc80]
push str.CRunServiceOperate::Install_Start
mov esi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
call fcn.00430859
pop ecx
lea ecx, [esi + 4]
push edi
call fcn.00401300
lea ecx, [esi + 0x20]
push ebx
mov dword [ebp - 0x30], ecx
call fcn.00401300
push dword [ebp - 0x14]
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x2c], ecx
call fcn.00401300
mov edi, 0x206
xor ebx, ebx
push edi
lea eax, [ebp + 0x85a]
push ebx
push eax
mov word [ebp + 0x858], bx
call fcn.0045fa70
push edi
lea eax, [ebp + 0xa62]
push ebx
push eax
mov word [ebp + 0xa60], bx
call fcn.0045fa70
push edi
lea eax, [ebp + 0x652]
push ebx
push eax
mov word [ebp + 0x650], bx
call fcn.0045fa70
add esp, 0x24
call fcn.00404dc4
mov ecx, eax
call fcn.0042a6b8
push eax
lea eax, [ebp + 0x650]
push eax
call fcn.0045fd44
lea eax, [ebp + 0x650]
push str.SCTool.exe
push eax
call fcn.0045fd1a
add esp, 0x10
call fcn.00404dc4
mov ecx, eax
call fcn.0042a6b8
push eax
lea eax, [ebp + 0xa60]
push eax
call fcn.0045fd44
pop ecx
pop ecx
lea ecx, [esi + 0x58]
push 0x4df45c
call fcn.0040fa3a
test eax, eax
jne 0x41b829
push str.SCService.exe
jmp 0x41b838
cmp dword [esi + 0x70], 8
jb 0x41b834
mov eax, dword [esi + 0x5c]
jmp 0x41b837
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp + 0xa60]
push eax
call fcn.0045fd1a
cmp dword [esi + 0x74], ebx
pop ecx
pop ecx
je 0x41b958
lea eax, [ebp + 0x650]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401130
lea eax, [ebp + 0xa60]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.00401130
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.00401f80
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401fe0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401f80
mov ecx, dword [ebp - 0x10]
push fcn.00464120
push dword [ecx + 4]
push dword [ecx]
mov ecx, dword [ebp - 0x20]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.0041b065
add esp, 0x20
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp]
call fcn.00401f80
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp]
call fcn.00401fe0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp]
call fcn.00401f80
mov ecx, dword [ebp - 0x20]
push fcn.00464120
push dword [ecx + 4]
push dword [ecx]
mov ecx, dword [ebp - 0x10]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.0041b065
add esp, 0x20
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00404218
test eax, eax
je 0x41b93c
push dword [ebp - 0x34]
lea eax, [ebp + 0xa60]
push eax
lea eax, [ebp + 0x650]
push eax
mov ecx, esi
call fcn.0041b143
push ebx
push 1
lea ecx, [ebp]
call fcn.00401330
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00401330
jmp 0x41b96d
lea eax, [ebp + 0xa60]
push eax
lea eax, [ebp + 0x650]
push eax
call fcn.0042cb96
pop ecx
pop ecx
lea eax, [ebp + 0xa60]
push eax
lea eax, [ebp + 0x858]
push eax
call fcn.0045fd44
lea eax, [ebp + 0x858]
push str._StartService
push eax
call fcn.0045fd1a
push edi
lea eax, [ebp + 0x3a]
push ebx
push eax
mov word [ebp + 0x38], bx
call fcn.0045fa70
push edi
lea eax, [ebp + 0x44a]
push ebx
push eax
mov word [ebp + 0x448], bx
call fcn.0045fa70
push edi
lea eax, [ebp + 0x242]
push ebx
push eax
mov word [ebp + 0x240], bx
call fcn.0045fa70
lea eax, [ebp + 0x858]
push eax
lea eax, [ebp + 0x240]
push eax
call fcn.0045fd44
add esp, 0x3c
lea eax, [ebp + 0x448]
push eax
mov edi, str.ServiceName
push edi
mov ecx, esi
call fcn.0041a976
lea eax, [ebp + 0x38]
push eax
push str.ServiceImagePath
mov ecx, esi
call fcn.0041a976
lea eax, [ebp + 0x38]
push eax
call fcn.004608cd
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x240]
push eax
call fcn.004608cd
push dword [ebp - 0x10]
push eax
call fcn.004615f0
add esp, 0x10
test eax, eax
jne 0x41ba64
push dword [ebp - 0x10]
lea eax, [ebp + 0x448]
push eax
mov ecx, esi
call fcn.0041adfc
test eax, eax
je 0x41ba64
lea eax, [ebp + 0x448]
push eax
mov ecx, esi
call fcn.0041aeec
test eax, eax
je 0x41ba64
push str.CRunServiceOperate::Install_bNotNeedInstallService_Is_FALSE
call fcn.00430859
xor eax, eax
jmp 0x41bc1f
lea eax, [esi + 4]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x10], eax
jb 0x41ba75
mov eax, dword [eax + 4]
jmp 0x41ba78
add eax, 4
push eax
mov ecx, esi
call fcn.0041a881
mov ecx, esi
call fcn.0041b348
push dword [ebp - 0x1c]
mov ecx, esi
push edi
call fcn.0041aafb
push dword [ebp - 0x1c]
mov ecx, esi
push edi
call fcn.0041ab6d
push dword [ebp - 0x14]
mov ecx, esi
push str.ServiceDescription
call fcn.0041ab6d
push dword [ebp - 0x18]
mov ecx, esi
push str.ServiceDisplayName
call fcn.0041ab6d
lea eax, [ebp + 0x858]
push eax
push str.ServiceImagePath
mov ecx, esi
call fcn.0041ab6d
push dword [ebp - 0x1c]
mov ecx, esi
push edi
call fcn.0041ac81
push dword [ebp - 0x14]
mov ecx, esi
push str.ServiceDescription
call fcn.0041ac81
push dword [ebp - 0x18]
mov ecx, esi
push str.ServiceDisplayName
call fcn.0041ac81
lea eax, [ebp + 0x858]
push eax
push str.ServiceImagePath
mov ecx, esi
call fcn.0041ac81
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xf003f
push edi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x41bb34
push str.CRunServiceOperate::Install_bNotNeedInstallService_hSCM__NULL
jmp 0x41ba58
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x18], 8
jb 0x41bb42
mov ecx, dword [eax + 4]
jmp 0x41bb45
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 8
jb 0x41bb53
mov eax, dword [eax + 4]
jmp 0x41bb56
add eax, 4
push ebx
push ebx
push 0x4df45c
push ebx
push ebx
lea edx, [ebp + 0x858]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, ebx
jne 0x41bba0
push str.CRunServiceOperate::Install_bNotNeedInstallService_hService__NULL
call fcn.00430859
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x41bc20
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x18], 8
jb 0x41bbae
mov eax, dword [eax + 4]
jmp 0x41bbb1
add eax, 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x14]
call esi
push edi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x41bc0d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 8
jb 0x41bbed
mov eax, dword [eax + 4]
jmp 0x41bbf0
add eax, 4
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x41bc0d
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call esi
push dword [ebp - 0x18]
call esi
push str.CRunServiceOperate::Install_bNotNeedInstallService_End
call fcn.00430859
xor eax, eax
inc eax
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc68]
xor ecx, ebp
call fcn.0045fa14
add ebp, 0xc6c
leave
ret 0x10