Function at 0x140065060
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x140325af8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov edi, r9d
mov dword [rsp + 0x50], r9d
mov r14, r8
mov rbx, rdx
mov qword [rbp - 0x68], rdx
mov r13, rcx
mov qword [rbp - 0x60], rcx
cmp qword [rcx + 0x20], 0
jne 0x140065106
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140065a38
mov rax, qword [rcx]
mov qword [rsp + 0x38], r8
lea rdx, str.ACLs_not_initialized__cannot_reset_reg_key_permissions_on__s.
mov qword [rsp + 0x30], rdx
lea rdx, str.Permissions
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov r9d, 0x151
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonpermissions.cpp
lea rdx, str.mb::common::system::Permissions::ResetRegKeyPermissions
call qword [rax + 0x20]
jmp 0x140065a38
cmp rbx, 0xffffffff80000000
jne 0x140065242
movdqa xmm0, xmmword [0x1402e5c30]
movdqu xmmword [rbp - 0x30], xmm0
xor r15d, r15d
mov word [rbp - 0x40], r15w
lea r9, str.SoftwareClasses_
lea edx, [r15 + 0x11]
lea rcx, [rbp - 0x40]
call fcn.14000c3b0
nop
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x140065144
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140065192
lea rdi, [rsi + rcx]
mov qword [rbp - 0x30], rdi
lea rbx, [rbp - 0x40]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x40]
lea r8, [rsi + rsi]
lea rcx, [rbx + rcx*2]
mov rdx, r14
call fcn.1401db870
mov word [rbx + rdi*2], r15w
mov edi, dword [rsp + 0x50]
jmp 0x1400651a9
mov qword [rsp + 0x20], rsi
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14000ac60
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
movzx ebx, byte [rbp + 0x270]
mov byte [rsp + 0x20], bl
mov r9d, edi
mov rdx, 0xffffffff80000002
mov rcx, r13
call fcn.140065060
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
mov byte [rsp + 0x20], bl
mov r9d, edi
mov rdx, 0xffffffff80000001
mov rcx, r13
call fcn.140065060
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140065a38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065238
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065a70
call fcn.1401d94a8
jmp 0x140065a38
lea rcx, str.SeSecurityPrivilege
call fcn.1400536c0
xor r15d, r15d
mov qword [rbp - 0x50], r15
mov r10, qword [r13 + 0x30]
mov ecx, edi
bts ecx, 0x18
mov rax, qword [r10]
mov r11, qword [rax + 0xb8]
lea rdx, vtable.mb::common::system::Win32.0
cmp rax, rdx
lea rax, [rbp - 0x50]
jne 0x140065a76
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r12d, eax
test eax, eax
je 0x140065498
movdqa xmm0, xmmword [0x1402e5c30]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r15w
lea r8, [rbp - 0x40]
mov rdx, rbx
mov rcx, r13
call fcn.1400670f0
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140065306
lea rdi, [rcx + 1]
mov qword [rbp - 0x30], rdi
lea rbx, [rbp - 0x40]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x40]
lea rcx, [rbx + rcx*2]
mov r8d, 2
lea rdx, [0x1402d4ac8]
call fcn.1401db870
mov word [rbx + rdi*2], r15w
jmp 0x140065326
mov qword [rsp + 0x20], 1
lea r9, [0x1402d4ac8]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x40]
call fcn.14000ac60
mov rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x140065330
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14006537a
lea rdi, [rsi + rcx]
mov qword [rbp - 0x30], rdi
lea rbx, [rbp - 0x40]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x40]
lea r8, [rsi + rsi]
lea rcx, [rbx + rcx*2]
mov rdx, r14
call fcn.1401db870
mov word [rbx + rdi*2], r15w
jmp 0x140065391
mov qword [rsp + 0x20], rsi
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14000ac60
cmp qword [r13 + 0x28], 0
je 0x140065450
mov edx, r12d
lea rcx, [rsp + 0x58]
call fcn.14001f3d0
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x1400653b6
mov r8, qword [rax]
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov rcx, qword [r13 + 0x28]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdx
lea rdx, str.Error_opening_reg_key__s__Error___s.
mov qword [rsp + 0x30], rdx
lea rdx, str.Permissions
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov r9d, 0x16b
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonpermissions.cpp
lea rdx, str.mb::common::system::Permissions::ResetRegKeyPermissions
call qword [rax + 0x20]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140065450
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006544a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065a93
call fcn.1401d94a8
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140065a38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065238
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065a64
jmp 0x140065238
mov rcx, qword [r13 + 0x30]
mov rdx, qword [r13 + 8]
mov rax, qword [rcx]
mov r10, qword [rax + 0x58]
lea r12, vtable.mb::common::system::Win32.0
cmp rax, r12
jne 0x140065a99
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, rdx
mov edx, 4
lea r8d, [rdx - 3]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov r10, qword [r13 + 0x30]
mov rcx, qword [r13 + 0x20]
mov rax, qword [r10]
mov r11, qword [rax + 0x58]
cmp rax, r12
jne 0x140065ac3
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov edx, 4
mov r8d, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov rcx, qword [r13 + 0x30]
mov rax, qword [rcx]
mov r8, qword [rax + 0x70]
cmp rax, r12
jne 0x140065aef
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rbp + 0x270], r15b
je 0x140065a38
mov r10, qword [r13 + 0x30]
mov ecx, edi
or ecx, 0x20019
mov rax, qword [r10]
mov r11, qword [rax + 0xb8]
cmp rax, r12
lea rax, [rbp - 0x48]
jne 0x140065afb
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14006577a
movdqa xmm0, xmmword [0x1402e5c30]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r15w
lea r8, [rbp - 0x40]
mov rdx, rbx
mov rcx, r13
call fcn.1400670f0
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400655ec
lea rdi, [rcx + 1]
mov qword [rbp - 0x30], rdi
lea rbx, [rbp - 0x40]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x40]
lea rcx, [rbx + rcx*2]
mov r8d, 2
lea rdx, [0x1402d4ac8]
call fcn.1401db870
mov word [rbx + rdi*2], r15w
jmp 0x14006560c
mov qword [rsp + 0x20], 1
lea r9, [0x1402d4ac8]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x40]
call fcn.14000ac60
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x140065613
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14006565d
lea rdi, [rsi + rcx]
mov qword [rbp - 0x30], rdi
lea rbx, [rbp - 0x40]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x40]
lea r8, [rsi + rsi]
lea rcx, [rbx + rcx*2]
mov rdx, r14
call fcn.1401db870
mov word [rbx + rdi*2], r15w
jmp 0x140065674
mov qword [rsp + 0x20], rsi
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14000ac60
cmp qword [r13 + 0x28], 0
je 0x140065732
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14001f3d0
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x140065698
mov r8, qword [rax]
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov rcx, qword [r13 + 0x28]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdx
lea rdx, str.Error_opening_reg_key__s__Error___s.
mov qword [rsp + 0x30], rdx
lea rdx, str.Permissions
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov r9d, 0x181
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommonpermissions.cpp
lea rdx, str.mb::common::system::Permissions::ResetRegKeyPermissions
call qword [rax + 0x20]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140065732
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006572c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065b18
call fcn.1401d94a8
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140065a38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065238
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065a6a
jmp 0x140065238
mov edi, r15d
mov dword [rsp + 0x54], r15d
mov rsi, 0xffffffffffffffff
nop dword [rax]
mov rcx, qword [r13 + 0x30]
mov rax, qword [rcx]
mov r10, qword [rax + 0x90]
cmp rax, r12
jne 0x140065b1e
mov r9d, 0x104
lea r8, [rbp - 0x20]
mov edx, edi
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140065a22
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r15w
mov rdx, rsi
nop dword [rax]
inc rdx
cmp word [r14 + rdx*2], 0
jne 0x1400657e0
lea rcx, [rbp - 0x40]
cmp rdx, 7
ja 0x140065810
mov qword [rbp - 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r14
call fcn.1401db870
mov word [rbp + rbx - 0x40], r15w
jmp 0x140065819
mov r9, r14
call fcn.14000c3b0
nop
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r15w
lea rax, [rbp - 0x20]
mov rdx, rsi
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140065832
lea rcx, [rsp + 0x78]
cmp rdx, 7
ja 0x140065863
mov qword [rbp - 0x78], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x20]
call fcn.1401db870
mov word [rsp + rbx + 0x78], r15w
jmp 0x14006586d
lea r9, [rbp - 0x20]
call fcn.14000c3b0
nop
mov r9d, 1
lea r8, [0x1402d4ac8]
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000a430
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea r9, [rsp + 0x58]
movq r13, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r12, xmm0
cmp r12, 8
cmovae r9, r13
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x28]
mov rax, r8
sub rax, rcx
movq rdx, xmm1
cmp rdx, rax
ja 0x14006590f
lea rdi, [rdx + rcx]
mov qword [rbp - 0x30], rdi
lea rbx, [rbp - 0x40]
cmp r8, 8
cmovae rbx, qword [rbp - 0x40]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call fcn.1401db870
mov word [rbx + rdi*2], r15w
mov edi, dword [rsp + 0x54]
jmp 0x14006592a
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.14000ac60
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x58]
cmp r12, 8
jb 0x140065966
lea rdx, [r12*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x14006595d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065b39
mov rcx, r13
call fcn.1401d94a8
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400659a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400659a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065b3f
call fcn.1401d94a8
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
mov byte [rsp + 0x20], 1
mov r9d, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x68]
mov r13, qword [rbp - 0x60]
mov rcx, r13
call fcn.140065060
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140065a10
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065a0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065b45
call fcn.1401d94a8
inc edi
mov dword [rsp + 0x54], edi
lea r12, vtable.mb::common::system::Win32.0
jmp 0x140065790
mov rcx, qword [r13 + 0x30]
mov rax, qword [rcx]
cmp rax, r12
jne 0x140065a5b
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1401d9c30
add rsp, 0x308
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rdx, qword [rbp - 0x48]
call qword [rax + 0x70]
jmp 0x140065a38
call fcn.1401e4d9c
int3
call fcn.1401e4d9c
int3
call fcn.1401e4d9c
int3
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, r14
mov rdx, rbx
mov rcx, r10
call r11
jmp 0x140065294
call fcn.1401e4d9c
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdx
mov r9d, 1
lea r8d, [r9 + 3]
mov rdx, qword [rbp - 0x50]
call r10
jmp 0x1400654dc
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, 4
mov r8d, r9d
mov rdx, qword [rbp - 0x50]
mov rcx, r10
call r11
jmp 0x140065518
mov rdx, qword [rbp - 0x50]
call r8
jmp 0x140065536
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, r14
mov rdx, rbx
mov rcx, r10
call r11
jmp 0x14006557d
call fcn.1401e4d9c
nop
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8d, edi
mov rdx, qword [rbp - 0x48]
call r10
jmp 0x1400657bd
call fcn.1401e4d9c
nop
call fcn.1401e4d9c
nop
call fcn.1401e4d9c
int3