Function at 0x442390
Capabilities:
Enumerate services
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b148
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x583384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4423f5
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
push 0
push 0
push 0x1009
push dword [ebx + 4]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_SendMessageA]
push Ordinal_2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x442438
xor edi, edi
jmp 0x442885
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
lea eax, [ebp - 0x38]
push 0
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0
push 3
push 0xb
push 0
push ebx
call edi
push dword [ebp - 0x10]
call fcn.0051f003
push dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
push 0
push eax
call fcn.00517590
add esp, 0x10
lea eax, [ebp - 0x38]
push 0
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x34]
push 3
push 0xb
push 0
push ebx
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x442872
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x44], 0
jbe 0x442872
mov eax, dword [ebp - 0x34]
add eax, 0xc
mov dword [ebp - 0x20], eax
push 1
push dword [eax - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x442859
push 0x30
call fcn.005134da
add esp, 4
test eax, eax
je 0x4424eb
mov ecx, eax
call fcn.00440a40
mov edi, eax
mov dword [ebp - 0x14], eax
jmp 0x4424f0
xor edi, edi
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x20]
lea ebx, [edi + 0x18]
mov dword [ebp - 0x3c], ebx
mov eax, dword [ecx - 4]
mov dword [edi + 4], eax
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov edx, dword [ecx - 0xc]
test edx, edx
jne 0x44250f
xor ecx, ecx
jmp 0x442520
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442514
sub ecx, edi
mov edi, dword [ebp - 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00407040
mov eax, dword [ebp - 0x20]
lea ebx, [edi + 0x1c]
mov edx, dword [eax - 8]
test edx, edx
jne 0x44253a
xor ecx, ecx
jmp 0x44254c
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442540
sub ecx, edi
mov edi, dword [ebp - 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00407040
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4426b1
push eax
call fcn.0051f003
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push 0
push eax
call fcn.00517590
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x4426a6
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 4]
mov dword [edi + 0xc], eax
add edi, 0x28
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x4425ba
xor ecx, ecx
jmp 0x4425cc
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4425c0
sub ecx, ebx
mov ebx, dword [ebp - 0x18]
push ecx
push edx
mov ecx, edi
call fcn.00407040
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4425f0
mov eax, dword [ebp - 0x3c]
push dword [eax]
push str.__SystemRoot___system32drivers_s.sys
push edi
call fcn.00406950
add esp, 0xc
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x44261f
push 0x549578
push eax
call fcn.005271de
add esp, 8
test eax, eax
je 0x44261f
sub eax, dword [edi]
jne 0x44261f
push 0x54727d
push 0x549578
mov ecx, edi
call fcn.004428d0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x44264e
push str.SystemRoot
push eax
call fcn.005271de
add esp, 8
test eax, eax
je 0x44264e
sub eax, dword [edi]
jne 0x44264e
push str._SystemRoot_
push str.SystemRoot
mov ecx, edi
call fcn.004428d0
mov edx, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x14]
test edx, edx
jne 0x44265c
xor ecx, ecx
jmp 0x44266a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442661
sub ecx, edi
push ecx
push edx
lea ecx, [ebx + 0x2c]
call fcn.00407040
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x442685
xor ecx, ecx
jmp 0x442699
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442690
sub ecx, edi
push ecx
push edx
lea ecx, [ebx + 0x24]
call fcn.00407040
mov ebx, dword [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.0051effe
add esp, 4
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x28]
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x442732
push eax
call fcn.0051f003
push dword [ebp - 0x10]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x28], edi
call fcn.00517590
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
je 0x442729
mov edx, dword [edi]
mov ebx, dword [ebp - 0x14]
test edx, edx
jne 0x442705
xor ecx, ecx
jmp 0x44271c
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442710
sub ecx, edi
mov edi, dword [ebp - 0x28]
push ecx
push edx
lea ecx, [ebx + 0x20]
call fcn.00407040
mov ebx, dword [ebp - 0x2c]
push edi
call fcn.0051effe
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x442760
mov ecx, ebx
call fcn.00440bf0
push 0x30
push ebx
call fcn.005137bd
add esp, 8
jmp 0x442856
push eax
lea eax, [ebx + 0x14]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSet_services_s
push eax
call fcn.00406950
mov dword [ebp - 0x10], 0x200
mov ecx, 1
mov eax, dword [esi - 8]
add esp, 0xc
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x44279d
push 0x200
lea ecx, [ebp - 0x30]
call fcn.00406dd0
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebx + 0x28]
call fcn.00441ee0
test eax, eax
je 0x4427e1
push dword [esi - 8]
push esi
call fcn.00526cb2
add esp, 8
test eax, eax
js 0x4428b8
cmp eax, dword [esi - 8]
jg 0x4428b8
mov dword [esi - 0xc], eax
lea ecx, [ebx + 0x28]
mov byte [eax + esi], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00413fa0
push dword [ebx + 0x28]
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberA]
test eax, eax
jns 0x442802
mov ecx, ebx
call fcn.00440bf0
push 0x30
push ebx
call fcn.005137bd
add esp, 8
jmp 0x442850
push dword [ebx + 0x28]
call fcn.0044d610
add esp, 4
test eax, eax
je 0x4427ee
push dword [ebx + 0x28]
mov ecx, 0x58ce30
call fcn.004fb410
mov edi, dword [ebp - 0x40]
push 0
push 0
push 0x1004
mov dword [ebx], eax
mov dword [ebx + 0x10], 0xffffffff
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push eax
push 7
lea ecx, [edi + 4]
call fcn.004413e0
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x20]
inc ecx
add eax, 0x2c
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x20], eax
cmp ecx, dword [ebp - 0x24]
jb 0x4424b8
push dword [ebp - 0x34]
call fcn.0051effe
add esp, 4
push ebx
call edi
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4428a4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004063a0
int3