Function at 0x14009c6e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rdx
mov qword [rbp - 0x69], rdx
mov r12, rcx
mov qword [rbp - 0x49], rdx
lea r14, str.P_a_
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14009c758
test byte [rcx + 0x44], 2
je 0x14009c758
cmp byte [rcx + 0x41], 4
jb 0x14009c758
mov edx, 0x36
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
xor r15d, r15d
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x41]
call fcn.140007d50
nop
mov rdx, qword [r12 + 0x28]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14009c790
lea rcx, [rbp - 0x41]
call fcn.14001a890
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000b
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14009c85f
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14009c805
test byte [rcx + 0x44], 2
je 0x14009c805
cmp byte [rcx + 0x41], 2
jb 0x14009c805
mov edx, 0x37
mov r9d, eax
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
call fcn.140025240
nop
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14009c81f
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.140007b00
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14009c848
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.140007b00
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov eax, ebx
jmp 0x14009cd43
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, str.bootexecute
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14009c8ca
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14009c8bb
test byte [rcx + 0x44], 2
je 0x14009c8bb
cmp byte [rcx + 0x41], 2
jb 0x14009c8bb
mov edx, 0x38
mov r9d, eax
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
call fcn.140025240
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14009c805
mov ecx, dword [rbp - 0x51]
call fcn.140199a34
mov rdi, rax
mov qword [rbp - 0x71], rax
test rax, rax
jne 0x14009c975
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14009c90d
test byte [rcx + 0x44], 2
je 0x14009c90d
cmp byte [rcx + 0x41], 2
jb 0x14009c90d
lea edx, [rax + 0x39]
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14009c932
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.140007b00
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14009c95b
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.140007b00
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov eax, 0xe
jmp 0x14009cd43
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, str.bootexecute
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14009ca1c
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14009c9d1
test byte [rcx + 0x44], 2
je 0x14009c9d1
cmp byte [rcx + 0x41], 2
jb 0x14009c9d1
mov edx, 0x3a
mov r9d, eax
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
call fcn.140025240
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
call fcn.140199a3c
nop
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14009c9fe
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.140007b00
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov rcx, rsi
call fcn.140005170
jmp 0x14009c858
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov rbx, rdi
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14009ca5b
test byte [rcx + 0x44], 2
je 0x14009ca5b
cmp byte [rcx + 0x41], 5
jb 0x14009ca5b
mov edx, 0x3b
mov r9, rdi
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
call fcn.1400328b0
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.140040080
mov r13d, dword [rbp - 0x31]
inc r13d
cmp word [rdi], 0
je 0x14009cb42
xor esi, esi
nop dword [rax + rax]
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], 7
mov word [rbp - 1], si
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14009ca94
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.140006bd0
nop
mov r9, qword [r12 + 0x28]
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], 0
jne 0x14009cab5
lea rcx, [rbp - 1]
mov r15, qword [rbp - 1]
mov rdi, qword [rbp + 0x17]
cmp rdi, 8
cmovae rcx, r15
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov r14, qword [rbp + 0xf]
mov rdx, r14
call fcn.14009c3a0
cmp rax, 0xffffffffffffffff
jne 0x14009cb0f
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.140040080
mov eax, dword [rbp + 0xf]
inc eax
add r13d, eax
mov rdi, qword [rbp + 0x17]
mov r14, qword [rbp + 0xf]
mov r15, qword [rbp - 1]
lea rbx, [rbx + r14*2]
add rbx, 2
cmp rdi, 8
jb 0x14009cb2d
lea r8, [rdi + 1]
mov rdx, r15
lea rcx, [rbp - 1]
call fcn.140007b00
cmp word [rbx], 0
jne 0x14009ca80
mov rsi, qword [rbp - 0x69]
mov rdi, qword [rbp - 0x71]
xor r15d, r15d
lea r14d, [r13 + 1]
mov ecx, r14d
add rcx, rcx
call fcn.140199a34
mov r12, rax
test rax, rax
jne 0x14009cc20
mov rcx, qword [str.P_a_]
lea rax, str.P_a_
cmp rcx, rax
je 0x14009cb91
test byte [rcx + 0x44], 2
je 0x14009cb91
cmp byte [rcx + 0x41], 2
jb 0x14009cb91
lea edx, [r12 + 0x3c]
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
call fcn.140199a3c
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14009cbe3
movzx r9d, byte [rbp - 0x79]
lea r8, [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
call fcn.14000a3f0
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x21]
sub r8, rdx
sar r8, 5
lea rcx, [rbp - 0x21]
call fcn.140007890
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14009cbfd
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.140007b00
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov rcx, rsi
call fcn.140005170
mov eax, 0xe
jmp 0x14009cd43
mov r15, r12
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbp - 0x19]
cmp rbx, rdi
je 0x14009cc66
cmp qword [rbx + 0x18], 8
jb 0x14009cc3c
mov r8, qword [rbx]
jmp 0x14009cc3f
mov r8, rbx
mov edx, r14d
mov rcx, r15
call fcn.1401a7d3c
mov rdx, qword [rbx + 0x10]
lea eax, [rdx + 1]
lea r15, [r15 + rax*2]
or eax, 0xffffffff
sub eax, edx
add r14d, eax
add rbx, 0x20
cmp rbx, rdi
jne 0x14009cc30
xor ebx, ebx
mov word [r15], bx
lea eax, [r13*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, dword [rbp - 9]
xor r8d, r8d
lea rdx, str.bootexecute
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, r12
call fcn.140199a3c
mov rcx, qword [rbp - 0x71]
call fcn.140199a3c
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14009ccf0
movzx r9d, byte [rbp - 0x79]
lea r8, [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
call fcn.14000a3f0
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x21]
sub r8, rdx
sar r8, 5
lea rcx, [rbp - 0x21]
call fcn.140007890
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rbx
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14009cd0a
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.140007b00
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], bx
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14009cd32
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.140007b00
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret