Function at 0x100830a0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dee58
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x1026dbac]
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 0x10083125
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.1004d3b0
push 0x1004d5d0
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 0x10083723
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 0x1008318a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x1008318a
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.1004d3b0
push 0x1004d5d0
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 0x10083723
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 0x1008323d
cmp esi, 0x7fffffff
ja 0x1008373e
cmp esi, 0x1000
jb 0x100831f6
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10083743
push eax
call fcn.101d6fe4
add esp, 4
test eax, eax
je 0x100836ce
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ebp - 0x8c], ecx
mov dword [ecx - 4], eax
jmp 0x10083207
push esi
call fcn.101d6fe4
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 0x100832a4
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.1004d3b0
push 0x1004d5d0
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 0x100836a2
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0x98], 0
jbe 0x10083694
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 0x100832e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.1004d740
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 0x10083325
mov edi, dword [ebp - 0x30]
add edi, esi
jmp 0x1008332b
add edi, dword [ebp - 0x30]
lea esi, [ebp - 0x40]
cmp esi, edi
je 0x1008334c
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 0x10083334
mov ecx, dword [ebp - 0x48]
mov eax, bind
sub eax, ecx
cmp eax, 0x22
jb 0x10083748
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.1004daf0
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.10082b60
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 0x100833be
mov edi, dword [ebp - 0x18]
add edi, esi
jmp 0x100833c4
add edi, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x100833e8
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 0x100833d0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004b7d0
call fcn.10082e50
add esp, 0x18
cmp eax, 0x32c8
jge 0x10083426
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004b7d0
call fcn.10082e50
add esp, 0x18
cmp eax, 0x1388
jg 0x100836e0
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 0x100834c3
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 0x100834c0
nop
mov ecx, esi
mov edx, str.hack
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x10083489
cmp al, byte [edx]
jne 0x1008348d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1008348d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1008348d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1008348d
xor eax, eax
jmp 0x10083492
sbb eax, eax
or eax, 1
test eax, eax
je 0x100834b5
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 0x10083460
jmp 0x100834c0
sub esi, edi
cmp esi, 0xffffffff
jne 0x100836e0
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 0x1008356d
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 0x1008356a
nop dword [eax + eax]
mov ecx, esi
mov edx, str.iqvw64e
mov edi, 3
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1008351b
add ecx, 4
add edx, 4
or edi, 0xffffffff
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10083542
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10083542
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10083542
cmp edi, 0xffffffff
je 0x1008353e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10083542
xor eax, eax
jmp 0x10083547
sbb eax, eax
or eax, 1
test eax, eax
je 0x100836d4
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 0x10083500
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100835a4
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1008359a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100836ce
push ecx
push edx
call fcn.101d7443
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 0x100835ee
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100835e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100836ce
push ecx
push edx
call fcn.101d7443
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x10083626
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008361c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100836ce
push ecx
push edx
call fcn.101d7443
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 0x1008366c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10083662
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100836ce
push ecx
push edx
call fcn.101d7443
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 0x100832c0
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x10083721
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10083717
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10083717
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 0x1008356a
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.10082ed0
mov edx, dword [ebp - 0x28]
add esp, 0x30
jmp 0x1008356d
push edx
push ecx
call fcn.101d7443
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.101d6fbe
mov esp, ebp
pop ebp
ret
call fcn.1004e470
call fcn.10047950
call fcn.100479f0
int3