Function at 0x1400956a0
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 [0x1402adcf8]
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, [0x1402aebf0]
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x140095718
test byte [rcx + 0x44], 2
je 0x140095718
cmp byte [rcx + 0x41], 4
jb 0x140095718
mov edx, 0x36
lea r8, [0x140226098]
mov rcx, qword [rcx + 0x38]
call fcn.14001d350
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.14000c670
nop
mov rdx, qword [r12 + 0x28]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140095750
lea rcx, [rbp - 0x41]
call fcn.140015e90
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 0x14009581f
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x1400957c5
test byte [rcx + 0x44], 2
je 0x1400957c5
cmp byte [rcx + 0x41], 2
jb 0x1400957c5
mov edx, 0x37
mov r9d, eax
lea r8, [0x140226098]
mov rcx, qword [rcx + 0x38]
call fcn.14001f1d0
nop
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x1400957df
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.14000c430
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x140095808
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.14000c430
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov eax, ebx
jmp 0x140095d03
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 0x14009588a
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x14009587b
test byte [rcx + 0x44], 2
je 0x14009587b
cmp byte [rcx + 0x41], 2
jb 0x14009587b
mov edx, 0x38
mov r9d, eax
lea r8, [0x140226098]
mov rcx, qword [rcx + 0x38]
call fcn.14001f1d0
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400957c5
mov ecx, dword [rbp - 0x51]
call fcn.1401a8cd4
mov rdi, rax
mov qword [rbp - 0x71], rax
test rax, rax
jne 0x140095935
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x1400958cd
test byte [rcx + 0x44], 2
je 0x1400958cd
cmp byte [rcx + 0x41], 2
jb 0x1400958cd
lea edx, [rax + 0x39]
lea r8, [0x140226098]
mov rcx, qword [rcx + 0x38]
call fcn.14001d350
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 0x1400958f2
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.14000c430
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14009591b
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.14000c430
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov eax, 0xe
jmp 0x140095d03
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 0x1400959dc
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x140095991
test byte [rcx + 0x44], 2
je 0x140095991
cmp byte [rcx + 0x41], 2
jb 0x140095991
mov edx, 0x3a
mov r9d, eax
lea r8, [0x140226098]
mov rcx, qword [rcx + 0x38]
call fcn.14001f1d0
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
call fcn.1401a8cdc
nop
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x1400959be
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.14000c430
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov rcx, rsi
call fcn.140005c60
jmp 0x140095818
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov rbx, rdi
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x140095a1b
test byte [rcx + 0x44], 2
je 0x140095a1b
cmp byte [rcx + 0x41], 5
jb 0x140095a1b
mov edx, 0x3b
mov r9, rdi
lea r8, [0x140226098]
mov rcx, qword [rcx + 0x38]
call fcn.14002c9a0
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.14003a030
mov r13d, dword [rbp - 0x31]
inc r13d
cmp word [rdi], 0
je 0x140095b02
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 0x140095a54
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.140009360
nop
mov r9, qword [r12 + 0x28]
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], 0
jne 0x140095a75
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.140095360
cmp rax, 0xffffffffffffffff
jne 0x140095acf
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.14003a030
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 0x140095aed
lea r8, [rdi + 1]
mov rdx, r15
lea rcx, [rbp - 1]
call fcn.14000c430
cmp word [rbx], 0
jne 0x140095a40
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.1401a8cd4
mov r12, rax
test rax, rax
jne 0x140095be0
mov rcx, qword [0x1402aebf0]
lea rax, [0x1402aebf0]
cmp rcx, rax
je 0x140095b51
test byte [rcx + 0x44], 2
je 0x140095b51
cmp byte [rcx + 0x41], 2
jb 0x140095b51
lea edx, [r12 + 0x3c]
lea r8, [0x140226098]
mov rcx, qword [rcx + 0x38]
call fcn.14001d350
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
call fcn.1401a8cdc
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140095ba3
movzx r9d, byte [rbp - 0x79]
lea r8, [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
call fcn.14003ba00
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x21]
sub r8, rdx
sar r8, 5
lea rcx, [rbp - 0x21]
call fcn.1400390d0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x140095bbd
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.14000c430
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r15w
mov rcx, rsi
call fcn.140005c60
mov eax, 0xe
jmp 0x140095d03
mov r15, r12
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbp - 0x19]
cmp rbx, rdi
je 0x140095c26
cmp qword [rbx + 0x18], 8
jb 0x140095bfc
mov r8, qword [rbx]
jmp 0x140095bff
mov r8, rbx
mov edx, r14d
mov rcx, r15
call fcn.1401b6fcc
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 0x140095bf0
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.1401a8cdc
mov rcx, qword [rbp - 0x71]
call fcn.1401a8cdc
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 0x140095cb0
movzx r9d, byte [rbp - 0x79]
lea r8, [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
call fcn.14003ba00
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x21]
sub r8, rdx
sar r8, 5
lea rcx, [rbp - 0x21]
call fcn.1400390d0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rbx
mov r8, qword [rbp - 0x29]
cmp r8, 8
jb 0x140095cca
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.14000c430
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], bx
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x140095cf2
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.14000c430
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.1401a8cb0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret