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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r14, r8
mov qword [rsp + 0x58], rdx
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
lea rcx, [rbp - 0x6e]
xor edx, edx
mov qword [rsp + 0x48], r15
mov r8d, 0x206
mov word [rbp - 0x70], r15w
call sub.msvcrt.dll_memset
xor edx, edx
mov word [rbp + 0x1a0], r15w
mov r8d, 0x40e
lea rcx, [rbp + 0x1a2]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x54], 0x104
mov dword [rsp + 0x50], 0x208
mov r12d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x60], 0x74736c74
call fcn.140016b1c
test rbx, rbx
je 0x1400671c6
test rdi, rdi
je 0x1400671c6
test r14, r14
je 0x140066f30
cmp word [r14], r15w
je 0x140066f30
lea r8, [rsp + 0x40]
mov edx, 0x410
mov rcx, r14
call fcn.140053e2c
mov esi, eax
test eax, eax
js 0x1400671cb
mov r12, qword [rsp + 0x40]
mov ebx, r15d
test r12, r12
jne 0x140066f35
mov ebx, 1
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14009d278]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jle 0x140066f67
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x1400671cb
movsxd r13, ebx
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x70]
mov qword [rsp + 0x30], rbx
mov edx, r15d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x54], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
test eax, eax
jle 0x140066fb6
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x14006715d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x70]
lea rax, [rbp + 0x1a0]
mov dword [rsp + 0x50], 0x208
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov esi, eax
test eax, eax
jle 0x140067008
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x14006715d
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14006715d
test r13, r13
jne 0x1400670b7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9d, [r13 + 2]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], rbx
lea rdx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jle 0x140067067
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x14006709e
mov rcx, qword [rsp + 0x40]
lea eax, [r12 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test eax, eax
jle 0x14006709e
movzx esi, ax
or esi, 0x80070000
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006715d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14006715d
mov ecx, 0x38
call fcn.140024914
mov rdi, rax
test rax, rax
je 0x1400670f1
lea rcx, [rax + 0x20]
lea rdx, [rbp - 0x70]
call fcn.140016968
mov rcx, rdi
call fcn.140016b1c
lea rax, [0x140093b58]
mov qword [rdi], rax
mov dword [rdi + 0x30], 0x7274736c
jmp 0x1400670f4
mov rdi, rbx
test rdi, rdi
je 0x140067158
mov rcx, rdi
call fcn.140016b00
test eax, eax
js 0x140067131
lea rax, [0x1400ab2c2]
cmp qword [rdi + 0x28], rax
je 0x140067131
call fcn.140016b00
mov esi, eax
test eax, eax
js 0x14006712c
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14000c090
mov esi, eax
mov rdi, rbx
jmp 0x140067136
mov esi, 0x8007000e
test rdi, rdi
je 0x14006715d
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1400719c8]
mov edx, 1
mov rcx, rdi
call rbx
xor ebx, ebx
jmp 0x14006715d
mov esi, 0x8007000e
inc r15d
test esi, esi
jns 0x140066f74
cmp esi, 0x80070103
lea rax, [rsp + 0x68]
cmove esi, ebx
mov rbx, qword [rsp + 0x78]
cmp rax, rbx
je 0x1400671b9
xor r15d, r15d
lea rax, [rsp + 0x68]
cmp rbx, rax
je 0x1400671b9
lea rdx, [rbx + 0x20]
test rbx, rbx
jne 0x140067199
mov rdx, r15
mov rdx, qword [rdx + 8]
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
test rbx, rbx
je 0x140067183
mov rbx, qword [rbx + 0x10]
jmp 0x140067183
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400671cb
mov esi, 0x80070057
mov r14, qword [rsp + 0x78]
jmp 0x1400671f2
mov rdi, r14
mov r14, qword [r14 + 0x10]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1400719c8]
mov edx, 1
mov rcx, rdi
call rbx
lea rax, [rsp + 0x68]
cmp r14, rax
jne 0x1400671d2
lea rcx, [rsp + 0x68]
call fcn.14000c050
mov eax, esi
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140024ca0
mov rbx, qword [rsp + 0x718]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret