Function at 0x41c8f0
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2050
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4f2888]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x41cbfe
mov ecx, dword [eax + 0x104]
mov dword [ebp - 0x24], ecx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call fcn.004021a0
push reloc.WSOCK32.dll_accept
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00425760
mov byte [ebp - 4], 2
call fcn.0042f8f6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41c972
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp + 8]
push str.svc_disable__s
push edx
mov byte [ebp - 4], 3
call fcn.00407880
add esp, 0xc
call fcn.0042f8f6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41c9b4
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0xf003f
push edi
push edi
mov byte [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, edi
jne 0x41ca6e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004257b0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
push 0xf01ff
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
jne 0x41caaa
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41c9f8
cmp dword [ebp - 0x24], edi
je 0x41cb25
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push edi
push 0x4bea90
lea ecx, [ebp - 0x2c]
call fcn.00426a30
lea edx, [ebp - 0x14]
push 0x4c0698
push edx
call fcn.00406fd0
add esp, 8
test al, al
je 0x41cb07
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push 0x4be97c
push edi
push 0x4bea90
lea ecx, [ebp - 0x2c]
call fcn.00426710
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x44], 1
jne 0x41cb72
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x41cb72
lea ecx, [ebp - 0x48]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x44], 1
je 0x41cb6f
lea edx, [ebp - 0x48]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov edi, dword [ebp + 8]
push 0x4c0698
push edi
push 0x4bea90
lea ecx, [ebp - 0x2c]
call fcn.00426710
jmp 0x41cb72
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cb95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004257b0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cbf2
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push esi
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret