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

Disassembly:
mov r11, rsp
sub rsp, 0x188
mov rax, qword [0x0045f6c0]
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 0x40d29d
lea rdx, str.INFO:_Open_Key_HWHandSet_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.00427fd0
lea rcx, [rsp + 0x60]
call fcn.00404a90
cmp ebx, 5
jne 0x40d2e5
mov eax, 0x4e2d
jmp 0x40d4d8
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 0x40d348
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServiceshw_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 0x40d352
lea rdx, str.INFO:_Open_Key_hw_usbdev_error___d._n
lea rcx, [rsp + 0x60]
mov r8d, eax
call fcn.00427fd0
lea rcx, [rsp + 0x60]
call fcn.00404a90
cmp ebx, 5
jne 0x40d3a7
mov eax, 0x4e2d
jmp 0x40d4d8
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 0x40d293
mov eax, dword [0x00454010]
cmp eax, 2
je 0x40d42d
cmp eax, 3
je 0x40d42d
cmp eax, 4
je 0x40d42d
cmp eax, 5
je 0x40d42d
cmp eax, 7
je 0x40d3d8
cmp eax, 6
jne 0x40d4cf
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 0x40d424
mov r8d, eax
lea rdx, str.Open_Key_Searching_Windows_Update_error___d._n
jmp 0x40d477
lea rdx, str.SearchOrderConfig
jmp 0x40d49e
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 0x40d497
mov r8d, eax
lea rdx, str.INFO:_Open_Key_Searching_Windows_Update_error___d._n
lea rcx, [rsp + 0x60]
call fcn.00427fd0
lea rcx, [rsp + 0x60]
call fcn.00404a90
cmp ebx, 5
jne 0x40d4cf
mov eax, 0x4e2d
jmp 0x40d4d8
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.004059a0
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.00425570
add rsp, 0x188
ret