Function at 0x1400930a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x540
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x80], rdx
mov rbx, rcx
xor r15d, r15d
mov qword [rsp + 0x128], r15
mov dword [rsp + 0x120], r15d
xor edx, edx
mov r8d, 0x3fc
lea rcx, [rsp + 0x130]
call sub.VCRUNTIME140.dll_memset
mov r12d, r15d
mov qword [rsp + 0x48], r15
mov r14d, r15d
mov qword [rsp + 0x40], r15
lea rax, str.HKEY_CLASSES_ROOT
mov qword [rsp + 0x90], rax
lea rax, str.HKEY_CURRENT_CONFIG
mov qword [rsp + 0x98], rax
lea rax, str.HKEY_CURRENT_USER
mov qword [rsp + 0xa0], rax
lea rax, str.HKEY_LOCAL_MACHINE
mov qword [rsp + 0xa8], rax
lea rax, str.HKEY_PERFORMANCE_DATA
mov qword [rsp + 0xb0], rax
lea rax, str.HKEY_PERFORMANCE_NLSTEXT
mov qword [rsp + 0xb8], rax
lea rax, str.HKEY_PERFORMANCE_TEXT
mov qword [rsp + 0xc0], rax
lea rax, str.HKEY_USERS
mov qword [rsp + 0xc8], rax
movdqa xmm0, xmmword [0x1400b70d0]
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmm1, xmmword [0x1400b7070]
movdqa xmmword [rsp + 0xf0], xmm1
movdqa xmm0, xmmword [0x1400b70e0]
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmm1, xmmword [0x1400b70a0]
movdqa xmmword [rsp + 0x110], xmm1
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov r8d, 0x1fe
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x128]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
test eax, eax
jne 0x140093508
test rbx, rbx
jne 0x140093206
mov eax, r15d
jmp 0x140093214
mov edx, 0x4002
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
lea r13, [rsp + 0x130]
lea r13, [r13 + rax*2]
lea rbx, [r13 - 2]
mov qword [rsp + 0x50], rbx
xor eax, eax
mov edi, eax
mov dword [rsp + 0x58], r15d
cmp edi, 8
jae 0x140093280
mov edx, edi
mov rdx, qword [rsp + rdx*8 + 0x90]
lea rcx, [rsp + 0x130]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rsi, rax
mov qword [rsp + 0xd0], rax
test rax, rax
je 0x140093277
lea rax, [rsp + 0x130]
cmp rsi, rax
jne 0x140093277
mov dword [rsp + 0x70], 1
jmp 0x140093288
lea r15d, [rdi + 1]
mov edi, r15d
jmp 0x14009322e
xor r15d, r15d
jmp 0x140093508
mov dword [rsp + 0x5c], r15d
mov ecx, edi
mov edx, 0x4002
mov rcx, qword [rsp + rcx*8 + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea rcx, [rsi + rax*2]
cmp rcx, r13
jae 0x140093503
cmp word [rcx], 0x5c
jne 0x140093503
xor r15d, r15d
mov word [rcx], r15w
lea rax, [rcx + 2]
cmp rax, r13
jae 0x140093508
mov qword [rsp + 0x68], rax
cmp word [rbx], 0x5c
je 0x140093508
nop dword [rax]
cmp rbx, rcx
jbe 0x1400932f6
cmp word [rbx], 0x5c
je 0x1400932f6
sub rbx, 2
mov qword [rsp + 0x50], rbx
jmp 0x1400932e0
cmp rbx, rax
jbe 0x140093501
cmp word [rbx], 0x5c
jne 0x140093501
mov word [rbx], r15w
add rbx, 2
mov qword [rsp + 0x50], rbx
mov edx, 0x1fe
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test rax, rax
je 0x140093508
lfence
mov edx, 0x4002
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test rax, rax
jne 0x140093359
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
jmp 0x140093508
mov edx, 0x4002
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test rax, rax
jne 0x14009337d
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
jmp 0x140093508
lfence
mov eax, dword [rsp + 0x5c]
mov rsi, qword [rsp + rax*8 + 0xe0]
lea rax, [rsp + 0x120]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, 0xffff
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400934f5
mov eax, dword [rsp + 0x120]
test eax, eax
je 0x1400934f5
shr eax, 1
mov dword [rsp + 0x60], eax
inc eax
mov ebx, eax
lea rdi, [rax + rax]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140093401
mov r14, qword [rsp + 0x40]
jmp 0x140093508
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x78], rbx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140093508
lfence
mov rdi, qword [rsp + 0x78]
mov r8, rdi
xor edx, edx
mov r14, qword [rsp + 0x40]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x120]
mov qword [rsp + 0x30], rax
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov r9d, 0xffff
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400934f3
cmp dword [rsp + 0x120], r15d
je 0x1400934f3
mov ebx, dword [rsp + 0x60]
mov byte [rbx + r14], r15b
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, r12
mov r8d, ebx
mov rdx, r14
lea rcx, [rsp + 0x128]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x1400934f1
mov edx, ebx
mov rcx, r14
call fcn.14008f420
test eax, eax
jne 0x140093508
mov rax, qword [rsp + 0x80]
mov qword [rax], r14
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x88]
mov qword [rax], rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x48], r15
xor eax, eax
jmp 0x140093542
jmp 0x140093508
jmp 0x140093508
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
jmp 0x140093508
jmp 0x140093508
xor r15d, r15d
jmp 0x140093508
nop
test r14, r14
je 0x14009351c
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], r15
test r12, r12
je 0x14009352f
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x48], r15
mov eax, 1
jmp 0x140093542
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret