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

Disassembly:
push rbx
push r14
push r15
sub rsp, 0xaf0
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov r14, rcx
lea rcx, [rsp + 0x6b2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x6b0], 0
call fcn.140011ab0
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x80], 0
call fcn.140011ab0
xor ebx, ebx
mov dword [rsp + 0x40], 0x104
mov rcx, rbx
lea r15, [0x140000000]
nop
nop
nop
movzx eax, word [rcx + r15 + 0x2ef70]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x6ae], ax
jne 0x140006640
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x6b0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140006b62
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x80]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006b62
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x208
call fcn.140011ab0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006b62
mov qword [rsp + 0xb18], rbp
mov qword [rsp + 0xb20], rsi
mov qword [rsp + 0xb28], rdi
mov qword [rsp + 0xae8], r12
mov edi, ebx
mov qword [rsp + 0xae0], r13
nop
nop
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x208
add edi, 1
call fcn.140011ab0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400067ed
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp edi, 0x2710
jl 0x140006780
lea rcx, [rsp + 0x4a2]
xor edx, edx
mov r8d, 0x206
mov r13d, ebx
mov word [rsp + 0x4a0], bx
call fcn.140011ab0
lea rcx, [rsp + 0x8c2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x8c0], bx
call fcn.140011ab0
lea rcx, [rsp + 0x292]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x290], bx
call fcn.140011ab0
mov r12, qword [r14 + 0x48]
mov rbp, qword [r12 + 8]
cmp rbp, qword [r12 + 0x10]
jbe 0x140006860
call fcn.140012380
nop
mov rdi, qword [r14 + 0x48]
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 8], rsi
jbe 0x140006873
call fcn.140012380
cmp r12, rdi
je 0x14000687d
call fcn.140012380
cmp rbp, rsi
je 0x140006b3a
cmp rbp, qword [r12 + 0x10]
jb 0x140006892
call fcn.140012380
mov rbx, qword [rbp]
lea rdx, str._.8d
lea rcx, [rsp + 0x8c0]
mov r8d, r13d
call fcn.140011ce0
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x8c0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor edx, edx
nop
nop
nop
movzx eax, word [rdx + r15 + 0x2e938]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x49e], ax
jne 0x1400068d0
xor ecx, ecx
nop
movzx eax, word [rcx + r15 + 0x2ef10]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x28e], ax
jne 0x1400068f0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x290]
repne scasw ax, word [rdi]
lea rax, [rsp + 0x290]
lea rdx, [rsp + 0x4a0]
not rcx
mov r9d, 1
xor r8d, r8d
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
nop
nop
nop
nop
movzx eax, word [rdx + r15 + 0x2eee8]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x49e], ax
jne 0x140006960
mov byte [rsp + 0x68], al
xor eax, eax
lea rdi, str.00000804
mov rsi, rbx
mov ecx, 9
mov qword [rsp + 0x69], rax
mov qword [rsp + 0x71], rax
mov word [rsp + 0x79], ax
mov byte [rsp + 0x7b], al
repe cmpsw word [rsi], word [rdi]
jne 0x1400069c3
mov rax, qword [r15 + 0x2eec0]
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
movzx eax, byte [r15 + 0x2eec8]
mov byte [rcx + 8], al
jmp 0x140006a14
xor edi, edi
or r9d, 0xffffffff
mov r8, rbx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea ecx, [rdi + 1]
xor edx, edx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
lea ecx, [rdi + 1]
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
or rcx, 0xffffffffffffffff
xor eax, eax
xor ebx, ebx
lea rdi, [rsp + 0x68]
mov esi, ebx
mov dword [rsp + 0x44], ebx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
mov rdi, rcx
movsxd rax, ecx
jle 0x140006a6c
lea rdx, [rsp + rax + 0x67]
mov ecx, ebx
movzx eax, byte [rdx]
cmp al, 0x39
jle 0x140006a50
movsx eax, al
sub eax, 0x37
jmp 0x140006a56
movsx eax, al
sub eax, 0x30
shl eax, cl
sub edi, 1
sub rdx, 1
add esi, eax
add ecx, 4
test edi, edi
jg 0x140006a41
mov dword [rsp + 0x44], esi
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
lea rdx, [rsp + 0x4a0]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, rbx
nop
movzx eax, word [rdx + r15 + 0x2eeb0]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x49e], ax
jne 0x140006aa0
mov rcx, rbx
nop
movzx eax, word [rcx + r15 + 0x2ef10]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x28e], ax
jne 0x140006ac0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x290]
repne scasw ax, word [rdi]
lea rax, [rsp + 0x290]
lea rdx, [rsp + 0x4a0]
not rcx
mov r9d, 1
xor r8d, r8d
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add r13d, 1
cmp rbp, qword [r12 + 0x10]
jb 0x140006b31
call fcn.140012380
add rbp, 8
jmp 0x140006860
mov r12, qword [rsp + 0xae8]
mov rdi, qword [rsp + 0xb28]
mov rsi, qword [rsp + 0xb20]
mov rbp, qword [rsp + 0xb18]
mov r13, qword [rsp + 0xae0]
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.140011c90
add rsp, 0xaf0
pop r15
pop r14
pop rbx
ret