Function at 0x10006f90
Capabilities:
Enumerate services
Query service configuration
Write file on windows

Disassembly:
sub esp, 0x450
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebp]
mov dword [esp + 0x28], ebp
cmp eax, edi
jne 0x10006fb6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
lea ecx, [esp + 0x18]
push edi
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
push edx
push ecx
push edi
push edi
push 3
push 0x30
push edi
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x10006ff7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x30], ebx
jne 0x10007017
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [ebp]
push ecx
push edx
push ebx
push 3
push 0x30
push edi
push eax
call esi
test eax, eax
jne 0x10007050
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
push 0x104
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
cmp ebp, edi
mov dword [esp + 0x2c], ebp
jne 0x10007075
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
mov ecx, 0x41
xor eax, eax
mov edi, ebp
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], al
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x10096da8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str._MC_5
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
push eax
and ecx, 3
push 1
lea eax, [esp + 0x54]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10002dc0
mov esi, eax
add esp, 0x20
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
jne 0x10007126
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
test eax, eax
jbe 0x10007351
lea ebp, [ebx + 4]
mov ecx, 0xc8
xor eax, eax
lea edi, [esp + 0x140]
push connect
rep stosd dword es:[edi], eax
mov esi, dword [ebp]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x248]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x144]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x454], ecx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x450], edx
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x458], eax
mov ecx, dword [ebp - 4]
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
je 0x100072e8
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007260
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10007260
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push esi
call edi
test eax, eax
jne 0x10007227
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x348]
rep stosd dword es:[edi], eax
jmp 0x10007260
mov esi, dword [ebx + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x348]
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [esp + 0x45c], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push esi
mov dword [esp + 0x24], 0
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100072e8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x100072ec
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push 1
push esi
call edi
test eax, eax
jne 0x100072b4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100072ec
mov edi, dword [ebx]
test edi, edi
je 0x100072d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov dword [esp + 0x460], ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100072ec
push esi
mov dword [esp + 0x460], 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100072ec
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x34]
push 0
push ecx
lea edx, [esp + 0x148]
push 0x320
push edx
push edi
call esi
mov eax, dword [esp + 0x45c]
test eax, eax
je 0x1000732d
mov edx, dword [ebx]
lea ecx, [esp + 0x34]
push 0
push ecx
push eax
push edx
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
add ebp, 0x2c
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x1000713d
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x450
ret