Function at 0x1000e5b6c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100152198]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, rdx
mov rsi, rcx
lea rax, [0x100153eb8]
mov edi, 5
mov rcx, qword [0x100153eb8]
cmp rcx, rax
je 0x1000e5bdd
test byte [rcx + 0x1c], 1
je 0x1000e5bdd
cmp byte [rcx + 0x19], dil
jb 0x1000e5bdd
lea edx, [rdi + 0x54]
mov qword [rsp + 0x20], rbp
mov r9, qword [rsi]
lea r8, [0x10001dc38]
mov rcx, qword [rcx + 0x10]
call fcn.10003c0d0
mov ebx, 1
and dword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
int1
inc dword [rbx + 0x48247c]
je 0x1000e5de1
lea rcx, [0x1000266d8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1000e5df0
lea rdx, [0x1000266c8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rsp + 0x68], rax
xor ecx, ecx
cmp rax, rcx
je 0x1000e5dd2
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1000e5c95
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000e5c89
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
jmp 0x1000e5c9a
mov rcx, qword [rsp + 0x50]
mov r10, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp r10, rax
je 0x1000e5cf3
mov edx, 2
test byte [r10 + 0x1c], dl
je 0x1000e5cf3
test ebx, ebx
lea eax, [rdx + 3]
cmove edx, eax
movzx eax, byte [r10 + 0x19]
cmp eax, edx
jl 0x1000e5cf3
mov edx, 0x5a
mov qword [rsp + 0x28], rbp
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x10001dc38]
mov rcx, qword [r10 + 0x10]
call fcn.10006b7d8
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x1000e5dc7
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000e5d92
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.1000e5b6c
mov ebx, eax
test eax, eax
jne 0x1000e5d92
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000e5d38
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000e5da9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x1000e5dc7
xor r9d, r9d
mov r8d, 0x100
mov rdx, rbp
mov rcx, qword [rsi]
call qword [rsp + 0x68]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000e5dd2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
mov edi, 5
jmp 0x1000e5df5
mov rdx, rbp
mov rcx, rsi
call fcn.1000e67ec
mov ebx, eax
jmp 0x1000e5df5
mov edi, 5
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000e5e3b
test byte [rcx + 0x1c], 1
je 0x1000e5e3b
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, edi
cmp r9d, edx
jl 0x1000e5e3b
mov edx, 0x5b
mov r9d, ebx
lea r8, [0x10001dc38]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10011be80
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret