Function at 0x14003fe40
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 - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rdx
mov qword [rbp - 0x41], rdx
mov r12, rcx
mov qword [rbp - 0x31], rdx
lea r14, [0x140226b10]
mov rcx, qword [0x140226b10]
cmp rcx, r14
je 0x14003feb8
test byte [rcx + 0x1c], 2
je 0x14003feb8
cmp byte [rcx + 0x19], 4
jb 0x14003feb8
mov edx, 0x37
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f000
xor r15d, r15d
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14000c4f0
nop
mov rdx, qword [r12 + 0x18]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003fef0
lea rcx, [rbp - 0x29]
call fcn.14000c600
lea rax, [rbp - 0x71]
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 0x14003ffbf
mov rcx, qword [0x140226b10]
cmp rcx, r14
je 0x14003ff65
test byte [rcx + 0x1c], 2
je 0x14003ff65
cmp byte [rcx + 0x19], 2
jb 0x14003ff65
mov edx, 0x38
mov r9d, eax
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f220
nop
mov r8, qword [rbp - 0x11]
cmp r8, 8
jb 0x14003ff7f
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.14000c3a0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14003ffa8
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.14000c3a0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov eax, ebx
jmp 0x1400404a3
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x4d]
xor r8d, r8d
lea rdx, str.bootexecute
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14004002a
mov rcx, qword [0x140226b10]
cmp rcx, r14
je 0x14004001b
test byte [rcx + 0x1c], 2
je 0x14004001b
cmp byte [rcx + 0x19], 2
jb 0x14004001b
mov edx, 0x39
mov r9d, eax
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f220
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14003ff65
mov ecx, dword [rbp - 0x51]
call fcn.1400eb43c
mov rdi, rax
mov qword [rbp - 0x49], rax
test rax, rax
jne 0x1400400d5
mov rcx, qword [0x140226b10]
cmp rcx, r14
je 0x14004006d
test byte [rcx + 0x1c], 2
je 0x14004006d
cmp byte [rcx + 0x19], 2
jb 0x14004006d
lea edx, [rax + 0x3a]
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f000
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov r8, qword [rbp - 0x11]
cmp r8, 8
jb 0x140040092
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.14000c3a0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x1400400bb
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.14000c3a0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov eax, 0xe
jmp 0x1400404a3
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x4d]
xor r8d, r8d
lea rdx, str.bootexecute
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14004017c
mov rcx, qword [0x140226b10]
cmp rcx, r14
je 0x140040131
test byte [rcx + 0x1c], 2
je 0x140040131
cmp byte [rcx + 0x19], 2
jb 0x140040131
mov edx, 0x3b
mov r9d, eax
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f220
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
call fcn.1400eb444
nop
mov r8, qword [rbp - 0x11]
cmp r8, 8
jb 0x14004015e
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.14000c3a0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r15w
mov rcx, rsi
call fcn.14000c0e0
jmp 0x14003ffb8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov rbx, rdi
mov rcx, qword [0x140226b10]
cmp rcx, r14
je 0x1400401bb
test byte [rcx + 0x1c], 2
je 0x1400401bb
cmp byte [rcx + 0x19], 5
jb 0x1400401bb
mov edx, 0x3c
mov r9, rdi
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f090
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.14003fa20
mov r13d, dword [rbp - 0x19]
inc r13d
cmp word [rdi], 0
je 0x1400402a2
xor esi, esi
nop dword [rax + rax]
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400401f4
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.14000c240
nop
mov r9, qword [r12 + 0x18]
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], 0
jne 0x140040215
lea rcx, [rbp - 9]
mov r15, qword [rbp - 9]
mov rdi, qword [rbp + 0xf]
cmp rdi, 8
cmovae rcx, r15
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov r14, qword [rbp + 7]
mov rdx, r14
call fcn.14003f880
cmp rax, 0xffffffffffffffff
jne 0x14004026f
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x69]
call fcn.14003fa20
mov eax, dword [rbp + 7]
inc eax
add r13d, eax
mov rdi, qword [rbp + 0xf]
mov r14, qword [rbp + 7]
mov r15, qword [rbp - 9]
lea rbx, [rbx + r14*2]
add rbx, 2
cmp rdi, 8
jb 0x14004028d
lea r8, [rdi + 1]
mov rdx, r15
lea rcx, [rbp - 9]
call fcn.14000c3a0
cmp word [rbx], 0
jne 0x1400401e0
mov rsi, qword [rbp - 0x41]
mov rdi, qword [rbp - 0x49]
xor r15d, r15d
lea r14d, [r13 + 1]
mov ecx, r14d
add rcx, rcx
call fcn.1400eb43c
mov r12, rax
test rax, rax
jne 0x140040380
mov rcx, qword [0x140226b10]
lea rax, [0x140226b10]
cmp rcx, rax
je 0x1400402f1
test byte [rcx + 0x1c], 2
je 0x1400402f1
cmp byte [rcx + 0x19], 2
jb 0x1400402f1
lea edx, [r12 + 0x3d]
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f000
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
call fcn.1400eb444
nop
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140040343
movzx r9d, byte [rbp - 0x79]
lea r8, [rbp - 0x69]
mov rdx, qword [rbp - 0x61]
call fcn.14003f7a0
mov r8, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x69]
sub r8, rdx
sar r8, 5
lea rcx, [rbp - 0x69]
call fcn.140040550
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov r8, qword [rbp - 0x11]
cmp r8, 8
jb 0x14004035d
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.14000c3a0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r15w
mov rcx, rsi
call fcn.14000c0e0
mov eax, 0xe
jmp 0x1400404a3
mov r15, r12
mov rdi, qword [rbp - 0x61]
mov rbx, qword [rbp - 0x69]
cmp rbx, rdi
je 0x1400403c6
cmp qword [rbx + 0x18], 8
jb 0x14004039c
mov r8, qword [rbx]
jmp 0x14004039f
mov r8, rbx
mov edx, r14d
mov rcx, r15
call fcn.140142e48
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 0x140040390
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 - 0x4d]
xor r8d, r8d
lea rdx, str.bootexecute
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, r12
call fcn.1400eb444
mov rcx, qword [rbp - 0x49]
call fcn.1400eb444
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140040450
movzx r9d, byte [rbp - 0x79]
lea r8, [rbp - 0x69]
mov rdx, qword [rbp - 0x61]
call fcn.14003f7a0
mov r8, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x69]
sub r8, rdx
sar r8, 5
lea rcx, [rbp - 0x69]
call fcn.140040550
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rbx
mov r8, qword [rbp - 0x11]
cmp r8, 8
jb 0x14004046a
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.14000c3a0
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], bx
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x140040492
inc r8
mov rdx, qword [rsi]
mov rcx, rsi
call fcn.14000c3a0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret