Function at 0x10080e10
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dcba8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x1026abac]
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 0x10080e95
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.1004d410
push 0x1004d630
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 0x10081493
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 0x10080efa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x10080efa
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.1004d410
push 0x1004d630
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 0x10081493
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 0x10080fad
cmp esi, 0x7fffffff
ja 0x100814ae
cmp esi, 0x1000
jb 0x10080f66
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x100814b3
push eax
call fcn.101d51fe
add esp, 4
test eax, eax
je 0x1008143e
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ebp - 0x8c], ecx
mov dword [ecx - 4], eax
jmp 0x10080f77
push esi
call fcn.101d51fe
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 0x10081014
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.1004d410
push 0x1004d630
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 0x10081412
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0x98], 0
jbe 0x10081404
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 0x10081050
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.1004d7a0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x40]
call fcn.1004b7d0
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 0x10081095
mov edi, dword [ebp - 0x30]
add edi, esi
jmp 0x1008109b
add edi, dword [ebp - 0x30]
lea esi, [ebp - 0x40]
cmp esi, edi
je 0x100810bc
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 0x100810a4
mov ecx, dword [ebp - 0x48]
mov eax, bind
sub eax, ecx
cmp eax, 0x22
jb 0x100814b8
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.1004db50
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.1004b7d0
lea ecx, [ebp - 0x28]
call fcn.100808d0
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 0x1008112e
mov edi, dword [ebp - 0x18]
add edi, esi
jmp 0x10081134
add edi, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x10081158
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 0x10081140
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004b7d0
call fcn.10080bc0
add esp, 0x18
cmp eax, 0x32c8
jge 0x10081196
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004b7d0
call fcn.10080bc0
add esp, 0x18
cmp eax, 0x1388
jg 0x10081450
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 0x10081233
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 0x10081230
nop
mov ecx, esi
mov edx, str.hack
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x100811f9
cmp al, byte [edx]
jne 0x100811fd
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100811fd
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100811fd
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100811fd
xor eax, eax
jmp 0x10081202
sbb eax, eax
or eax, 1
test eax, eax
je 0x10081225
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 0x100811d0
jmp 0x10081230
sub esi, edi
cmp esi, 0xffffffff
jne 0x10081450
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 0x100812dd
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 0x100812da
nop dword [eax + eax]
mov ecx, esi
mov edx, str.iqvw64e
mov edi, 3
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1008128b
add ecx, 4
add edx, 4
or edi, 0xffffffff
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100812b2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100812b2
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100812b2
cmp edi, 0xffffffff
je 0x100812ae
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100812b2
xor eax, eax
jmp 0x100812b7
sbb eax, eax
or eax, 1
test eax, eax
je 0x10081444
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 0x10081270
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10081314
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1008130a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008143e
push ecx
push edx
call fcn.101d565d
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 0x1008135e
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10081354
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008143e
push ecx
push edx
call fcn.101d565d
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x10081396
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008138c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008143e
push ecx
push edx
call fcn.101d565d
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 0x100813dc
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100813d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008143e
push ecx
push edx
call fcn.101d565d
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 0x10081030
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x10081491
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10081487
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10081487
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 0x100812da
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
call fcn.1004b7d0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.1004b7d0
mov byte [ebp - 4], 4
call fcn.10080c40
mov edx, dword [ebp - 0x28]
add esp, 0x30
jmp 0x100812dd
push edx
push ecx
call fcn.101d565d
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.101d51d8
mov esp, ebp
pop ebp
ret
call fcn.1004e4c0
call fcn.10047940
call fcn.100479e0
int3