Function at 0x1000cf70
Capabilities:
Enumerate services
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1480
call fcn.10011320
push ebx
push esi
push edi
mov dword [ebp - 0x1480], ecx
push eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
je 0x1000cf98
sub al, 0x2d
pop eax
pop eax
call fcn.10009e80
push 0xe00f003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000cfc8
mov eax, dword [ebp - 0x1480]
mov dword [eax + 4], 0x1b5a
jmp 0x1000d1ab
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1468], 0
mov dword [ebp - 0x10], 0
push 0xffff
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1470], eax
mov ecx, dword [ebp - 0x1470]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1468]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0xfffe
mov edx, dword [ebp - 8]
push edx
push 3
push 0x30
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
and eax, eax
jne 0x1000d05a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1474], ecx
mov edx, dword [ebp - 0x1474]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x1480]
mov dword [ecx + 4], 0x1b5a
jmp 0x1000d1ab
mov ecx, dword [ebp - 0x1480]
call fcn.1000d9d0
mov dword [ebp - 0x1464], eax
cmp dword [ebp - 0x1464], 0xffffffff
jne 0x1000d09e
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1478], edx
mov eax, dword [ebp - 0x1478]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x1480]
mov dword [ecx + 4], 0x1b69
jmp 0x1000d1ab
mov dword [ebp - 0x1460], 0
mov ecx, 0x511
xor eax, eax
lea edi, [ebp - 0x145c]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0
jmp 0x1000d0cf
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1468]
jae 0x1000d17c
mov ecx, 0x512
xor eax, eax
lea edi, [ebp - 0x1460]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x24
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx]
push ecx
lea edx, [ebp - 0x1450]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x24
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax + 4]
push edx
lea eax, [ebp - 0x1248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x24
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0x1040], eax
lea ecx, [ebp - 0x1460]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1480]
call fcn.1000d1c0
mov dword [ebp - 0x146c], 0
push 0
lea eax, [ebp - 0x146c]
push eax
push 0x1448
lea ecx, [ebp - 0x1460]
push ecx
mov edx, dword [ebp - 0x1464]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000d0c6
mov eax, dword [ebp - 0x1464]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x147c], ecx
mov edx, dword [ebp - 0x147c]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret