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 0x50b238
mov dword [ebp - 0xa38], eax
call fcn.004061e0
push ebx
lea eax, [ebp - 0x20c]
push 0x50b268
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 0x4ff808
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 0x50b2b4
push dword [ebp - 0xa34]
call esi
push 4
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 3
push eax
push 4
push 0
push 0x4ff814
push dword [ebp - 0xa34]
call esi
push edi
lea eax, [ebp - 0x61c]
push 0x50b2d0
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 0x4fb9f0
push dword [ebp - 0xa34]
call esi
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x824]
push 0x50b2e0
push eax
call fcn.0042fa30
mov eax, dword [0x54a99c]
add esp, 0xc
test eax, eax
jne 0x45af16
push 0x50b1ec
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 0x50b350
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 0x50b360
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 0x4f9efc
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 0x50b21c
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