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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400c0140]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov qword [rbp - 8], 7
xor r15d, r15d
mov qword [rbp - 0x10], r15
mov word [rbp - 0x20], r15w
lea r8d, [r15 + 0x49]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
lea rcx, [rbp - 0x20]
call fcn.140001780
nop
mov r13d, r15d
mov qword [rbp - 0x70], r15
mov r14d, r15d
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031e0c
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edx, dword [rsp + 0x60]
test edx, edx
je 0x140031e00
mov ebx, r15d
mov dword [rsp + 0x78], 0xff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x30]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140031d7d
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.1400015e0
nop
mov r8d, 1
lea rdx, [0x14008ef9c]
lea rcx, [rbp - 0x48]
call fcn.140015a00
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140015a00
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031d6d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x74]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [rsp + 0x70], 0
jne 0x140031d62
cmp dword [rsp + 0x74], 0
jne 0x140031d62
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r15
mov word [rbp + 8], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 8]
call fcn.140001780
nop
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x70]
call fcn.1400119e0
nop
cmp qword [rbp + 0x20], 8
jb 0x140031d62
mov rcx, qword [rbp + 8]
call fcn.140063290
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp - 0x30], 8
jb 0x140031d7d
mov rcx, qword [rbp - 0x48]
call fcn.140063290
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140031bf3
mov r14, qword [rbp - 0x68]
mov r13, qword [rbp - 0x70]
mov r12d, r15d
mov rcx, r14
sub rcx, r13
movabs rax, 0x6666666666666667
imul rcx
mov rbx, rdx
sar rbx, 4
mov rax, rbx
shr rax, 0x3f
add rbx, rax
mov rsi, r15
je 0x140031e00
mov rdi, r13
cmp rbx, rsi
jbe 0x140031df3
cmp qword [rdi + 0x18], 8
jb 0x140031dd1
mov rdx, qword [rdi]
jmp 0x140031dd4
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
inc r12d
inc rsi
add rdi, 0x28
mov eax, r12d
cmp rax, rbx
jb 0x140031dc0
jmp 0x140031e00
lea rcx, str.invalid_vector_T__subscript
call fcn.140041cd0
int3
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r13, r13
je 0x140031e51
mov rdi, r13
cmp r13, r14
je 0x140031e48
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x140031e2f
mov rcx, qword [rdi]
call fcn.140063290
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
mov word [rdi], r15w
add rdi, 0x28
cmp rdi, r14
jne 0x140031e20
mov rcx, r13
call fcn.140063290
nop
cmp qword [rbp - 8], 8
jb 0x140031e61
mov rcx, qword [rbp - 0x20]
call fcn.140063290
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140063080
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret