Function at 0x140023734
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xbd0]
sub rsp, 0xcd0
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0xbc0], rax
mov r14, rcx
lea rdi, [rbp + 0x380]
xor r15d, r15d
mov r12d, 0x104
movzx eax, r15w
mov ecx, r12d
rep stosw word [rdi], ax
mov rbx, rdx
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9, rbx
lea r8, str._sDebuggerManagedDebuggeePIDs__i
lea rcx, [rbp + 0x380]
mov dword [rsp + 0x20], eax
mov edx, r12d
call fcn.14000f874
lea rax, [rsp + 0x48]
mov rsi, 0xffffffff80000001
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, [rbp + 0x380]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023a64
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Process
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023a64
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r15w
lea rdi, [rbp + 0x7a0]
mov ecx, r12d
rep stosw word [rdi], ax
movzx eax, r15w
lea rdi, [rbp + 0x590]
mov ecx, r12d
rep stosw word [rdi], ax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, str.ManagedDebuggeePIDs__i
mov edx, r12d
mov r9d, eax
lea rcx, [rbp + 0x7a0]
call fcn.14000f874
mov r9, rbx
lea r8, str._sDebugger
mov edx, r12d
lea rcx, [rbp + 0x590]
call fcn.14000f874
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x590]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400238c5
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x7a0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsp + 0x40]
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140023a64
movzx eax, r15w
lea rdi, [rbp + 0x9b0]
mov rcx, r12
lea rdx, [rbp + 0x170]
rep stosw word [rdi], ax
movzx eax, r15w
lea rdi, [rbp + 0x170]
mov rcx, r12
mov r8d, r12d
rep stosw word [rdi], ax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140023963
mov edx, 0x5c
lea rcx, [rbp + 0x170]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea r9, [rbp + 0x170]
mov rdx, r12
lea r8, str._sdbghelp.dll
lea rcx, [rbp + 0x9b0]
mov word [rax], r15w
call fcn.14000f874
lea rcx, [rbp + 0x9b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140023979
lea rcx, str.DBGHELP.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140023a64
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140023a64
movzx eax, r15w
lea rdi, [rsp + 0x60]
mov rcx, r12
rep stosw word [rdi], ax
lea rax, [rsp + 0x60]
mov rdi, r12
sub r14, rax
lea rcx, [rsp + 0x60]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x1400239d7
movzx eax, word [r14 + rcx]
test ax, ax
je 0x1400239d7
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x1400239b4
lea rax, [rcx - 2]
test rdi, rdi
lea r8, str.debuggee.mdmp
mov rdx, r12
cmovne rax, rcx
lea rcx, [rsp + 0x60]
mov word [rax], r15w
call fcn.140023324
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x60]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140023a64
mov edx, dword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov r8, rax
mov qword [rsp + 0x28], r15
mov rcx, rsi
mov qword [rsp + 0x20], r15
call rbx
mov rcx, rdi
test eax, eax
je 0x140023a5e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140023a66
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xbc0]
xor rcx, rsp
call fcn.140052570
lea r11, [rsp + 0xcd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret