Function at 0x4ceba0
Capabilities:
Create directory
Create process on windows
Get common file path
Move file
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4febdb
mov eax, dword fs:[0]
push eax
mov eax, 0x2e5c
call fcn.004f18a0
mov eax, dword [0x5322a8]
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
push str._install_pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
xor eax, eax
xor ebx, ebx
push 0x103
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x557]
push ebx
push eax
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x558], bl
call fcn.004e7d90
add esp, 0x14
push 0x103
lea ecx, [ebp - 0x23f]
push ebx
push ecx
mov byte [ebp - 0x240], bl
call fcn.004e7d90
add esp, 0xc
push 0x103
lea edx, [ebp - 0x347]
push ebx
push edx
mov byte [ebp - 0x348], bl
call fcn.004e7d90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x240]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4cec84
mov edx, dword [str.DebugSMRHuService]
mov ecx, dword [0x529b24]
mov dword [eax], edx
mov edx, dword [0x529b28]
mov dword [eax + 4], ecx
mov ecx, dword [0x529b2c]
mov dword [eax + 8], edx
mov edx, dword [0x529b30]
mov dword [eax + 0xc], ecx
mov cl, byte [0x529b34]
mov dword [eax + 0x10], edx
push 0x103
lea edx, [ebp - 0x137]
push ebx
push edx
mov byte [eax + 0x14], cl
mov byte [ebp - 0x138], bl
call fcn.004e7d90
add esp, 0xc
xor eax, eax
mov edi, edi
mov cl, byte [ebp + eax - 0x348]
mov byte [ebp + eax - 0x138], cl
inc eax
cmp cl, bl
jne 0x4cece0
lea eax, [ebp - 0x138]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ced00
mov ecx, dword [str.drivers_]
mov edx, dword [0x5296dc]
mov dword [eax], ecx
mov cx, word [0x5296e0]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, str.Smrf
mov edx, eax
jmp 0x4ced30
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4ced30
lea edi, [ebp - 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4ced40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x138]
or edi, 0xffffffff
add eax, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ced63
mov edx, dword [str..inf]
mov cl, byte [0x52944c]
mov dword [eax], edx
lea edx, [ebp - 0x138]
push edx
mov byte [eax + 4], cl
lea eax, [ebp - 0x558]
push str._c_PnPutil.exe__a__s___c:_tempPnPadd.tmp
push eax
call fcn.004e5066
add esp, 0xc
push ebx
push 0x529b64
call fcn.004e6928
add esp, 8
cmp eax, edi
jne 0x4cedbd
push ebx
push 0x529b64
mov byte [ebp - 0x2d6a], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4cedc4
mov byte [ebp - 0x2d6a], 1
push str._exec_pnp_cmd__and_export_log_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
push 0x38
lea ecx, [ebp - 0x2dac]
push ebx
push ecx
call fcn.004e7d90
add esp, 0x14
lea ecx, [ebp - 0x2db0]
lea edx, [ebp - 0x558]
lea eax, [ebp - 0x348]
push ecx
mov dword [ebp - 0x2db0], 0x3c
mov dword [ebp - 0x2dac], 0x40
mov dword [ebp - 0x2da8], ebx
mov dword [ebp - 0x2da4], ebx
mov dword [ebp - 0x2da0], 0x529bc4
mov dword [ebp - 0x2d9c], edx
mov dword [ebp - 0x2d98], eax
mov dword [ebp - 0x2d94], ebx
mov dword [ebp - 0x2d90], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [ebp - 0x2d78]
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x4cee7f
xor edx, edx
xor ecx, ecx
mov byte [ebp - 0x2d69], bl
cmp eax, 0x102
je 0x4cee75
push str._unknow_exception_
jmp 0x4cf0fd
push str._timeout_
jmp 0x4cf0fd
push ebx
push str.c:_tempPnPadd.tmp
call fcn.004e5d05
add esp, 8
test eax, eax
jne 0x4cf0ee
lea eax, [ebp - 0x2d68]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x27ff
lea ecx, [ebp - 0x2d57]
push ebx
push ecx
mov byte [ebp - 0x2d69], 1
mov byte [ebp - 0x2d58], bl
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0x2e68]
push edx
call fcn.004cffc0
mov eax, str.c:_tempPnPadd.tmp
lea esi, [ebp - 0x2e68]
mov dword [ebp - 4], ebx
call fcn.004d0190
mov eax, dword [ebp - 0x2e68]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x2e5c], 6
je 0x4cef3e
push str._open_log_fail_
push str.Driver
xor edx, edx
xor ecx, ecx
mov byte [ebp - 0x2d69], bl
call fcn.004a5390
add esp, 8
lea ecx, [ebp - 0x2df8]
mov dword [ebp - 4], edi
call fcn.004d00c0
lea edx, [ebp - 0x2df8]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f80ba
add esp, 4
jmp 0x4cf10a
push ebx
push 0x2800
lea eax, [ebp - 0x2d58]
push eax
lea ecx, [ebp - 0x2e68]
push ecx
call fcn.004cfb10
lea esi, [ebp - 0x2e68]
call fcn.004d01e0
push 0x103
lea edx, [ebp - 0x44f]
push ebx
push edx
mov byte [ebp - 0x450], bl
call fcn.004e7d90
movzx eax, word [ebp - 0x2d5e]
movzx ecx, word [ebp - 0x2d60]
movzx edx, word [ebp - 0x2d62]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x2d66]
push ecx
movzx ecx, word [ebp - 0x2d68]
push edx
push eax
push ecx
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x450]
push str._sPnPadd__04u__02u__02u__02u__02u.tmp
push eax
call fcn.004e5066
add esp, 0x20
lea ecx, [ebp - 0x450]
push ecx
push str.c:_tempPnPadd.tmp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [ebp - 0x2d58]
push 0x529c34
push edx
call fcn.004e4260
add esp, 8
cmp eax, ebx
je 0x4cf0a9
push 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004e42f0
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4cf003
sub eax, edx
je 0x4cf0a2
mov al, 0x66
cmp byte [ebp - 0x29], al
jne 0x4cf087
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2d74], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4cf028
sub eax, edx
lea ecx, [ebp - 0x2d74]
push ecx
lea edx, [ebp - 0x2d70]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSet_servicesSmrf
push reloc.WS2_32.dll_bind
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4cf078
mov ecx, dword [ebp - 0x2d70]
push esi
lea eax, [ebp - 0x30]
push eax
push 1
push ebx
push str.PublicName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x2d70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4cf0c5
cmp byte [ebp - 0x28], al
jne 0x4cf091
mov byte [ebp - 0x27], bl
jmp 0x4cf01c
cmp byte [ebp - 0x27], al
jne 0x4cf09b
mov byte [ebp - 0x26], bl
jmp 0x4cf01c
push 0x529c38
jmp 0x4cf0ae
push str._log_fileSize_is_zeor_
jmp 0x4cf0ae
push str._cant_find_oem_
push str.Driver
xor edx, edx
xor ecx, ecx
mov byte [ebp - 0x2d69], bl
call fcn.004a5390
add esp, 8
lea ecx, [ebp - 0x2df8]
mov dword [ebp - 4], edi
call fcn.004d00c0
lea eax, [ebp - 0x2df8]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f80ba
add esp, 4
jmp 0x4cf10a
xor edx, edx
mov byte [ebp - 0x2d69], bl
push str._export_fail_
xor ecx, ecx
push str.Driver
call fcn.004a5390
add esp, 8
cmp byte [ebp - 0x2d6a], bl
jne 0x4cf11e
push ebx
push str.rd_c:_temp__Q__S
call dword [sym.imp.KERNEL32.dll_WinExec]
xor edx, edx
xor ecx, ecx
cmp byte [ebp - 0x2d69], 1
jne 0x4cf141
push str._install_pnp_success_
push str.Driver
call fcn.004a5390
add esp, 8
mov al, 1
jmp 0x4cf155
push str._install_pnp_fail_
push str.Driver
call fcn.004a5390
add esp, 8
xor al, al
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.004e3946
mov esp, ebp
pop ebp
ret