Function at 0x140025a74
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rdi, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x140025ae8
test byte [rcx + 0x1c], 1
je 0x140025ae8
mov edx, 0x141
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcb0
mov rcx, qword [0x140148ea8]
mov r14d, 1
xor r12d, r12d
mov eax, r12d
mov qword [rsp + 0x48], rax
mov r15d, r12d
or r13, 0xffffffffffffffff
mov sil, 2
cmp rcx, rdi
je 0x140025b31
test byte [rcx + 0x1c], sil
je 0x140025b31
cmp byte [rcx + 0x19], 5
jb 0x140025b31
mov edx, 0x142
mov r9d, r15d
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140025b44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r12
mov rbx, r12
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x140005cf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025f7b
mov eax, r12d
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x140025f7b
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x50]
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140025f71
test eax, eax
jne 0x140025f3f
lea rdx, [0x140005cf0]
lea rcx, [rsp + 0x40]
call fcn.140011450
nop
lea rcx, [rbp - 0x50]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140025bfb
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.140010e38
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025e22
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, [0x140005cc8]
lea rcx, [rbp - 0x70]
call fcn.1400d252c
test eax, eax
je 0x140025d14
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x140025cc9
test byte [rcx + 0x1c], sil
je 0x140025cc9
cmp byte [rcx + 0x19], 5
jb 0x140025cc9
mov edx, 0x146
mov r9d, eax
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
nop
mov rsi, qword [rsp + 0x60]
mov eax, r13d
lock xadd dword [rsi - 8], eax
add eax, r13d
test eax, eax
jg 0x140025cfb
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140025e55
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140025e55
mov qword [rbp - 0x78], r12
lea rdx, [0x1400055f4]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, r12d
test eax, eax
sete dil
test edi, edi
jne 0x140025dac
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x78]
lea eax, [rdi + 1]
mov r8d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x140025dac
mov edi, 1
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x140025df0
test byte [rcx + 0x1c], sil
je 0x140025db3
cmp byte [rcx + 0x19], 5
jb 0x140025db3
mov edx, 0x147
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.140011da0
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140025de8
test byte [rcx + 0x1c], sil
je 0x140025de8
cmp byte [rcx + 0x19], 4
jb 0x140025de8
mov edx, 0x148
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x50]
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.140011da0
test edi, edi
je 0x140025eb4
lea rsi, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140025cfb
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, rsi
jmp 0x140025cf5
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x140025e55
test byte [rcx + 0x1c], sil
je 0x140025e55
cmp byte [rcx + 0x19], sil
jb 0x140025e55
mov edx, 0x145
mov r9, qword [rsp + 0x40]
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
nop
mov rsi, qword [rsp + 0x40]
add rsi, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140025e89
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140025e99
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r15d
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x140148ea8]
lea rdi, [0x140148ea8]
jmp 0x140025b00
mov r14d, 1
lea rsi, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140025ee9
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140025efa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rsp + 0x40]
mov eax, r13d
lock xadd dword [rsi - 8], eax
add eax, r13d
test eax, eax
jg 0x140025f2c
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140025fce
jmp 0x140025fc8
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x140025fc0
test byte [rcx + 0x1c], sil
je 0x140025fc0
cmp byte [rcx + 0x19], sil
jb 0x140025fc0
mov edx, 0x144
mov r9d, eax
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140025fb9
mov r14d, r12d
test rbx, rbx
jne 0x140025fc5
jmp 0x140025fce
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x140025fc0
test byte [rcx + 0x1c], sil
je 0x140025fc0
cmp byte [rcx + 0x19], sil
jb 0x140025fc0
mov edx, 0x143
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov rcx, qword [0x140148ea8]
test rbx, rbx
je 0x140025fd5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x140148ea8]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140025ff4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r12
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140026024
test byte [rcx + 0x1c], 1
je 0x140026024
cmp byte [rcx + 0x19], 5
jb 0x140026024
mov edx, 0x149
mov r9d, r14d
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov eax, r14d
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret