Function at 0x45b520
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 [0x53ba20]
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 0x50d248
mov dword [ebp - 0xa38], eax
call fcn.004061a0
push ebx
lea eax, [ebp - 0x20c]
push 0x50d278
push eax
call fcn.0042fa90
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 0x45b746
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0xa30]
push 4
push eax
push 4
push 0
push 0x501808
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 0x50d2c4
push dword [ebp - 0xa34]
call esi
push 4
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 3
push eax
push 4
push 0
push 0x501814
push dword [ebp - 0xa34]
call esi
push edi
lea eax, [ebp - 0x61c]
push 0x50d2e0
push eax
call fcn.0042fa90
lea ecx, [ebp - 0x61c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b615
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push 0
push 0x4fd9f0
push dword [ebp - 0xa34]
call esi
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x824]
push 0x50d2f0
push eax
call fcn.0042fa90
mov eax, dword [0x5509cc]
add esp, 0xc
test eax, eax
jne 0x45b686
push 0x50d1fc
push 0x4fbf14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5509cc], 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 0x50d360
push eax
call fcn.0042fa90
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 0x50d370
push eax
call fcn.0042fa90
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 0x45b758
cmp edi, 0xc000010e
je 0x45b758
mov eax, dword [0x540750]
test eax, eax
jne 0x45b73c
push 0x4fbefc
push 0x4fbf14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x540750], 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.004c3287
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0xa2c]
push 0x50d22c
push eax
call fcn.0042fa90
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.004c3287
mov esp, ebp
pop ebp
ret