Function at 0x1400025c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x838]
sub rsp, 0x910
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], rcx
xor edi, edi
lea rdx, str._power__check_check__
xor ecx, ecx
call fcn.1400013f0
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x1f0]
call fcn.140009410
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlClass53d29ef7_377c_4d14_864b_eb3a85769359
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r12d, [rdi - 1]
test eax, eax
jne 0x140002b81
mov ecx, 0x7f8
call fcn.140007970
mov rsi, rax
mov qword [rbp - 0x60], rax
mov ecx, 0x7f8
call fcn.140007970
mov qword [rbp - 0x58], rax
mov rbx, rax
mov r13, rsi
sub r13, rax
mov qword [rsp + 0x68], r13
mov esi, 0xff
mov r14d, esi
mov ecx, 0x1fe
call fcn.140007970
mov qword [rbx + r13], rax
mov ecx, 0x1fe
call fcn.140007970
mov qword [rbx], rax
lea rbx, [rbx + 8]
sub r14, 1
jne 0x140002692
mov r15, qword [rbp - 0x68]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5f0]
call fcn.140009410
mov dword [rbp - 0x70], 0x104
mov dword [rsp + 0x60], edi
mov ecx, 0x7ffe
call fcn.140007970
mov r14, rax
mov dword [rsp + 0x70], 0x3fff
lea rax, [rbp - 0x38]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x5f0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400027bc
mov ebx, edi
mov r13, qword [rbp - 0x60]
nop
cmp ebx, esi
jae 0x1400027b7
mov dword [rbp - 0x6c], esi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x6c]
lea r8, [rbp + 0x3f0]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400027af
mov ecx, ebx
lea r8, [rbp + 0x3f0]
mov rdx, rsi
mov rcx, qword [r13 + rcx*8]
call fcn.14000e050
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140002760
mov r13, qword [rsp + 0x68]
mov eax, dword [rsp + 0x74]
test eax, eax
je 0x14000282c
mov ebx, edi
mov r13, qword [rbp - 0x58]
nop word [rax + rax]
cmp ebx, esi
jae 0x140002827
mov dword [rsp + 0x70], 0x3fff
mov word [r14], di
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8, r14
mov edx, ebx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14000281f
mov ecx, ebx
mov r8, r14
mov edx, 0x3fff
mov rcx, qword [r13 + rcx*8]
call fcn.14000e050
inc ebx
cmp ebx, dword [rsp + 0x74]
jb 0x1400027d0
mov r13, qword [rsp + 0x68]
mov rcx, r14
call fcn.140007900
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsxd rbx, dword [rsp + 0x60]
mov r8d, ebx
lea rdx, str._POWER__Number_of_subkeys:__d_n
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call fcn.1400013f0
mov r15, rbx
test ebx, ebx
jle 0x140002ae1
mov rbx, rdi
mov r14d, 1
nop dword [rax]
movaps xmm0, xmmword [str.SystemCurrentControlSetControlClass53d29ef7_377c_4d14_864b_eb3a85769359]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm1, xmmword [0x140024f70]
movaps xmmword [rbp], xmm1
movaps xmm0, xmmword [0x140024f80]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [0x140024f90]
movaps xmmword [rbp + 0x20], xmm1
movaps xmm0, xmmword [0x140024fa0]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [0x140024fb0]
movaps xmmword [rbp + 0x40], xmm1
movaps xmm0, xmmword [0x140024fc0]
movaps xmmword [rbp + 0x50], xmm0
movaps xmm1, xmmword [0x140024fd0]
movaps xmmword [rbp + 0x60], xmm1
movaps xmm0, xmmword [0x140024fe0]
movaps xmmword [rbp + 0x70], xmm0
movsd xmm1, qword [0x140024ff0]
movsd qword [rbp + 0x80], xmm1
mov eax, dword [0x140024ff8]
mov dword [rbp + 0x88], eax
xor edx, edx
mov r8d, 0x162
lea rcx, [rbp + 0x8c]
call fcn.140009410
lea r8, [0x1400248bc]
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.14000e0b8
mov rax, qword [rbp - 0x60]
mov r8, qword [rax + rbx*8]
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.14000e0b8
lea r9, [rbp - 0x10]
mov r8d, r14d
lea rdx, str._POWER____d__Path_:__ws_n
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call fcn.1400013f0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002ad2
lea rax, [rsp + 0x78]
mov qword [rbp - 0x18], rax
call fcn.140001180
test rax, rax
je 0x140002be3
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rax, str.MatchingDeviceId
lea rcx, [rsp + 0x78]
cmp rax, 0x10000
jae 0x1400029d6
movzx edx, ax
call fcn.1400030d0
jmp 0x1400029e5
mov r8d, 0x10
mov rdx, rax
call fcn.140003380
nop
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140005430
nop
lea rcx, [rbp - 0x80]
call fcn.140002e80
mov r9, qword [rbp - 0x78]
mov r8d, r14d
lea rdx, str._POWER____d__MatchingDeviceId_:__ws_n
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call fcn.1400013f0
mov r8, qword [rbp - 0x80]
lea rdx, str._POWER__ComparedDeviceId_:__ws_n
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call fcn.1400013f0
mov rax, qword [rbp - 0x78]
mov r8, qword [rbp - 0x80]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140002a74
add rax, 2
test ecx, ecx
jne 0x140002a60
xor ecx, ecx
test edx, edx
je 0x140002b20
lea rdx, str._power__Driver_Removed__
call fcn.1400013f0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002ab4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002ad2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r14d
inc rbx
cmp rbx, r15
jl 0x140002880
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rbp - 0x58]
mov rbx, r14
mov rcx, qword [rbx + r13]
call fcn.140007900
mov rcx, qword [rbx]
call fcn.140007900
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x140002af2
mov rcx, qword [rbp - 0x60]
call fcn.140007900
mov rcx, r14
call fcn.140007900
jmp 0x140002b90
lea rdx, str._power__Driver_alive__
call fcn.1400013f0
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, edi
jg 0x140002b5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002ae1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140002ae1
lea rdx, str._power__Open_Key_Fail__
xor ecx, ecx
call fcn.1400013f0
nop
mov rdx, qword [rbp - 0x30]
mov rdx, qword [rdx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140002bb1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.140007310
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001980
int3