Function at 0x14009c6d0
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 [0x1402b8d08]
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, [0x1402b9860]
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14009c748
test byte [rcx + 0x44], 2
je 0x14009c748
cmp byte [rcx + 0x41], 4
jb 0x14009c748
mov edx, 0x36
lea r8, [0x14022f178]
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 0x14009c780
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 0x14009c84f
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14009c7f5
test byte [rcx + 0x44], 2
je 0x14009c7f5
cmp byte [rcx + 0x41], 2
jb 0x14009c7f5
mov edx, 0x37
mov r9d, eax
lea r8, [0x14022f178]
mov rcx, qword [rcx + 0x38]
call fcn.140025240
nop
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14009c80f
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 0x14009c838
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 0x14009cd33
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 0x14009c8ba
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14009c8ab
test byte [rcx + 0x44], 2
je 0x14009c8ab
cmp byte [rcx + 0x41], 2
jb 0x14009c8ab
mov edx, 0x38
mov r9d, eax
lea r8, [0x14022f178]
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 0x14009c7f5
mov ecx, dword [rbp - 0x51]
call fcn.1401b1944
mov rdi, rax
mov qword [rbp - 0x71], rax
test rax, rax
jne 0x14009c965
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14009c8fd
test byte [rcx + 0x44], 2
je 0x14009c8fd
cmp byte [rcx + 0x41], 2
jb 0x14009c8fd
lea edx, [rax + 0x39]
lea r8, [0x14022f178]
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 0x14009c922
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 0x14009c94b
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 0x14009cd33
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 0x14009ca0c
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14009c9c1
test byte [rcx + 0x44], 2
je 0x14009c9c1
cmp byte [rcx + 0x41], 2
jb 0x14009c9c1
mov edx, 0x3a
mov r9d, eax
lea r8, [0x14022f178]
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.1401b194c
nop
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x14009c9ee
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 0x14009c848
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov rbx, rdi
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14009ca4b
test byte [rcx + 0x44], 2
je 0x14009ca4b
cmp byte [rcx + 0x41], 5
jb 0x14009ca4b
mov edx, 0x3b
mov r9, rdi
lea r8, [0x14022f178]
mov rcx, qword [rcx + 0x38]
call fcn.1400328a0
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.140040070
mov r13d, dword [rbp - 0x31]
inc r13d
cmp word [rdi], 0
je 0x14009cb32
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 0x14009ca84
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 0x14009caa5
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.14009c390
cmp rax, 0xffffffffffffffff
jne 0x14009caff
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.140040070
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 0x14009cb1d
lea r8, [rdi + 1]
mov rdx, r15
lea rcx, [rbp - 1]
call fcn.140007b00
cmp word [rbx], 0
jne 0x14009ca70
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.1401b1944
mov r12, rax
test rax, rax
jne 0x14009cc10
mov rcx, qword [0x1402b9860]
lea rax, [0x1402b9860]
cmp rcx, rax
je 0x14009cb81
test byte [rcx + 0x44], 2
je 0x14009cb81
cmp byte [rcx + 0x41], 2
jb 0x14009cb81
lea edx, [r12 + 0x3c]
lea r8, [0x14022f178]
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.1401b194c
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14009cbd3
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 0x14009cbed
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 0x14009cd33
mov r15, r12
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbp - 0x19]
cmp rbx, rdi
je 0x14009cc56
cmp qword [rbx + 0x18], 8
jb 0x14009cc2c
mov r8, qword [rbx]
jmp 0x14009cc2f
mov r8, rbx
mov edx, r14d
mov rcx, r15
call fcn.1401bfc4c
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 0x14009cc20
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.1401b194c
mov rcx, qword [rbp - 0x71]
call fcn.1401b194c
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 0x14009cce0
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 0x14009ccfa
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 0x14009cd22
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.1401b1920
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret