Function at 0x300031a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x3c], 0x30
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x300031d4
xor eax, eax
jmp 0x30003548
mov dword [ebp - 0x2c], 0
jmp 0x300031e6
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jae 0x30003543
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
push 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + edx*4 - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
cmp dword [ebp - 0x24], 0
ja 0x3000323f
xor eax, eax
jmp 0x30003548
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
push 0x40
push 0x1000
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x30003268
xor eax, eax
jmp 0x30003548
mov ecx, dword [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.30007100
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + edx*4 - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x300032d8
push 0x8000
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x30003548
mov dword [ebp - 0xc], 0
jmp 0x300032ea
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x30]
jae 0x3000336b
mov dword [ebp - 0x18], 0
jmp 0x30003304
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
imul eax, dword [ebp - 0xc], 0x24
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax]
push edx
call fcn.3000a447
add esp, 4
cmp dword [ebp - 0x18], eax
jae 0x30003366
imul eax, dword [ebp - 0xc], 0x24
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax]
mov eax, dword [ebp - 0x18]
mov cx, word [edx + eax*2]
mov word [ebp - 8], cx
imul edx, dword [ebp - 0xc], 0x24
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx]
mov edx, dword [ebp - 0x18]
movzx eax, word [ecx + edx*2]
push eax
call fcn.30009f13
add esp, 4
mov word [ebp - 8], ax
imul ecx, dword [ebp - 0xc], 0x24
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
mov ecx, dword [ebp - 0x18]
mov dx, word [ebp - 8]
mov word [eax + ecx*2], dx
jmp 0x300032fb
jmp 0x300032e1
mov dword [ebp - 0x10], 0
jmp 0x3000337d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jge 0x300033fe
mov dword [ebp - 0x1c], 0
jmp 0x30003397
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
imul eax, dword [ebp - 0x10], 0x208
add eax, dword [ebp + 8]
push eax
call fcn.3000a447
add esp, 4
cmp dword [ebp - 0x1c], eax
jae 0x300033f9
imul ecx, dword [ebp - 0x10], 0x208
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ax, word [ecx + edx*2]
mov word [ebp - 8], ax
imul ecx, dword [ebp - 0x10], 0x208
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx + edx*2]
push eax
call fcn.30009f13
add esp, 4
mov word [ebp - 8], ax
imul ecx, dword [ebp - 0x10], 0x208
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ax, word [ebp - 8]
mov word [ecx + edx*2], ax
jmp 0x3000338e
jmp 0x30003374
mov dword [ebp - 0x20], 0
jmp 0x30003410
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0xc]
jge 0x3000352d
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x14], 0
jmp 0x30003435
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x30]
jae 0x30003528
imul edx, dword [ebp - 0x14], 0x24
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx]
push ecx
call fcn.3000a447
add esp, 4
mov esi, eax
imul edx, dword [ebp - 0x20], 0x208
add edx, dword [ebp + 8]
push edx
call fcn.3000a447
add esp, 4
cmp esi, eax
jb 0x30003523
imul eax, dword [ebp - 0x20], 0x208
add eax, dword [ebp + 8]
push eax
imul ecx, dword [ebp - 0x14], 0x24
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
push eax
call fcn.300070a0
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x300034ba
imul ecx, dword [ebp - 0x20], 0x208
add ecx, dword [ebp + 8]
push ecx
imul edx, dword [ebp - 0x14], 0x24
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx]
push ecx
call fcn.3000a3e5
add esp, 8
test eax, eax
jne 0x30003523
push str.stop__
lea edx, [ebp - 0x250]
push edx
call fcn.3000a425
add esp, 8
imul eax, dword [ebp - 0x14], 0x24
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.3000a3b4
add esp, 8
push str.___y
lea ecx, [ebp - 0x250]
push ecx
call fcn.3000a3b4
add esp, 8
push 0
push 0
lea edx, [ebp - 0x250]
push edx
push 0x30018990
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30003528
jmp 0x3000342c
jmp 0x30003407
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x300031dd
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret