Function at 0x4331df
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2c], 0
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
push edi
push 0x408a74
push 4
mov dword [ebp - 0x44], edi
mov ebx, ecx
inc esi
call fcn.0041ea5f
add esp, 0xc
test ebx, ebx
je 0x43322a
push 0x408a90
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
and ebx, eax
push 0xf003f
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x433246
xor esi, esi
jmp 0x4333dc
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x433264
xor esi, esi
inc esi
jmp 0x4333bc
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x433353
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x433286
push 0x57
pop eax
cmp eax, 0x426
je 0x43325c
cmp eax, 0x425
jne 0x4332b1
cmp dword [ebp - 0x1c], 1
je 0x43325c
cmp dword [ebp - 0x1c], 2
jne 0x433353
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x433264
cmp eax, 0x41b
jne 0x4333ba
cmp dword [ebp - 0x2c], 0
jne 0x4333ba
and dword [ebp - 0x34], 0
and dword [ebp - 0x28], 0
push 0x24
push 0x64
mov dword [ebp - 0x2c], 1
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
mov dword [ebp - 0x3c], edi
pop ecx
pop ecx
test edi, edi
je 0x4333ba
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push 0xe10
push edi
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x433349
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x28], 0
jbe 0x433339
mov dword [ebp - 0x38], edi
mov edx, dword [edi]
mov ecx, ebx
call fcn.004331df
neg eax
lea edi, [edi + 0x24]
sbb eax, eax
and esi, eax
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x28]
jb 0x433318
mov edi, dword [ebp - 0x3c]
push edi
call dword [sym.imp.msvcrt.dll_free]
mov edi, dword [ebp - 0x24]
pop ecx
jmp 0x433264
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4333ba
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4333ba
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4333bc
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ebx, ecx
cmp edi, 0x64
jg 0x43337c
mov edi, 0x2710
test edi, edi
jle 0x4333b1
cmp eax, 1
je 0x4333bc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4333ba
mov eax, dword [ebp - 0x1c]
sub edi, 0x1f4
test edi, edi
jg 0x433380
mov ecx, dword [ebp - 0xc]
cmp eax, 1
je 0x4333bc
cmp ebx, ecx
jne 0x43336d
xor esi, esi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4333d3
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x408aa0
test esi, esi
jne 0x4333e1
mov eax, 0x408ab4
push eax
push dword [ebp - 0x44]
push 0x408ac4
push 4
call fcn.0041ea5f
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret