Function at 0x41d320
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c268
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
or ebx, 0xffffffff
push 0xf003f
push 0
push 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x41d36c
push eax
call edi
push 0xf003f
push 0
push 0
call esi
test eax, eax
je 0x41d37e
push eax
call edi
push 0xf003f
push 0
push 0
call esi
test eax, eax
je 0x41d390
push eax
call edi
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], vtable.cafx::tstring_ex_wchar_t__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [ebp - 4], 1
mov esi, 0x5bdd4c
cmp dword [0x5bdd60], 8
cmovae esi, dword [0x5bdd4c]
call fcn.004d3530
test eax, eax
mov edx, str.Driverspdv.sys
mov ecx, str.Driverspdv64.sys
lea eax, [ebp - 0x2c]
cmove ecx, edx
push ecx
push esi
push str._s_s
push eax
call fcn.00401a00
add esp, 0x10
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004c15d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmovae eax, dword [ebp - 0x28]
push 2
push 0
push 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 0
call esi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x41d558
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c]
push 1
push 2
push 1
push 0xf01ff
push 0x56ce78
push 0x56ce78
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x41d48e
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], str.Privacy_Drive_Encryption_Engine_Driver
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push dword [ebp - 0x38]
call edi
mov dword [ebp - 0x30], 1
push dword [ebp - 0x34]
call edi
cmp dword [ebp - 0x30], 0
je 0x41d558
cmp dword [0x5bdd60], 8
mov eax, 0x5bdd4c
cmovae eax, dword [0x5bdd4c]
push eax
lea eax, [ebp - 0x2c]
push str._spdsvc.exe
push eax
call fcn.00401a00
add esp, 0xc
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004c15d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 2
cmovae eax, dword [ebp - 0x28]
push 0
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
call esi
mov dword [ebp - 0x38], eax
test eax, eax
je 0x41d558
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x34]
push 1
push 2
push 0x110
push 0xf01ff
push str.PrivacyDrive_Service
push str.PDSvc
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x41d549
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.This_service_is_used_by_Privacy_Drive_to_perform_additional_operations._If_this_service_is_stopped_or_disabled___it_will_cause_abnormal_program_termination_and_fail_to_start.
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
call edi
mov dword [ebp - 0x30], 1
push dword [ebp - 0x38]
call edi
cmp dword [ebp - 0x30], 0
je 0x41d558
xor ebx, ebx
jmp 0x41d56a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x41d56a
mov ebx, 2
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.cafx::tstring_ex_wchar_t__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x41d590
push dword [ebp - 0x28]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, ebx
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret