Function at 0x40b610
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4628ac
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x47b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xa4], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0xa0], ebx
push ecx
mov ecx, eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.0040d1d0
mov dword [ebp - 4], 0
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
test ebx, ebx
je 0x40b839
xor edi, edi
mov dword [ebp - 0x98], edi
add eax, edx
je 0x40b762
xor ebx, ebx
cmp dword [ebx + esi + 0x14], 7
lea eax, [ebx + esi]
jbe 0x40b6ad
mov eax, dword [eax]
push eax
push dword [ebp - 0xa0]
call fcn.00442e92
add esp, 8
test eax, eax
je 0x40b737
mov esi, dword [ebp - 0x20]
add esi, ebx
cmp dword [esi + 0x14], 7
jbe 0x40b6cd
mov esi, dword [esi]
push ecx
mov edi, esp
mov dword [ebp - 0x9c], edi
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40b9b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004062e0
test al, al
jne 0x40b728
test esi, esi
jne 0x40b707
xor ecx, ecx
jmp 0x40b71f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b710
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004065f0
mov byte [ebp - 4], 0
call fcn.0040d7e0
mov edi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
inc edi
sub ecx, esi
mov dword [ebp - 0x98], edi
imul ecx
add ebx, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40b6a1
call fcn.0040db50
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x94]
push eax
call fcn.0040b300
mov byte [ebp - 4], 3
cmp dword [ebp - 0x80], 0
jne 0x40b7ec
mov eax, dword [0x47e038]
test al, 1
jne 0x40b7bf
or eax, 1
mov dword [0x47e038], eax
push 0x68
push 0
push 0x47dfd0
mov byte [ebp - 4], 4
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [0x47e008]
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b7d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.00408a60
cmp dword [ebp - 0x7c], 7
lea edi, [ebp - 0x90]
push 0xf003f
cmova edi, dword [ebp - 0x90]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40b933
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40b8f7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40b933
mov dword [ebp - 0x98], 0
add eax, edx
je 0x40b762
xor ebx, ebx
nop dword [eax]
add esi, ebx
cmp dword [esi + 0x14], 7
jbe 0x40b85a
mov esi, dword [esi]
push ecx
mov edi, esp
mov dword [ebp - 0x9c], edi
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40b9b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004062e0
test al, al
jne 0x40b8b8
test esi, esi
jne 0x40b894
xor ecx, ecx
jmp 0x40b8af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004065f0
mov byte [ebp - 4], 0
call fcn.0040d7e0
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add ebx, 0x18
mov edi, dword [ebp - 0x98]
sub ecx, esi
imul ecx
inc edi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x98], edi
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40b850
jmp 0x40b762
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x38], 1
je 0x40b920
lea eax, [ebp - 0x3c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ecx
push dword [ebp - 0x38]
push ecx
push edi
call fcn.00413ab0
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x94]
call fcn.0040b460
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40b994
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.0040e5e0
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40b98a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9bc
push ecx
push esi
call fcn.00438aa2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438436
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004022c0
call fcn.00442b30
int3