Function at 0x1007f070
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x10268bac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
push 0
push 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x90], esi
test esi, esi
jne 0x1007f0f5
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Failed_to_open_service_control_manager.
call fcn.1004e650
push 0x1004e870
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [esi + 1]
jmp 0x1007f6f3
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 3
push 0x3ff
push esi
call edi
test eax, eax
jne 0x1007f15a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x1007f15a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Failed_to_retrieve_service_information.
call fcn.1004e650
push 0x1004e870
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1007f6f3
mov esi, dword [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x84], eax
test esi, esi
je 0x1007f20d
cmp esi, 0x7fffffff
ja 0x1007f70e
cmp esi, 0x1000
jb 0x1007f1c6
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x1007f713
push eax
call fcn.101d3dfe
add esp, 4
test eax, eax
je 0x1007f69e
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ebp - 0x8c], ecx
mov dword [ecx - 4], eax
jmp 0x1007f1d7
push esi
call fcn.101d3dfe
add esp, 4
mov dword [ebp - 0x8c], eax
mov ecx, eax
push esi
lea eax, [ecx + esi]
mov dword [ebp - 0xa8], ecx
push 0
push ecx
mov dword [ebp - 0xa0], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
mov esi, dword [ebp - 0x84]
push esi
push 1
push 0x3ff
push dword [ebp - 0x90]
call edi
test eax, eax
jne 0x1007f274
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Failed_to_retrieve_service_information.
call fcn.1004e650
push 0x1004e870
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
jmp 0x1007f672
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0x98], 0
jbe 0x1007f664
nop dword [eax + eax]
mov edx, dword [esi]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007f2b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.1004e9e0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x40]
call fcn.1004ca80
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea edi, [ebp - 0x40]
mov esi, dword [ebp - 0x40]
setae cl
cmovae edx, esi
test cl, cl
je 0x1007f2f5
mov edi, dword [ebp - 0x30]
add edi, esi
jmp 0x1007f2fb
add edi, dword [ebp - 0x30]
lea esi, [ebp - 0x40]
cmp esi, edi
je 0x1007f31c
sub edx, esi
mov dword [ebp - 0x74], edx
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ecx, dword [ebp - 0x74]
add esp, 4
mov byte [ecx + esi], al
inc esi
cmp esi, edi
jne 0x1007f304
mov ecx, dword [ebp - 0x48]
mov eax, bind
sub eax, ecx
cmp eax, 0x22
jb 0x1007f718
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
push 0x22
push str.SYSTEMCurrentControlSetServices_
push ecx
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
call fcn.1004ed90
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.1004ca80
lea ecx, [ebp - 0x28]
call fcn.1007e610
add esp, 0x18
mov byte [ebp - 4], 4
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
setae cl
cmovae edx, esi
test cl, cl
je 0x1007f38e
mov edi, dword [ebp - 0x18]
add edi, esi
jmp 0x1007f394
add edi, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x1007f3b8
sub edx, esi
mov dword [ebp - 0x74], edx
nop dword [eax]
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ecx, dword [ebp - 0x74]
add esp, 4
mov byte [esi + ecx], al
inc esi
cmp esi, edi
jne 0x1007f3a0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004ca80
call fcn.1007e900
add esp, 0x18
cmp eax, 0x32c8
jge 0x1007f3f6
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004ca80
call fcn.1007e900
add esp, 0x18
cmp eax, 0x1388
jg 0x1007f6b0
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
setae byte [ebp - 0x75]
cmovae edi, edx
mov dword [ebp - 0x74], edx
cmp ecx, 4
jb 0x1007f493
lea eax, [ecx - 3]
add eax, edi
sub eax, edi
push eax
push 0x68
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1007f490
nop
mov ecx, esi
mov edx, str.hack
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x1007f459
cmp al, byte [edx]
jne 0x1007f45d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1007f45d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1007f45d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1007f45d
xor eax, eax
jmp 0x1007f462
sbb eax, eax
or eax, 1
test eax, eax
je 0x1007f485
mov eax, dword [ebp - 0x18]
inc esi
add eax, 0xfffffffd
add eax, edi
sub eax, esi
push eax
push 0x68
push esi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1007f430
jmp 0x1007f490
sub esi, edi
cmp esi, 0xffffffff
jne 0x1007f6b0
mov edx, dword [ebp - 0x74]
cmp byte [ebp - 0x75], 0
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovne ecx, edx
mov dword [ebp - 0x7c], ecx
cmp eax, 7
jb 0x1007f53d
add eax, 0xfffffffa
add eax, ecx
mov dword [ebp - 0x9c], eax
sub eax, ecx
push eax
push 0x69
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1007f53a
nop dword [eax + eax]
mov ecx, esi
mov edx, str.iqvw64e
mov edi, 3
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1007f4eb
add ecx, 4
add edx, 4
or edi, 0xffffffff
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1007f512
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1007f512
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1007f512
cmp edi, 0xffffffff
je 0x1007f50e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1007f512
xor eax, eax
jmp 0x1007f517
sbb eax, eax
or eax, 1
test eax, eax
je 0x1007f6a4
mov eax, dword [ebp - 0x9c]
inc esi
sub eax, esi
push eax
push 0x69
push esi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1007f4d0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1007f574
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f56a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f69e
push ecx
push edx
call fcn.101d425d
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x1007f5be
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f5b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f69e
push ecx
push edx
call fcn.101d425d
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x1007f5f6
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f5ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f69e
push ecx
push edx
call fcn.101d425d
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x1007f63c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f632
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f69e
push ecx
push edx
call fcn.101d425d
add esp, 8
mov edi, dword [ebp - 0x98]
mov esi, dword [ebp - 0x84]
inc edi
add esi, 0x24
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x84], esi
cmp edi, dword [ebp - 0x88]
jb 0x1007f290
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x1007f6f1
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1007f6e7
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007f6e7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub esi, dword [ebp - 0x7c]
cmp esi, 0xffffffff
je 0x1007f53a
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
call fcn.1004ca80
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.1004ca80
mov byte [ebp - 4], 4
call fcn.1007e980
mov edx, dword [ebp - 0x28]
add esp, 0x30
jmp 0x1007f53d
push edx
push ecx
call fcn.101d425d
add esp, 8
mov eax, esi
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.101d3dd8
mov esp, ebp
pop ebp
ret
call fcn.1004f700
call fcn.10048be0
call fcn.10048c80
int3