Function at 0x1400489f0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400ca1c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rcx
lea r12, section..data
lea r13, [0x1400afc60]
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048a51
test byte [rcx + 0x1c], 1
je 0x140048a51
mov edx, 0x3f
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140045cf4
movups xmm0, xmmword [0x1400b15d0]
movdqu xmmword [rbp - 0x20], xmm0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140048ad2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048ab3
test byte [rcx + 0x1c], 2
je 0x140048ab3
cmp byte [rcx + 0x19], 2
jb 0x140048ab3
lea edx, [rsi + 0x40]
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400438d8
cmp edi, 5
jne 0x140048ac1
movups xmm0, xmmword [0x1400b14b0]
jmp 0x140048ac8
movups xmm0, xmmword [0x1400b14a0]
movdqu xmmword [rbp - 0x20], xmm0
jmp 0x140048c8d
mov r8d, 0x10024
mov rdx, qword [r14 + 0x28]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140048b77
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x424
jne 0x140048b3a
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048b33
test byte [rcx + 0x1c], 2
je 0x140048b33
cmp byte [rcx + 0x19], 4
jb 0x140048b33
lea edx, [rbx + 0x41]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140045cf4
xor edi, edi
jmp 0x140048c7e
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048b66
test byte [rcx + 0x1c], 2
je 0x140048b66
cmp byte [rcx + 0x19], 2
jb 0x140048b66
mov edx, 0x42
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400438d8
movups xmm0, xmmword [0x1400b1490]
movdqu xmmword [rbp - 0x20], xmm0
jmp 0x140048c7e
mov rdx, rbx
mov rcx, rsi
call fcn.14004870c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
nop dword [rax + rax]
test eax, eax
je 0x140048bc5
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048bbe
test byte [rcx + 0x1c], 2
je 0x140048bbe
cmp byte [rcx + 0x19], 4
jb 0x140048bbe
mov edx, 0x43
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140045cf4
xor edi, edi
jmp 0x140048c46
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x430
jne 0x140048c0e
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048c03
test byte [rcx + 0x1c], 2
je 0x140048c03
cmp byte [rcx + 0x19], 4
jb 0x140048c03
mov edx, 0x44
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140045cf4
xor edi, edi
movups xmm0, xmmword [0x1400b15c0]
jmp 0x140048c41
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048c3a
test byte [rcx + 0x1c], 2
je 0x140048c3a
cmp byte [rcx + 0x19], 2
jb 0x140048c3a
mov edx, 0x45
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400438d8
movups xmm0, xmmword [0x1400b1480]
movdqu xmmword [rbp - 0x20], xmm0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ebx, eax
lea rdx, [r14 + 0x28]
lea rcx, [rbp - 0x30]
call fcn.140023dd0
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call fcn.140048e28
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rsi, r14
mov ebx, 0x28
test edi, edi
jne 0x140048cb4
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [r14 + rbx]
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.1400476b4
jmp 0x140048cf5
lea rcx, [rbp - 0x30]
call fcn.1400096e0
nop
mov r8d, edi
lea rdx, [0x1400b1950]
lea rcx, [rbp - 0x30]
call fcn.14001c8e0
and qword [rsp + 0x20], 0
mov r9, qword [rbp - 0x30]
mov r8, qword [rsi + rbx]
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.1400476b4
nop
lea rcx, [rbp - 0x30]
call fcn.1400043f0
mov rcx, qword [section..data]
cmp rcx, r12
je 0x140048d31
test byte [rcx + 0x1c], 1
je 0x140048d31
movzx r9d, byte [rcx + 0x19]
mov eax, edi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x140048d31
mov edx, 0x46
mov r9d, edi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400438d8
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140044080
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret