Function at 0x4023a0
Capabilities:
Create service
Delete service
Get common file path
Persist via windows service
Print debug messages
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x425a8c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00401230
cmp eax, 4
jl 0x402405
call fcn.00401360
cmp eax, 1
jne 0x402405
push 0x41e66c
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402405
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4023fe
lea ecx, [ebp - 0x210]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x80
lea edx, [ebp - 0x84]
push edx
call ebx
lea eax, [ebp - 0x84]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402420
mov ecx, dword [str.DriversDgiVecp.sys]
mov edx, dword [0x41e638]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [eax], ecx
mov ecx, dword [0x41e63c]
mov dword [eax + 4], edx
mov edx, dword [0x41e640]
mov dword [eax + 8], ecx
mov ecx, dword [0x41e644]
mov dword [eax + 0xc], edx
mov dl, byte [0x41e648]
mov dword [eax + 0x10], ecx
push str.DgiVecp_install_n
mov byte [eax + 0x14], dl
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402486
push str.MDM_::_OpenSCManager_Error__n
call esi
push ecx
lea eax, [ebp - 0x84]
mov ecx, esp
mov dword [ebp - 0x210], esp
push eax
call fcn.004019b0
call fcn.00401740
add esp, 4
test al, al
jne 0x4024f0
push str.Cant_find_dgivecp.sys_in_drivers_folder
call esi
push 0xf01ff
push str.DgiVecp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.SYSTEMCurrentControlSetServicesDgiVecp
push 0x80000002
call fcn.00401110
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca0e
mov esp, ebp
pop ebp
ret
push 0xf01ff
push str.DgiVecp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402597
push 0x80
lea ecx, [ebp - 0x104]
push ecx
call ebx
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402520
mov edx, dword [str.DriversDgiVecp.sys]
mov ecx, dword [0x41e638]
push 0
push 0
mov dword [eax], edx
mov edx, dword [0x41e63c]
push 0
mov dword [eax + 4], ecx
mov ecx, dword [0x41e640]
push 0
mov dword [eax + 8], edx
mov edx, dword [0x41e644]
push 0
mov dword [eax + 0xc], ecx
mov cl, byte [0x41e648]
mov dword [eax + 0x10], edx
lea edx, [ebp - 0x104]
push edx
push 1
push 2
push 1
push 0xf01ff
push str.DgiVecp
push str.DgiVecp
push edi
mov byte [eax + 0x14], cl
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x402597
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x22c]
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [ebp - 0x228], 4
je 0x402617
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4025e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x204]
push str.DgiVecp_driver_could_not_start_Error___x_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
push 0x64
call ebx
lea eax, [ebp - 0x22c]
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402611
cmp dword [ebp - 0x228], 4
je 0x402617
inc edi
cmp edi, 0xa
jl 0x4025f0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x20c]
push ecx
push str.SystemCurrentControlSetServicesDgivEcp
push 0x80000002
mov dword [ebp - 0x208], 0x32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 0x20c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x208]
push edx
push 4
push 0
push str.TurnAroundDelay
push eax
call esi
mov edx, dword [ebp - 0x20c]
push 4
lea ecx, [ebp - 0x208]
push ecx
push 4
push 0
push str.PreTurnAroundDelay
push edx
call esi
mov ecx, dword [ebp - 0x20c]
push 4
lea eax, [ebp - 0x208]
push eax
push 4
push 0
push str.MinimumStallTime
push ecx
mov dword [ebp - 0x208], 0x1f40
call esi
mov eax, dword [ebp - 0x20c]
push 4
lea edx, [ebp - 0x208]
push edx
push 4
push 0
push str.CurrentInUse
push eax
mov dword [ebp - 0x208], 1
call esi
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca0e
mov esp, ebp
pop ebp
ret