Function at 0x414f83
Capabilities:
Create service
Delete service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
cmp dword [0x4c8f60], esi
push edi
mov dword [ebp - 0x3c], ecx
jne 0x415037
lea eax, [ebp - 4]
push eax
push 0x4c8f60
mov edi, str.Advapi32.DLL
push edi
push 0x4b1d28
mov dword [ebp - 4], esi
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c8f64
push edi
push 0x4b1d18
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c8f68
push edi
push str.QueryServiceStatusEx
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c8f6c
push edi
push 0x4b1cf0
call fcn.0043afc7
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4c8f70
push edi
push 0x4b1ce0
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c8f74
push edi
push 0x4b1ccc
call fcn.0043afc7
add esp, 0x20
cmp dword [0x4c8f60], esi
jne 0x415037
mov eax, 0x80004001
jmp 0x41562d
push ebx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 9
pop ecx
push 0xf003f
xor ebx, ebx
xor eax, eax
push esi
lea edi, [ebp - 0x64]
inc ebx
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
xor edi, edi
call dword [0x4c8f60]
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x415459
or dword [ebp - 4], 0xffffffff
push 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
pop edi
jmp 0x4151ec
push 7
lea eax, [ebp + 8]
push eax
push str._create
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4150af
mov dword [ebp - 0x18], ebx
jmp 0x4151ec
push 7
lea eax, [ebp + 8]
push eax
push str._delete
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4150ce
mov dword [ebp - 0x14], ebx
jmp 0x4151ec
push 5
lea eax, [ebp + 8]
push eax
push 0x4b1cb4
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4150ed
mov dword [ebp - 0x1c], ebx
jmp 0x4151ec
push 5
lea eax, [ebp + 8]
push eax
push str._auto
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41510c
mov dword [ebp - 4], edi
jmp 0x4151ec
push 5
lea eax, [ebp + 8]
push eax
push str._boot
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41512b
mov dword [ebp - 4], esi
jmp 0x4151ec
push 7
lea eax, [ebp + 8]
push eax
push str._demand
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41514e
mov dword [ebp - 4], 3
jmp 0x4151ec
push 9
lea eax, [ebp + 8]
push eax
push str._disabled
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41516e
mov dword [ebp - 4], 4
jmp 0x4151ec
push 0xd
lea eax, [ebp + 8]
push eax
push str._delayed_auto
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41518d
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
jmp 0x4151ec
push 6
lea eax, [ebp + 8]
push eax
push str._start
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4151a9
mov dword [ebp - 0xc], edi
jmp 0x4151ec
push 5
lea eax, [ebp + 8]
push eax
push str._stop
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4151c5
mov dword [ebp - 0xc], ebx
jmp 0x4151ec
push 6
lea eax, [ebp + 8]
push eax
push str._stop_
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x4151e2
or dword [ebp - 0xc], 0xffffffff
jmp 0x4151ec
lea eax, [ebp + 8]
push eax
call fcn.00405444
pop ecx
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x2d
je 0x415090
mov ax, word [ecx]
cmp ax, 0x3f
jne 0x41522c
add ecx, edi
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x20], ecx
call fcn.0040549b
mov eax, dword [ebp + 8]
cmp word [eax], si
pop ecx
je 0x415222
mov word [eax], si
add dword [ebp + 8], edi
lea ecx, [ebp + 8]
call fcn.0040ea44
jmp 0x41523a
cmp ax, 0x21
jne 0x41523a
add ecx, edi
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x18], esi
je 0x4153de
lea ecx, [ebp - 0xc]
call fcn.0043fd9a
lea ecx, [ebp - 4]
call fcn.0043fd9a
lea ecx, [ebp - 0x10]
call fcn.0043fd9a
lea ecx, [ebp - 0x14]
call fcn.0043fd9a
lea ecx, [ebp - 8]
call fcn.0043fd9a
lea ecx, [ebp - 0x18]
call fcn.0043fd9a
lea ecx, [ebp - 0x30]
call fcn.0043fd9a
push esi
push 0x2c
pop edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x38], ebx
call fcn.004352a9
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004352a9
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442c55
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442c55
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442c55
add esp, 0x44
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004352a9
push esi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004352a9
push esi
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004352a9
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004352a9
add esp, 0x40
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 8]
call fcn.0043fddf
mov ecx, dword [ebp - 8]
lea eax, [edi + edi]
mov word [eax + ecx + 2], si
mov ecx, dword [ebp - 8]
mov word [eax + ecx], si
mov eax, dword [ebp - 0x18]
cmp word [eax], si
mov edi, eax
jne 0x41534e
xor edi, edi
mov eax, dword [ebp - 4]
cmp word [eax], si
jne 0x415361
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00448401
mov eax, dword [ebp - 8]
jmp 0x415374
cmp word [eax], 0x2f
jne 0x415372
mov word [eax], si
mov eax, dword [ebp + 8]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], si
jne 0x415366
push dword [ebp - 0x30]
push edi
push dword [ebp - 8]
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push 0xf01ff
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.00439cfd
lea ecx, [ebp - 0x18]
call fcn.00439cfd
lea ecx, [ebp - 8]
call fcn.00439cfd
lea ecx, [ebp - 0x14]
call fcn.00439cfd
lea ecx, [ebp - 0x10]
call fcn.00439cfd
lea ecx, [ebp - 4]
call fcn.00439cfd
lea ecx, [ebp - 0xc]
jmp 0x415454
cmp dword [ebp - 0x14], esi
je 0x415496
cmp dword [ebp - 0xc], esi
jl 0x415417
push str._wait__
lea ecx, [ebp - 0x10]
call fcn.00448399
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043fe06
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x3c]
call fcn.00414f83
lea ecx, [ebp - 0x10]
call fcn.00439cfd
lea ecx, [ebp - 0x14]
call fcn.0043fd9a
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp - 0xc], esi
jl 0x415430
push 0x20
pop eax
jmp 0x415432
xor eax, eax
or eax, 0x10000
push eax
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [0x4c8f64]
mov edi, eax
cmp edi, esi
je 0x415451
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
lea ecx, [ebp - 0x14]
call fcn.00439cfd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
cmp edi, esi
pop ebx
je 0x41546e
push edi
call dword [0x4c8f74]
cmp dword [ebp - 0x24], esi
je 0x41547c
push dword [ebp - 0x24]
call dword [0x4c8f74]
cmp dword [ebp - 0x20], esi
je 0x41562a
cmp dword [ebp - 0x2c], esi
jne 0x4155fb
push dword [ebp - 8]
jmp 0x415603
lea ecx, [ebp + 8]
call fcn.0040ea44
push dword [ebp + 8]
call fcn.00411f27
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp - 0x20], esi
pop ecx
setne al
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x4154be
push 4
pop eax
jmp 0x4154cc
cmp dword [ebp - 4], esi
jl 0x4154c7
mov eax, edi
jmp 0x4154c9
xor eax, eax
or eax, 0x34
push eax
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [0x4c8f64]
mov edi, eax
cmp edi, esi
je 0x415459
cmp dword [ebp - 0x20], esi
je 0x41554e
lea eax, [ebp - 0x40]
push eax
push 0x24
lea eax, [ebp - 0x64]
push eax
push esi
push edi
call dword [0x4c8f68]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp ebx, esi
mov dword [ebp - 8], eax
jne 0x415519
cmp eax, esi
je 0x4155c4
mov dword [ebp - 0x28], eax
jmp 0x4155c4
push dword [ebp - 0x44]
lea eax, [ebp - 0x210]
push dword [ebp - 0x48]
mov dword [ebp - 0x28], esi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push str.0_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
jmp 0x4155c4
cmp dword [ebp - 4], esi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
jl 0x4155e6
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x415581
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp dword [ebp - 0x10], esi
je 0x4155a1
cmp eax, esi
jne 0x4155a1
cmp dword [ebp - 8], esi
jne 0x4155a1
call ebx
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 1
je 0x4155ec
cmp dword [ebp - 0xc], 2
jne 0x4155c4
push esi
push esi
push edi
call dword [0x4c8f70]
cmp eax, esi
jne 0x4155c4
cmp dword [ebp - 8], esi
jne 0x4155c4
call ebx
mov dword [ebp - 8], eax
cmp dword [ebp - 0x1c], esi
je 0x415462
cmp dword [ebp - 0x2c], esi
jne 0x415462
push dword [ebp - 0xc]
push edi
call fcn.00414f41
pop ecx
pop ecx
jmp 0x415462
cmp dword [ebp - 0xc], 1
jne 0x4155ad
lea eax, [ebp - 0x80]
push eax
push 1
push edi
call dword [0x4c8f6c]
jmp 0x4155b6
cmp dword [ebp - 0x28], esi
je 0x415618
push dword [ebp - 0x28]
lea eax, [ebp - 0x210]
push 0x4af1c4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20]
call fcn.0043f62b
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4