Function at 0x40b8f0
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x188
mov rax, qword [0x0045c120]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [r11 + 0x20], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rdx, str.SYSTEMCurrentControlSetServicesHWHandSet
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov edi, esi
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ebx, eax
je 0x40b98d
lea rdx, str.INFO:_Open_Key_HWHandSet_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.00427d80
lea rcx, [rsp + 0x60]
call fcn.00405500
cmp ebx, 5
jne 0x40b9d5
mov eax, 0x4e2d
jmp 0x40bbc8
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverResident
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverPowerManagementEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverWaitWakeEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 5
je 0x40ba38
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServiceshn_usbdev
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ebx, eax
je 0x40ba42
lea rdx, str.INFO:_Open_Key_hn_usbdev_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.00427d80
lea rcx, [rsp + 0x60]
call fcn.00405500
cmp ebx, 5
jne 0x40ba97
mov eax, 0x4e2d
jmp 0x40bbc8
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverResident
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverPowerManagementEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.QCDriverWaitWakeEnabled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.EnableCD
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 5
je 0x40b983
mov eax, dword [0x00453010]
cmp eax, 2
je 0x40bb1d
cmp eax, 3
je 0x40bb1d
cmp eax, 4
je 0x40bb1d
cmp eax, 5
je 0x40bb1d
cmp eax, 7
je 0x40bac8
cmp eax, 6
jne 0x40bbbf
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDriverSearching
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ebx, eax
je 0x40bb14
mov r8d, eax
lea rdx, str.Open_Key_Searching_Windows_Update_error___d._n
jmp 0x40bb67
lea rdx, str.SearchOrderConfig
jmp 0x40bb8e
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsDriverSearching
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ebx, eax
je 0x40bb87
mov r8d, eax
lea rdx, str.INFO:_Open_Key_Searching_Windows_Update_error___d._n
lea rcx, [rsp + 0x60]
call fcn.00427d80
lea rcx, [rsp + 0x60]
call fcn.00405500
cmp ebx, 5
jne 0x40bbbf
mov eax, 0x4e2d
jmp 0x40bbc8
lea rdx, str.DontSearchWindowsUpdate
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call fcn.00406310
mov eax, edi
mov rdi, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1a0]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.004252f0
add rsp, 0x188
ret