Function at 0x18010b4c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180157688]
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x280], 0
mov dword [rsp + 0x270], 0
mov dword [rsp + 0x40], 0
mov word [rsp + 0x60], 0
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x278], 0
lea rax, [rsp + 0x27c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x18010b576
mov eax, 1
jmp 0x18010b7d9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
je 0x18010b5e0
cmp dword [rsp + 0x270], 2
jne 0x18010b5c6
mov eax, 1
jmp 0x18010b7d9
mov edx, dword [rsp + 0x270]
lea rcx, str.CDriverRegistry::RegDelnodeRecurse___RegOpenKeyEx_failed__d_._n
call fcn.1801045e0
xor eax, eax
jmp 0x18010b7d9
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
mov rcx, qword [rsp + 0x2c0]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x280]
movzx eax, word [rax - 2]
cmp eax, 0x5c
je 0x18010b643
mov rax, qword [rsp + 0x280]
mov word [rax], 0x5c
mov rax, qword [rsp + 0x280]
add rax, 2
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x280]
mov word [rax], 0
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x278]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x18010b75f
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x208
sub ecx, eax
mov eax, ecx
cdqe
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x280]
call fcn.180003250
mov dword [rsp + 0x288], eax
cmp dword [rsp + 0x288], 0
je 0x18010b6e0
jmp 0x18010b75f
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
call fcn.18010b4c0
test eax, eax
jne 0x18010b703
jmp 0x18010b75f
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x278]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
je 0x18010b69f
mov rax, qword [rsp + 0x280]
sub rax, 2
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x280]
mov word [rax], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], 0
mov rdx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x18010b7c4
mov eax, 1
jmp 0x18010b7d9
mov edx, dword [rsp + 0x270]
lea rcx, str.CDriverRegistry::RegDelnodeRecurse___RegDeleteKey_failed__d_._n
call fcn.1801045e0
xor eax, eax
mov rcx, qword [rsp + 0x290]
call fcn.180124250
add rsp, 0x2a0
pop rdi
ret