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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbc33
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x50b080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
push 0x20000004
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x416219
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.00467d30
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416178
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0xf0
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b670
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x78]
add esp, 4
cmp ecx, 7
jbe 0x416212
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416208
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416932
push ecx
push edx
call fcn.004906cd
add esp, 8
xor al, al
jmp 0x416917
push 0xf01ff
push str.MBAMInstallerService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x416332
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x14], 0x424
je 0x416329
lea ecx, [ebp - 0x8c]
call fcn.00467d30
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416272
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0xfb
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_opening
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str.__status:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x14]
mov ecx, eax
call fcn.0041b670
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x78]
add esp, 4
cmp ecx, 7
jbe 0x41683a
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416830
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416937
jmp 0x416830
mov byte [ebp - 0x6d], 1
jmp 0x41683f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4163f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x8c]
call fcn.00467d30
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416385
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x10a
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_getting
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str._status:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x74]
jmp 0x4162d9
cmp dword [ebp - 0x3c], 1
je 0x41662e
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x4005000e
push eax
push 0x2c
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
push 1
push esi
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlServiceExA]
test eax, eax
jne 0x416518
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
cmp eax, 0x426
je 0x416518
lea ecx, [ebp - 0x8c]
call fcn.00467d30
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416460
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push pe_nt_image_headers32
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_controlling
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str.__status:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x74]
mov ecx, eax
call fcn.0041b670
push eax
call fcn.004113d0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x78]
cmp ecx, 7
jbe 0x416518
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41650e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416937
push ecx
push edx
call fcn.004906cd
add esp, 8
xor eax, eax
nop word [eax + eax]
inc eax
cmp dword [ebp - 0x3c], 1
mov dword [ebp - 0x74], eax
je 0x416745
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4166e2
mov eax, dword [ebp - 0x74]
cmp eax, 0x3c
jl 0x416520
cmp dword [ebp - 0x3c], 1
je 0x416745
lea ecx, [ebp - 0x8c]
call fcn.00467d30
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416580
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x12b
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_stopping
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str.__continuing
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x78]
cmp ecx, 7
jbe 0x41662e
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416624
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416937
push ecx
push edx
call fcn.004906cd
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41684c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x74], 0x430
lea ecx, [ebp - 0x8c]
jne 0x4167b0
mov eax, dword [ebp - 0x94]
mov byte [eax + 4], 1
call fcn.00467d30
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416685
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x13c
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Deleting_pending_for
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
jmp 0x4162e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x8c]
call fcn.00467d30
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416713
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x125
jmp 0x4163b2
lea ecx, [ebp - 0x8c]
call fcn.00467d30
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41675f
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x12f
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Stopped
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
jmp 0x4165e4
call fcn.00467d30
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4167c4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x141
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_deleting
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str.__status:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x74]
jmp 0x4162d9
push ecx
push edx
call fcn.004906cd
add esp, 8
xor al, al
mov byte [ebp - 0x6d], al
test esi, esi
je 0x41690d
jmp 0x416906
lea ecx, [ebp - 0x8c]
call fcn.00467d30
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416866
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x147
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Deleted_service
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x78]
add esp, 4
cmp ecx, 7
jbe 0x4168f4
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4168ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416937
push ecx
push edx
call fcn.004906cd
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x6d], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490396
mov esp, ebp
pop ebp
ret
call fcn.004958ff
call fcn.004958ff
int3