Function at 0x1400db090
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6f0
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov edi, ecx
xor ecx, ecx
mov r12, r8
mov r13, rdx
call fcn.1400da8c0
lea rcx, str.install_service..._n
mov ebp, 0x1e
call fcn.1400b1c70
lea r8d, [rbp - 0x1c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1400db359
xor r14d, r14d
nop
nop
lea rcx, [rsp + 0x2b0]
call fcn.1401617b0
lea rcx, [rsp + 0x70]
mov ebx, r14d
call fcn.1401617b0
lea rcx, [rsp + 0x190]
call fcn.1401617b0
lea rcx, [rsp + 0x190]
xor edx, edx
call fcn.1400c8740
mov r8, qword [rsp + 0x198]
lea rdx, str.__s___svc
lea rcx, [rsp + 0x70]
call fcn.140162e20
test r13, r13
je 0x1400db168
lea rdx, str.__svc_pipe_name___s_
lea rcx, [rsp + 0x70]
mov r8, r13
call fcn.140163070
test r12, r12
je 0x1400db181
lea rdx, str.__svc_security_descriptor___s_
lea rcx, [rsp + 0x70]
mov r8, r12
call fcn.140163070
call fcn.1400bd380
test rax, rax
je 0x1400db1a4
call fcn.1400bd380
lea rdx, str.__instance___s_
lea rcx, [rsp + 0x70]
mov r8, rax
call fcn.140163070
lea rcx, [rsp + 0x190]
call fcn.140001150
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x2b0]
call fcn.140167a80
lea rcx, [rsp + 0x70]
call fcn.140001150
lea rcx, [rsp + 0x70]
call fcn.1401617b0
lea rdx, [0x14019e570]
lea rcx, [rsp + 0x70]
call fcn.1401624e0
call fcn.1400bd380
test rax, rax
je 0x1400db20b
call fcn.1400bd380
lea rdx, str.___s_
lea rcx, [rsp + 0x70]
mov r8, rax
call fcn.140163070
mov r8, qword [rsp + 0x78]
cmp byte [r8], bl
je 0x1400db233
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400db221
cmp al, 0x2f
jne 0x1400db225
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], bl
jne 0x1400db215
mov r8, qword [rsp + 0x78]
lea rcx, [rsp + 0x4d0]
mov edx, 0x101
call fcn.140166980
lea rcx, [rsp + 0x70]
call fcn.140001150
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x4d0]
lea rdx, [rsp + 0x4d0]
mov r9d, 2
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x1400db2c0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, edi
call fcn.1400daba0
jmp 0x1400db314
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1400db2d6
mov ecx, edi
call fcn.1400daba0
jmp 0x1400db314
test ebp, ebp
je 0x1400db2ef
cmp eax, 0x430
jne 0x1400db2ef
lea ecx, [rax - 0x48]
sub ebp, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400db319
test edi, edi
je 0x1400db314
mov r8, qword [0x1401e5d78]
mov edx, reloc.WS2_32.dll_recv
xor ecx, ecx
mov r9, qword [r8 + 0x2080]
mov r8, qword [r8]
mov dword [rsp + 0x20], eax
call fcn.1400c4aa0
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rsp + 0x2b0]
call fcn.140001150
test ebx, ebx
jne 0x1400db384
lea rcx, str.install_service..._n
call fcn.1400b1c70
lea r8d, [rbx + 2]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
jne 0x1400db100
test edi, edi
je 0x1400db384
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1401e5d78]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x2088]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400c4aa0
lea rcx, str.InstallService
mov edx, 1
call fcn.1401322c0
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1401931f0
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret