Function at 0x1007fdf0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x10269bac]
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 0x1007fe75
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 0x10080473
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 0x1007feda
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x1007feda
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 0x10080473
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 0x1007ff8d
cmp esi, 0x7fffffff
ja 0x1008048e
cmp esi, 0x1000
jb 0x1007ff46
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10080493
push eax
call fcn.101d477e
add esp, 4
test eax, eax
je 0x1008041e
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ebp - 0x8c], ecx
mov dword [ecx - 4], eax
jmp 0x1007ff57
push esi
call fcn.101d477e
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 0x1007fff4
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 0x100803f2
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0x98], 0
jbe 0x100803e4
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 0x10080030
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 0x10080075
mov edi, dword [ebp - 0x30]
add edi, esi
jmp 0x1008007b
add edi, dword [ebp - 0x30]
lea esi, [ebp - 0x40]
cmp esi, edi
je 0x1008009c
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 0x10080084
mov ecx, dword [ebp - 0x48]
mov eax, bind
sub eax, ecx
cmp eax, 0x22
jb 0x10080498
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.1007f390
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 0x1008010e
mov edi, dword [ebp - 0x18]
add edi, esi
jmp 0x10080114
add edi, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x10080138
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 0x10080120
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004ca80
call fcn.1007f680
add esp, 0x18
cmp eax, 0x32c8
jge 0x10080176
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004ca80
call fcn.1007f680
add esp, 0x18
cmp eax, 0x1388
jg 0x10080430
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 0x10080213
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 0x10080210
nop
mov ecx, esi
mov edx, str.hack
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x100801d9
cmp al, byte [edx]
jne 0x100801dd
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100801dd
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100801dd
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100801dd
xor eax, eax
jmp 0x100801e2
sbb eax, eax
or eax, 1
test eax, eax
je 0x10080205
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 0x100801b0
jmp 0x10080210
sub esi, edi
cmp esi, 0xffffffff
jne 0x10080430
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 0x100802bd
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 0x100802ba
nop dword [eax + eax]
mov ecx, esi
mov edx, str.iqvw64e
mov edi, 3
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1008026b
add ecx, 4
add edx, 4
or edi, 0xffffffff
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10080292
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10080292
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10080292
cmp edi, 0xffffffff
je 0x1008028e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10080292
xor eax, eax
jmp 0x10080297
sbb eax, eax
or eax, 1
test eax, eax
je 0x10080424
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 0x10080250
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100802f4
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100802ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008041e
push ecx
push edx
call fcn.101d4bdd
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 0x1008033e
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10080334
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008041e
push ecx
push edx
call fcn.101d4bdd
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x10080376
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008036c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008041e
push ecx
push edx
call fcn.101d4bdd
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 0x100803bc
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100803b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008041e
push ecx
push edx
call fcn.101d4bdd
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 0x10080010
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x10080471
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10080467
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10080467
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 0x100802ba
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.1007f700
mov edx, dword [ebp - 0x28]
add esp, 0x30
jmp 0x100802bd
push edx
push ecx
call fcn.101d4bdd
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.101d4758
mov esp, ebp
pop ebp
ret
call fcn.1004f700
call fcn.10048be0
call fcn.10048c80
int3