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

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x3d8
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x3f8]
mov rcx, qword [rsp + 0x3f0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14003726b
lea rax, [rsp + 0x2c0]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x3f8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8d, dword [rsp + 0x64]
lea rdx, str.Err_d__LastErr_d__SubKey_s
lea rcx, [rsp + 0x2c0]
call fcn.140017d50
xor al, al
jmp 0x1400375bd
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0xac]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jne 0x14003756e
mov eax, dword [rsp + 0xa8]
dec eax
mov dword [rsp + 0x68], eax
jmp 0x140037305
mov eax, dword [rsp + 0x68]
dec eax
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jl 0x14003756e
movzx eax, byte [0x1401b2032]
mov byte [rsp + 0x1c0], al
lea rax, [rsp + 0x1c1]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov r9d, 0x100
lea r8, [rsp + 0x1c0]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
movzx eax, byte [0x1401b1fef]
mov byte [rsp + 0xc0], al
lea rax, [rsp + 0xc1]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x3f8]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
mov byte [rsp + 0x60], al
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0x60]
mov byte [rax], cl
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x80]
inc rax
mov qword [rsp + 0x80], rax
cmp byte [rsp + 0x60], 0
jne 0x1400373a4
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x70], rax
dec qword [rsp + 0x70]
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
cmp byte [rax], 0
jne 0x140037401
mov rax, qword [rsp + 0x70]
lea rcx, [0x1401b2f24]
mov rdi, rax
mov rsi, rcx
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x78], rax
dec qword [rsp + 0x78]
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x14003743b
mov rax, qword [rsp + 0x78]
lea rcx, [rsp + 0x1c0]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x140037459
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x3f0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jne 0x140037569
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0xac]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x64], 0
jne 0x140037553
cmp dword [rsp + 0xbc], 0
je 0x140037553
mov r8b, 1
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400371c0
jmp 0x140037569
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x3f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1400372fb
movzx eax, byte [rsp + 0x400]
test eax, eax
je 0x1400375a0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x3f8]
mov rcx, qword [rsp + 0x3f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1400375bb
mov rcx, qword [rsp + 0x98]
call fcn.1400370b0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140138320
add rsp, 0x3d8
pop rdi
pop rsi
ret