Function at 0x14004f090
Capabilities:
Create service
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rbx, rcx
mov rsi, qword [rcx + 0x10]
mov rdi, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14004f0c0
mov rdi, qword [rcx]
call fcn.1400bad70
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rsi
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp + 0x37]
call fcn.1400423e0
nop
lea rcx, [rbp + 0x37]
cmp qword [rbp + 0x4f], 8
cmovae rcx, qword [rbp + 0x37]
mov rax, qword [rbp + 0x47]
lea rdi, [rcx + rax*2]
mov r11, rdi
mov rdx, rdi
call fcn.140042540
cmp rax, rdi
je 0x14004f13b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14004f112
cmp cx, 0x2f
jne 0x14004f120
add rax, 2
jmp 0x14004f0fe
lea rcx, [r11 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x14004f13b
cmp dx, 0x2f
je 0x14004f13b
mov r11, rcx
cmp rax, rcx
jne 0x14004f120
sub rdi, r11
sar rdi, 1
xor esi, esi
mov qword [rbp - 9], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
mov r8, rdi
mov rdx, r11
lea rcx, [rbp - 9]
call fcn.140054150
nop
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 9]
call fcn.140054510
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14004f1b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f1b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f1b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9a6c
movdqa xmm0, xmmword [0x1400d78e0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], si
mov rdx, qword [rbp + 0x4f]
cmp rdx, 8
jb 0x14004f20c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x37]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f207
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f207
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9a6c
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x14004f2bf
cmp qword [rbx + 0x18], 0x10
jb 0x14004f232
mov rbx, qword [rbx]
lea r8, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
jb 0x14004f246
mov rdx, qword [rbp + 0x17]
mov r8, rdx
jmp 0x14004f24a
lea rdx, [rbp + 0x17]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
test rax, rax
jne 0x14004f2fb
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rdx, qword [rbp + 0x17]
lea r8d, [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x14004f2fb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor sil, sil
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x14004f328
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f323
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne sil
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14004f2c2
call fcn.1400b9a6c
movzx eax, sil
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret