Function at 0x45adb0
Capabilities:
Delete registry key
Install driver
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push str.SeLoadDriverPrivilege
mov dword [ebp - 0xa38], eax
call fcn.004061e0
push ebx
lea eax, [ebp - 0x20c]
push str.SystemCurrentControlSetServices_s
push eax
call fcn.0042fa30
add esp, 0x10
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x45afd6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0xa30]
push 4
push eax
push 4
push 0
push str.Type
push dword [ebp - 0xa34]
mov dword [ebp - 0xa30], 1
call esi
push 4
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 1
push eax
push 4
push 0
push str.ErrorControl
push dword [ebp - 0xa34]
call esi
push 4
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 3
push eax
push 4
push 0
push str.Start
push dword [ebp - 0xa34]
call esi
push edi
lea eax, [ebp - 0x61c]
push str.___s
push eax
call fcn.0042fa30
lea ecx, [ebp - 0x61c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45aea5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push 0
push str.ImagePath
push dword [ebp - 0xa34]
call esi
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x824]
push str.RegistryMachineSystemCurrentControlSetServices_s
push eax
call fcn.0042fa30
mov eax, dword [0x54a99c]
add esp, 0xc
test eax, eax
jne 0x45af16
push str.RtlInitUnicodeString
push 0x4f9f14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54a99c], eax
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0xa40]
push ecx
call eax
lea eax, [ebp - 0xa40]
push eax
call sub.ntdll.dll_NtLoadDriver
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._sEnum
push eax
call fcn.0042fa30
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x414]
add esp, 0xc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._sSecurity
push eax
call fcn.0042fa30
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
pop esi
test edi, edi
je 0x45afe8
cmp edi, 0xc000010e
je 0x45afe8
mov eax, dword [0x53a720]
test eax, eax
jne 0x45afcc
push str.RtlNtStatusToDosError
push 0x4f9f14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x53a720], eax
push edi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0xa2c]
push str..Global_s
push eax
call fcn.0042fa30
add esp, 0xc
lea eax, [ebp - 0xa2c]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0xa38]
pop edi
pop ebx
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret