Function at 0x140007cf0
Capabilities:
Create service
Delete registry value
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov edi, r8d
mov r12d, edx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x14000818f
mov rcx, rsi
call fcn.140009fe0
xor r13d, r13d
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x70], r13d
mov qword [rbp - 0x68], r13
mov r9d, 0x20006
lea r8, str.AppID
mov rdx, 0xffffffff80000000
lea rcx, [rbp - 0x78]
call fcn.140006f30
mov ebx, eax
mov r15, qword [rbp - 0x78]
test eax, eax
jne 0x140008177
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x80], r13
mov r9d, 0x2001f
lea r8, str.vraymayaspawner2023.exe
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.140006f30
test eax, eax
je 0x140007ddd
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, str.vraymayaspawner2023.exe
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.1400055a0
mov ebx, eax
test eax, eax
jne 0x140007ea7
lea rdx, str.AppID
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [rsp + 0x28], 0x27
lea r14, str.41293034_abc2_45f6_b838_187d8ca43017
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.AppID
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 0x27
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400188a2]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test rbx, rbx
je 0x140007e58
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov r9d, 0x2001f
mov r8, r14
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.140006f30
test eax, eax
je 0x140007eb1
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8, r14
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.1400055a0
mov ebx, eax
test eax, eax
je 0x140007eb1
mov r14, qword [rsp + 0x70]
jmp 0x14000815f
lea rdx, str.LocalService
mov r14, qword [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x140008085
mov dword [rsp + 0x28], 0x15
lea rbx, str.VRayMayaSpawner_2023
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400188a2]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 0x15
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 9
lea rax, str._Service
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ServiceParameters
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rsi
call fcn.1400064e0
test eax, eax
jne 0x140008085
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140008085
mov r8d, 0x104
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, str.username
lea rcx, [0x140023a60]
call fcn.14000ff80
mov rbx, rax
lea rdx, str.password
lea rcx, [0x140023a60]
call fcn.14000ff80
lea rdx, [rsi + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rbx
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x140008073
mov qword [rbp + 0x108], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rcx, [rbp + 0x108]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, qword [rbp + 0x108]
lea rdx, str.Couldnt_create_service:__s
lea rcx, [0x140029b38]
call fcn.14000fbe0
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000807c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x1400080ce
cmp qword [rdi], 0
je 0x1400080ce
mov ecx, 1
call qword [rdi + 8]
mov ebx, eax
test eax, eax
js 0x140008158
call qword [rdi + 0x38]
mov rdx, rax
mov r8d, 1
mov rcx, qword [rdi]
call fcn.140004a70
mov ebx, eax
test eax, eax
js 0x140008158
add rdi, 0x48
cmp qword [rdi], 0
jne 0x140008094
mov ebx, r13d
mov rsi, qword [0x140020680]
mov rax, qword [0x140020688]
cmp rsi, rax
jae 0x140008128
mov rdi, qword [rsi]
test rdi, rdi
je 0x14000811b
mov ecx, 1
call qword [rdi + 8]
mov ebx, eax
test eax, eax
js 0x14000813d
call qword [rdi + 0x30]
mov rdx, rax
mov r8d, 1
mov rcx, qword [rdi]
call fcn.140004a70
mov ebx, eax
test eax, eax
js 0x14000813d
mov rax, qword [0x140020688]
add rsi, 8
cmp rsi, rax
jb 0x1400080e4
test ebx, ebx
js 0x140008158
test r12d, r12d
je 0x14000813d
xor edx, edx
mov rcx, qword [0x140020678]
call fcn.140005090
mov ebx, eax
test ebx, ebx
js 0x140008158
mov rax, qword [0x140020650]
test rax, rax
je 0x140008158
mov rcx, qword [0x14002ada8]
call rax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
test r14, r14
je 0x140008172
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
test r15, r15
je 0x140008189
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x70], r13d
mov eax, ebx
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret