Function at 0x100003e60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
lea rax, [rsp + 0x70]
mov r15, rcx
mov esi, 1
lea rdx, str.SystemCurrentControlSetControlSession_ManagerEnvironment
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
xor edi, edi
cmp eax, edi
jne 0x100008dbf
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0xe8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyW]
cmp eax, edi
jne 0x100008dfb
mov r8d, dword [rsp + 0xe8]
mov rcx, qword [0x10001d210]
mov ebx, 8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov qword [rsp + 0x88], rax
cmp rax, rdi
je 0x100008dfb
mov eax, dword [rsp + 0xe0]
mov rcx, qword [0x10001d210]
mov edx, ebx
add eax, esi
mov r8d, eax
mov dword [rsp + 0xe0], eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x80], rax
cmp rax, rdi
je 0x100008e08
mov eax, dword [rsp + 0x68]
mov ebx, edi
lea r13, [0x10001d1e0]
cmp eax, edi
jbe 0x10000401a
mov eax, dword [rsp + 0xe0]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xe8]
mov r8, r14
mov dword [rsp + 0xd8], eax
lea rax, [rsp + 0xd8]
mov edx, ebx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
cmp eax, edi
jne 0x100008ec3
cmp dword [rsp + 0xd8], 0x1000
jae 0x100008e18
mov eax, dword [rsp + 0x64]
cmp eax, esi
jne 0x10000400c
mov r9d, esi
mov r8, rbp
mov rdx, r14
mov rcx, r15
call fcn.100003cac
cmp eax, edi
je 0x100008e24
mov eax, dword [rsp + 0x68]
add ebx, esi
cmp ebx, eax
jb 0x100003f83
mov r12d, edi
cmp eax, edi
jbe 0x10000409d
mov eax, dword [rsp + 0xe0]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xe8]
mov r8, r14
mov dword [rsp + 0xd8], eax
lea rax, [rsp + 0xd8]
mov edx, r12d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
cmp eax, edi
jne 0x100008ec3
cmp dword [rsp + 0xd8], 0x1000
jae 0x100008e6b
cmp dword [rsp + 0x64], 2
je 0x1000040e1
add r12d, esi
cmp r12d, dword [rsp + 0x68]
jb 0x100004021
jmp 0x10000409d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea rcx, [rsp + 0x80]
call fcn.1000031b0
mov edi, esi
lea rcx, [rsp + 0x88]
call fcn.1000031b0
mov eax, edi
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.1000031dc
mov qword [rsp + 0x78], rax
cmp rax, rdi
je 0x100008e7c
mov r9d, esi
mov r8, rax
mov rdx, r14
mov rcx, r15
call fcn.100003cac
lea rcx, [rsp + 0x78]
mov ebx, eax
call fcn.1000031b0
cmp ebx, edi
jne 0x100004091
jmp 0x100008e77
mov rcx, qword [0x10001d1e0]
lea r13, [0x10001d1e0]
cmp rcx, r13
je 0x100008df4
test byte [rcx + 0x1c], sil
je 0x100008df4
cmp byte [rcx + 0x19], 2
jb 0x100008df4
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xd]
lea r8, [0x100018410]
mov r9d, eax
call fcn.100001e70
xor eax, eax
jmp 0x1000040c6
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x100008df4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1000040b7
mov word [rbp + 0xffe], di
jmp 0x100003feb
mov rcx, qword [0x10001d1e0]
cmp rcx, r13
je 0x10000400c
test byte [rcx + 0x1c], sil
je 0x10000400c
cmp byte [rcx + 0x19], 2
jb 0x10000400c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100018410]
mov edx, 0xf
mov r9, r14
mov qword [rsp + 0x20], rbp
call fcn.10000b5a0
nop
jmp 0x10000400c
mov word [rbp + 0xffe], di
jmp 0x10000408a
mov rax, qword [rsp + 0x78]
mov rcx, qword [0x10001d1e0]
cmp rcx, r13
je 0x100004091
test byte [rcx + 0x1c], sil
je 0x100004091
cmp byte [rcx + 0x19], 2
jb 0x100004091
mov rcx, qword [rcx + 0x10]
lea r8, [0x100018410]
mov edx, 0x10
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.10000b5a0
nop
jmp 0x100004091
mov esi, edi
jmp 0x10000409d