Function at 0x1400c8a80
Capabilities:
Create service
Delete service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c8]
sub rsp, 0x3c8
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r13, r9
mov rsi, r8
mov qword [rbp - 0x70], r8
mov r14, rdx
mov qword [rbp - 0x68], rdx
mov rbx, rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 8], rcx
mov rdi, qword [rbp + 0x340]
xor r12d, r12d
cmp qword [rcx], r12
jne 0x1400c8b50
mov ecx, 0x98
call fcn.14014f518
mov qword [rbp + 0xf0], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rcx
movdqu xmmword [rbp - 0x58], xmm0
movdqu xmmword [rbp - 0x48], xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.1400aa1d0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400cbba0
cmp qword [r14 + 0x10], 0
je 0x1400c94da
cmp qword [rsi + 0x10], 0
je 0x1400c94da
cmp qword [r13 + 0x10], 0
je 0x1400c94da
xor r15b, r15b
mov esi, r12d
xor r12b, r12b
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x1400c8c01
mov rdx, r13
cmp qword [r13 + 0x18], 7
jbe 0x1400c8ba0
mov rdx, qword [r13]
mov r8d, 0xf01ff
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400c8bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400c8bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x78]
jmp 0x1400c8c09
mov r15b, 1
test rbx, rbx
je 0x1400c8bf1
movzx r12d, r15b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x78]
jmp 0x1400c8c09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rdi, rdi
je 0x1400c8c10
mov dword [rdi], esi
test r15b, r15b
je 0x1400c8c32
test r12b, r12b
je 0x1400c8c32
test rdi, rdi
je 0x1400c8c25
mov dword [rdi], 0x431
mov rcx, rbx
call fcn.1400106d0
jmp 0x1400c951a
lea rcx, [rbp + 0x20]
call fcn.1400c8990
nop
mov rsi, qword [rbp - 0x70]
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 4
jb 0x1400c953f
mov r9, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400c8c68
mov r9, qword [rsi]
mov qword [rsp + 0x30], 4
lea rax, str..inf
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x28]
call fcn.14001d800
nop
lea r8, [rbp - 0x28]
mov r14, qword [rbp - 0x68]
mov rdx, r14
lea rcx, [rbp + 0x110]
call fcn.140089450
nop
mov r8, qword [rbp - 0x10]
cmp r8, 7
jbe 0x1400c8cbb
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.140021ce0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf8], xmm1
xor r15d, r15d
mov qword [rbp + 0x108], r15
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0xf8]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x110]
call fcn.1400ca7f0
test al, al
jne 0x1400c8d52
lea rcx, [rbp + 0xf8]
call fcn.1400cb7d0
nop
mov r8, qword [rbp + 0x128]
cmp r8, 7
jbe 0x1400c8d20
mov rdx, qword [rbp + 0x110]
lea rcx, [rbp + 0x110]
call fcn.140021ce0
mov qword [rbp + 0x120], r15
mov eax, 7
mov qword [rbp + 0x128], rax
mov word [rbp + 0x110], r15w
lea rcx, [rbp + 0x20]
call fcn.1400c8a30
nop
mov rcx, rbx
call fcn.1400106d0
jmp 0x1400c951a
cmp qword [rbp + 0xd8], 0
je 0x1400c8f47
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
mov eax, 7
mov qword [rbp + 0x148], rax
mov word [rbp + 0x130], r15w
movups xmmword [rbp + 0x150], xmm0
mov qword [rbp + 0x160], r15
mov qword [rbp + 0x168], rax
mov word [rbp + 0x150], r15w
movups xmmword [rbp + 0x170], xmm0
mov qword [rbp + 0x180], r15
mov qword [rbp + 0x188], rax
mov word [rbp + 0x170], r15w
movups xmmword [rbp + 0x198], xmm0
mov qword [rbp + 0x1a8], r15
mov qword [rbp + 0x1b0], rax
mov word [rbp + 0x198], r15w
lea rbx, [rbp + 0x130]
mov qword [rbp + 0x140], 3
lea r8d, [rax - 1]
lea rdx, [0x14050b198]
mov rcx, rbx
call fcn.1403ebbf0
mov word [rbx + 6], r15w
mov rax, qword [rbp + 0x188]
cmp rax, 0xb
jb 0x1400c8e46
lea rbx, [rbp + 0x170]
cmp rax, 7
cmova rbx, qword [rbp + 0x170]
mov qword [rbp + 0x180], 0xb
mov r8d, 0x16
lea rdx, str.Description
mov rcx, rbx
call fcn.1403ebbf0
mov word [rbx + 0x16], r15w
jmp 0x1400c8e5e
lea r9, str.Description
mov edx, 0xb
lea rcx, [rbp + 0x170]
call fcn.140023ce0
mov dword [rbp + 0x190], 1
lea rdx, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 7
cmova rdx, qword [rbp + 0xc8]
mov r8, qword [rbp + 0xd8]
lea rcx, [rbp + 0x198]
call fcn.140023e50
mov rbx, qword [rbp + 0x100]
cmp rbx, qword [rbp + 0x108]
je 0x1400c8f00
mov qword [rsp + 0x70], rbx
lea rdx, [rbp + 0x130]
mov rcx, rbx
call fcn.1400223f0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x150]
call fcn.1400223f0
nop
lea rcx, [rbx + 0x40]
lea rdx, [rbp + 0x170]
call fcn.1400223f0
nop
mov eax, dword [rbp + 0x190]
mov dword [rbx + 0x60], eax
lea rcx, [rbx + 0x68]
lea rdx, [rbp + 0x198]
call fcn.1400223f0
nop
add qword [rbp + 0x100], 0x88
jmp 0x1400c8f17
lea r8, [rbp + 0x130]
mov rdx, rbx
lea rcx, [rbp + 0xf8]
call fcn.1400cbd60
nop
lea rcx, [rbp + 0x198]
call fcn.140021d30
lea rcx, [rbp + 0x170]
call fcn.140021d30
lea rcx, [rbp + 0x150]
call fcn.140021d30
lea rcx, [rbp + 0x130]
call fcn.140021d30
lea r8, str..sys
mov rdx, rsi
lea rcx, [rbp + 0x290]
call fcn.1400262e0
nop
lea r8, [rbp + 0x290]
mov rdx, r14
lea rcx, [rbp + 0x270]
call fcn.140089450
nop
lea rcx, [rbp + 0x30]
call fcn.140087ee0
test al, al
je 0x1400c8f90
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.140088500
lea rcx, [rbp + 0x30]
call fcn.140087ee0
test al, al
jne 0x1400c9490
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x270]
call fcn.140088050
test al, al
je 0x1400c9490
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
je 0x1400c9483
mov dword [rbp + 0xf0], r15d
mov rcx, qword [rbp + 0x78]
cmp rcx, qword [rbp + 0x70]
mov r8, r15
cmovne r8, qword [rbp + 0x70]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
cmove rdx, r15
je 0x1400c9016
lea rax, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rax, qword [rbp + 0x50]
jmp 0x1400c9019
mov rax, r15
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rcx, qword [rbp + 0x30]
lea r10, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 7
cmova r10, qword [rbp + 0xa8]
mov r11, r13
cmp qword [r13 + 0x18], 7
jbe 0x1400c904c
mov r11, qword [r13]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov eax, dword [rbp + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x20], eax
mov r9d, 0xf01ff
mov r8, r10
mov rdx, r11
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r15, rax
test rax, rax
je 0x1400c92ef
mov r14, qword [rbp + 0x100]
mov rsi, qword [rbp + 0xf8]
cmp rsi, r14
je 0x1400c92e4
add rsi, 0x40
nop dword [rax + rax]
lea rdx, [rsi - 0x40]
lea rcx, [rbp + 0x1c0]
call fcn.1400223f0
nop
lea rdx, [rsi - 0x20]
lea rcx, [rbp + 0x1e0]
call fcn.1400223f0
nop
mov rdx, rsi
lea rcx, [rbp + 0x200]
call fcn.1400223f0
nop
mov eax, dword [rsi + 0x20]
mov dword [rbp + 0x220], eax
lea rdx, [rsi + 0x28]
lea rcx, [rbp + 0x228]
call fcn.1400223f0
nop
lea rcx, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 7
cmova rcx, qword [rbp + 0x1c0]
cmp qword [rbp + 0x1d0], 3
jne 0x1400c9245
mov edx, 3
lea r8, [0x14050b198]
sub r8, rcx
movzx eax, word [rcx]
cmp ax, word [r8 + rcx]
jne 0x1400c9245
add rcx, 2
sub rdx, 1
jne 0x1400c9140
mov r8, r13
lea rdx, [0x14059d7f0]
lea rcx, [rbp + 0x250]
call fcn.140089450
nop
cmp qword [rbp + 0x1f0], 0
je 0x1400c91a8
lea r8, [rbp + 0x1e0]
lea rdx, [rbp + 0x250]
lea rcx, [rbp]
call fcn.140089450
mov rdx, rax
lea rcx, [rbp + 0x250]
call fcn.14001f2e0
lea rcx, [rbp]
call fcn.140021d30
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov rdx, qword [rsp + 0x78]
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400c91c2
lock inc dword [rax + 8]
mov rcx, qword [rdx]
mov qword [rbp - 0x80], rcx
mov rax, qword [rdx + 8]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
test rcx, rcx
je 0x1400c9294
mov rax, qword [rcx]
mov r10, qword [rax + 0xe0]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0
mov eax, dword [rbp + 0x220]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x228]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x200]
lea r8, [rbp + 0x250]
mov rdx, 0xffffffff80000002
call r10
movzx ebx, al
lea rcx, [rbp - 0x80]
call fcn.1400106d0
test bl, bl
je 0x1400c929e
lea rcx, [rbp + 0x250]
call fcn.140021d30
nop
lea rcx, [rbp + 0x228]
call fcn.140021d30
lea rcx, [rbp + 0x200]
call fcn.140021d30
lea rcx, [rbp + 0x1e0]
call fcn.140021d30
lea rcx, [rbp + 0x1c0]
call fcn.140021d30
add rsi, 0x88
lea rax, [rsi - 0x40]
cmp rax, r14
jne 0x1400c90c0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400c92fc
lea rcx, [rbp - 0x80]
call fcn.1400106d0
nop
lea rcx, [rbp + 0x250]
call fcn.140021d30
nop
lea rcx, [rbp + 0x228]
call fcn.140021d30
lea rcx, [rbp + 0x200]
call fcn.140021d30
lea rcx, [rbp + 0x1e0]
call fcn.140021d30
lea rcx, [rbp + 0x1c0]
call fcn.140021d30
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400c92fc
test rdi, rdi
je 0x1400c92fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x64
mov dword [rbp + 0xf0], ebx
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r14b, r14b
xor esi, esi
xor r12b, r12b
cmp qword [r13 + 0x10], rsi
jne 0x1400c933d
test rdi, rdi
je 0x1400c93d5
mov dword [rdi], 0x57
jmp 0x1400c93d5
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x1400c93c6
mov rdx, r13
cmp qword [r13 + 0x18], 7
jbe 0x1400c9363
mov rdx, qword [r13]
mov r8d, 0xf01ff
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400c93a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400c93a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rbp + 0xf0]
jmp 0x1400c93ce
mov r14b, 1
test rbx, rbx
je 0x1400c93b5
movzx r12d, r14b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rbp + 0xf0]
jmp 0x1400c93ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rdi, rdi
je 0x1400c93d5
mov dword [rdi], esi
add ebx, 0xffffffff
mov dword [rbp + 0xf0], ebx
je 0x1400c93ee
test r14b, r14b
je 0x1400c940c
test r12b, r12b
je 0x1400c9310
test r14b, r14b
je 0x1400c940c
test r12b, r12b
jne 0x1400c940c
test rdi, rdi
je 0x1400c9490
mov dword [rdi], 0x4db
jmp 0x1400c9490
mov r9, rdi
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
call fcn.1400ca440
mov rcx, r13
call fcn.1400c99f0
test al, al
je 0x1400c9434
mov r9, rdi
mov rcx, r13
call fcn.1400c9550
nop
lea rcx, [rbp + 0x270]
call fcn.140021d30
nop
lea rcx, [rbp + 0x290]
call fcn.140021d30
nop
lea rcx, [rbp + 0xf8]
call fcn.1400cb7d0
nop
lea rcx, [rbp + 0x110]
call fcn.140021d30
nop
lea rcx, [rbp + 0x20]
call fcn.1400c8a30
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400106d0
mov al, 1
jmp 0x1400c951c
test rdi, rdi
je 0x1400c9490
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea rcx, [rbp + 0x270]
call fcn.140021d30
nop
lea rcx, [rbp + 0x290]
call fcn.140021d30
nop
lea rcx, [rbp + 0xf8]
call fcn.1400cb7d0
nop
lea rcx, [rbp + 0x110]
call fcn.140021d30
nop
lea rcx, [rbp + 0x20]
call fcn.1400c8a30
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400106d0
jmp 0x1400c951a
test rdi, rdi
je 0x1400c94e5
mov dword [rdi], 0x57
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400c951a
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400c951a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400c951a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
xor al, al
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14014f4f0
add rsp, 0x3c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14001cc60
nop
int3