Function at 0x104b55f
Capabilities:
Enumerate services

Disassembly:
push 0x54
mov eax, 0x1060cc1
call fcn.0104f320
mov dword [ebp - 0x54], ecx
xor edi, edi
push 0x80000000
push 0x1015be4
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x104ba19
cmp eax, 0xffffffff
je 0x104ba19
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push edi
push 3
push 0xb
push eax
call esi
cmp eax, edi
jne 0x104b613
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xea
je 0x104b613
call ebx
cmp eax, edi
jle 0x104b5eb
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x104b5f9
mov dword [ebp - 0x14], 0x80004005
push 0x1015bac
push 0x1015b8c
call ebx
push eax
call fcn.0104a5f6
add esp, 0xc
jmp 0x104b7a4
push dword [ebp - 0x18]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, edi
jne 0x104b647
push 0x1015b64
mov eax, 0x8007000e
push 0x1015b44
push eax
mov dword [ebp - 0x14], eax
call fcn.0104a504
add esp, 0xc
or dword [ebp - 4], 0xffffffff
jmp 0x104b795
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x18]
push eax
push 3
push 0xb
push dword [ebp - 0x34]
call esi
cmp eax, edi
jne 0x104b69c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, edi
jle 0x104b67a
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x104b688
mov dword [ebp - 0x14], 0x80004005
push 0x1015bac
push 0x1015b24
call esi
push eax
call fcn.0104a5f6
jmp 0x104b63b
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jae 0x104b782
mov esi, eax
imul esi, esi, 0x24
add esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x60]
call fcn.0104b2f8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24], edi
je 0x104b6cd
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x80000000
push dword [esi]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x104b709
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x1002678
push 0x1015afc
push 0x4000000
call fcn.0104a7da
add esp, 0x14
jmp 0x104ba09
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push dword [ebp - 0x24]
call ebx
cmp eax, edi
jne 0x104b73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x104b73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x1002678
push 0x1015ad0
jmp 0x104b6f7
cmp dword [ebp - 0x1c], edi
je 0x104b74f
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x18]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x104b7b6
push 0x1015ab0
mov eax, 0x8007000e
push 0x1015a90
push eax
mov dword [ebp - 0x14], eax
call fcn.0104a504
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.0104b313
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x104b795
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x2c], 0
je 0x104b7a4
push dword [ebp - 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
call fcn.0104f3d4
ret
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call ebx
cmp eax, edi
jne 0x104b7e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x1002678
push 0x1015a54
jmp 0x104b6f7
push dword [esi]
lea ecx, [ebp - 0x60]
call fcn.010313eb
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.010313eb
mov eax, dword [ebp - 0x5c]
cmp dword [eax - 0xc], edi
je 0x104ba09
mov dword [ebp - 0x3c], edi
push 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.01034aa7
push 0x1015a48
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.010367c3
mov ecx, dword [ebp - 0x40]
cmp eax, edi
sete bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.010303ce
test bl, bl
je 0x104b86c
push 4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.01038ff4
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.01031394
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.010303ce
push 0xc
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x5c]
call fcn.01034aa7
mov eax, dword [eax]
push 0x1015a2c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [ebp - 0x48]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.010303ce
test bl, bl
je 0x104b93e
push 0x1068adc
lea ecx, [ebp - 0x20]
call fcn.010309e3
push 0x1015a14
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0104b3b1
cmp eax, edi
jne 0x104b8d8
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.010303ce
push edi
jmp 0x104b9ff
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.0103145e
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.010311ee
push 0xc
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.01038ff4
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 6
call fcn.0103db26
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.01031394
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.010303ce
push edi
push edi
push edi
push edi
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, edi
jne 0x104b976
push dword [ebp - 0x60]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x1002678
push 0x10159e4
push 0x4000000
call fcn.0104a7da
add esp, 0x10
jmp 0x104b8d2
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x3c]
call fcn.01033f0f
mov ebx, dword [ebp - 0x3c]
cmp ebx, edi
jne 0x104b9b4
push 0x10110a0
mov eax, 0x8007000e
push 0x10159c4
push eax
mov dword [ebp - 0x14], eax
call fcn.0104a504
add esp, 0xc
push edi
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x104b77a
push edi
push ebx
push esi
push edi
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, edi
jne 0x104b9e9
push dword [ebp - 0x60]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x1002678
push 0x10159e4
push 0x4000000
call fcn.0104a7da
add esp, 0x10
jmp 0x104b9fe
push ebx
lea ecx, [ebp - 0x5c]
call fcn.010313eb
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x60]
push eax
call fcn.0104b4d6
push ebx
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x60]
call fcn.0104b313
inc dword [ebp - 0x28]
jmp 0x104b69f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, edi
jle 0x104ba2f
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x104ba3d
mov dword [ebp - 0x14], 0x80004005
push 0x10159a0
push 0x1015980
call esi
jmp 0x104b605