Function at 0x4ce710
Capabilities:
Persist via windows service
Query service status
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push str._lanch_driver_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
mov cl, byte [0x5299b8]
xor eax, eax
add esp, 8
push 2
xor ebx, ebx
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [str.smrf]
push ebx
push ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], cl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x354], edi
cmp edi, ebx
je 0x4cea0c
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x340], ebx
push esi
push 0xf01ff
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x34c], esi
cmp esi, ebx
je 0x4ce9e6
cmp dword [ebp - 0x350], ebx
jne 0x4ce9b1
push 0x103
lea eax, [ebp - 0x31f]
push ebx
push eax
call fcn.004e7d90
mov ecx, 8
mov esi, str.systemcurrentcontrolset_services_
lea edi, [ebp - 0x320]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, str.Smrf
add esp, 0xc
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4ce7e4
lea edi, [ebp - 0x320]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4ce7f6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x348]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x320]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4ce998
push 0x103
lea ecx, [ebp - 0x21b]
push ebx
push ecx
mov dword [ebp - 0x344], ebx
mov byte [ebp - 0x21c], bl
call fcn.004e7d90
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.004e50f0
push 0x103
lea ecx, [ebp - 0x117]
push ebx
mov byte [eax], bl
push ecx
mov byte [ebp - 0x118], bl
call fcn.004e7d90
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x118]
push str._sPresto.talee
push eax
call fcn.004e5066
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x20
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
lea ecx, [ebp - 0x118]
push ecx
call esi
cmp eax, 0xffffffff
je 0x4ce8e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x344], 3
mov eax, dword [ebp - 0x348]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x344]
push edx
push 4
push ebx
push str.Start
push eax
call edi
mov ecx, dword [ebp - 0x34c]
push ebx
push ebx
push ecx
mov dword [ebp - 0x350], 1
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x104
lea edx, [ebp - 0x118]
push ebx
push edx
call fcn.004e7d90
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x118]
push str._sPresto.nonet
push ecx
call fcn.004e5066
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
lea edx, [ebp - 0x118]
push edx
call esi
cmp eax, 0xffffffff
je 0x4ce974
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x344], ebx
jmp 0x4ce97e
mov dword [ebp - 0x344], 1
mov ecx, dword [ebp - 0x348]
push 4
lea eax, [ebp - 0x344]
push eax
push 4
push ebx
push str.NetDevice
push ecx
call edi
mov edx, dword [ebp - 0x348]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x354]
mov esi, dword [ebp - 0x34c]
lea eax, [ebp - 0x33c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4ce9cc
cmp dword [ebp - 0x338], 4
je 0x4cea04
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x340]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4ce9f7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x340]
cmp dword [ebp - 0x340], 0x3c
jl 0x4ce787
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret