Function at 0x140034100
Capabilities:
Create process on windows
Get common file path
Manipulate safe mode programs
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x670]
sub rsp, 0x770
mov rax, qword [0x1400e00c0]
xor rax, rsp
mov qword [rbp + 0x660], rax
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], 7
mov word [rbp - 0x20], bx
lea r8d, [rbx + 7]
lea rdx, str.Service
lea rcx, [rbp - 0x20]
call fcn.1400027d0
nop
lea ecx, [rbx + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400343b6
lea rcx, str.SYSTEMCurrentControlSetControlSafeBootMinimalcamsvc
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootNetworkcamsvc
cmp eax, 1
cmove rdx, rcx
mov qword [rbp], rbx
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], 7
mov word [rbp], bx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140034192
lea rcx, [rbp]
call fcn.1400027d0
nop
lea rcx, str.____________In_Safe_Mode__Starting_camsvc______________
call fcn.1400262b0
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003422a
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140034272
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
mov dword [rbp - 0x2c], eax
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.140072740
mov edx, 0x104
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edx, edx
mov r8d, 0x430
lea rcx, [rbp + 0x230]
call fcn.140072740
lea r9, [rbp + 0x20]
lea r8, str.__scmd.exe___C__net_start_camsvc_
mov edx, 0x218
lea rcx, [rbp + 0x230]
call fcn.140041e70
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140034346
lea rcx, str.Couldnt_start_camsvc
call fcn.1400262b0
jmp 0x140034379
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.____________Starting_camsvc_successful______________
call fcn.1400262b0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1400343b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400343b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034418
call fcn.140070654
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400343f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400343ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034412
call fcn.140070654
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.140070140
mov rbx, qword [rsp + 0x780]
add rsp, 0x770
pop rbp
ret
call fcn.14007d0fc
nop
call fcn.14007d0fc
nop
int3