Function at 0x140007cb0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov rax, qword [0x14003a018]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.14000c2a0
xor r9d, r9d
lea r8, [rbp - 0x20]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x140007d14
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140007f4d
mov r8d, 3
mov qword [rsp + 0x348], rdi
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140007f7f
mov r8d, 0x10
mov qword [rsp + 0x300], r15
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140007f18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140007f72
xor r15d, r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x60], r15
mov r9d, 0x60010
mov qword [rsp + 0x58], r15
mov r8, r14
mov qword [rsp + 0x50], r15
mov rdx, rsi
mov qword [rsp + 0x48], r15
mov rcx, rdi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
test rax, rax
je 0x140007f72
lea rax, [rsp + 0x70]
mov dword [rbp - 0x50], r15d
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x48]
mov word [rbp - 0x4c], pe_nt_image_headers64
lea edx, [r15 + 4]
mov dword [rbp - 0x80], 0x201fd
mov rcx, rbx
mov qword [rbp - 0x7c], 2
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], 5
mov qword [rbp - 0x58], r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceObjectSecurity]
test eax, eax
jne 0x140007f18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140007f18
mov edx, dword [rsp + 0x70]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140007f18
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x70]
mov r8, rsi
mov qword [rsp + 0x20], rax
lea edx, [r15 + 4]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceObjectSecurity]
test eax, eax
je 0x140007f0f
lea rax, [rbp - 0x58]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x48], r15d
xor r8d, r8d
mov dword [rsp + 0x40], r15d
mov dl, 1
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140007f0f
lea rax, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x80]
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x38], rax
lea r8d, [r15 + 1]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_BuildSecurityDescriptorW]
test eax, eax
jne 0x140007f05
mov r8, qword [rsp + 0x78]
lea edx, [rax + 4]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140007f69
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140007f69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0x300]
mov rdi, qword [rsp + 0x348]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14000b000
add rsp, 0x308
pop r14
pop rsi
pop rbx
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140007f3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140007f45