Function at 0x14009b05c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 8], ecx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov eax, ecx
lea r15, section..data
mov edx, 5
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14009b0cb
test byte [rcx + 0x1c], 1
je 0x14009b0cb
cmp byte [rcx + 0x19], dl
jb 0x14009b0cb
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r14
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14009bb78
xor r13d, r13d
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x27], r13
mov qword [rbp + 0x2f], r13
mov qword [rbp - 9], r13
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], r13
xor edx, edx
lea rcx, [rbp + 0x1f]
call fcn.14009a738
mov ebx, eax
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14009b122
test byte [rcx + 0x1c], 2
je 0x14009b122
cmp byte [rcx + 0x19], 4
jb 0x14009b122
lea edx, [r13 + 0x2e]
mov r9d, eax
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
test ebx, ebx
jne 0x14009b165
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x1f]
call fcn.14009154c
mov ebx, eax
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14009b165
test byte [rcx + 0x1c], 2
je 0x14009b165
cmp byte [rcx + 0x19], 4
jb 0x14009b165
mov edx, 0x2f
mov r9d, eax
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.140005058
nop
lea rdx, str.ignored
lea rcx, [rbp - 0x39]
call fcn.140005058
nop
lea rdx, str.ignored
lea rcx, [rbp - 0x41]
call fcn.140005058
nop
or r14, 0xffffffffffffffff
test ebx, ebx
jne 0x14009b23c
test rdi, rdi
je 0x14009b1ee
mov rax, r14
inc rax
cmp word [rdi + rax*2], r13w
jne 0x14009b1a8
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140005cf4
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14009b1ee
test byte [rcx + 0x1c], 2
je 0x14009b1ee
cmp byte [rcx + 0x19], 4
jb 0x14009b1ee
mov edx, 0x30
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.1400062b0
test rsi, rsi
je 0x14009b23c
mov rax, r14
inc rax
cmp word [rsi + rax*2], r13w
jne 0x14009b1f6
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x41]
call fcn.140005cf4
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14009b23c
test byte [rcx + 0x1c], 2
je 0x14009b23c
cmp byte [rcx + 0x19], 4
jb 0x14009b23c
mov edx, 0x31
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.1400062b0
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rbp - 0x11], rax
test ebx, ebx
jne 0x14009b81b
lea rcx, [rbp - 0x11]
call fcn.140090ff8
mov ebx, eax
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14009b2b0
test byte [rcx + 0x1c], 2
je 0x14009b2b0
cmp byte [rcx + 0x19], 4
jb 0x14009b2b0
mov edx, 0x32
mov r9d, eax
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000637c
mov rcx, qword [section..data]
test ebx, ebx
js 0x14009b822
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rbp - 0x49], rax
mov r15, r13
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], r13
mov r12d, r13d
cmp dword [rbp - 0x21], r13d
jle 0x14009b7ce
mov r13, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
test r12d, r12d
js 0x14009b96d
cmp r12d, dword [rbp - 0x21]
jge 0x14009b96d
movsxd rcx, r12d
mov rax, qword [rbp - 0x29]
lea rdx, [rax + rcx*8]
lea rcx, [rbp - 0x49]
call fcn.1400052d4
mov r8d, 1
lea rdx, [0x1400b2160]
lea rcx, [rbp - 0x49]
call fcn.14000543c
mov rdx, qword [rbp - 0x11]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x49]
call fcn.14000543c
mov dword [rsp + 0x28], 0x2011f
mov r8, qword [rbp - 0x49]
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 7]
call fcn.14000d90c
mov r14d, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14009b3af
test byte [rcx + 0x1c], 2
je 0x14009b3af
cmp byte [rcx + 0x19], 4
jb 0x14009b3af
mov edx, 0x33
mov r9d, r14d
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
mov r15, qword [rbp + 7]
test r14d, r14d
jne 0x14009b5ce
mov eax, dword [rbp + 0x67]
mov dword [rbp - 0x19], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 4]
xor r8d, r8d
lea rdx, str.Reason
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14009b42a
test byte [rcx + 0x1c], 2
je 0x14009b42a
cmp byte [rcx + 0x19], 4
jb 0x14009b42a
mov edx, 0x34
mov r9d, r14d
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
test r14d, r14d
jne 0x14009b5ce
xor r14d, r14d
test rbx, rbx
je 0x14009b962
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x14009b443
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400bd8f0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14009b4b6
test byte [rcx + 0x1c], 2
je 0x14009b4b6
cmp byte [rcx + 0x19], 4
jb 0x14009b4b6
mov edx, 0x35
mov r9d, r14d
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
test r14d, r14d
jne 0x14009b5ce
xor r14d, r14d
test rdi, rdi
je 0x14009b962
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x14009b4cf
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400bd8f8]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14009b542
test byte [rcx + 0x1c], 2
je 0x14009b542
cmp byte [rcx + 0x19], 4
jb 0x14009b542
mov edx, 0x36
mov r9d, r14d
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
test r14d, r14d
jne 0x14009b5ce
xor r14d, r14d
test rsi, rsi
je 0x14009b962
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14009b55b
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.Scope
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14009b5ce
test byte [rcx + 0x1c], 2
je 0x14009b5ce
cmp byte [rcx + 0x19], 4
jb 0x14009b5ce
mov edx, 0x37
mov r9d, r14d
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
test r15, r15
je 0x14009b5e9
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor r15d, r15d
mov qword [rbp + 7], r15
test r14d, r14d
jne 0x14009b7b9
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rbp - 1], rax
mov r8, qword [r13]
lea rdx, str.Global_ls
lea rcx, [rbp - 1]
call fcn.140007774
mov rbx, qword [rbp - 1]
mov r8, rbx
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
nop dword [rax + rax]
mov rdi, rax
xor esi, esi
test rax, rax
jne 0x14009b6a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov rcx, qword [section..data]
lea r14, section..data
cmp rcx, r14
je 0x14009b6b2
test byte [rcx + 0x1c], 2
je 0x14009b6b2
lea edx, [rdi + 2]
test eax, eax
lea eax, [rdi + 5]
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jb 0x14009b6b2
lea edx, [rdi + 0x38]
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
jmp 0x14009b6ab
lea r14, section..data
mov rcx, qword [section..data]
mov qword [rbp - 9], rdi
cmp rcx, r14
je 0x14009b6df
test byte [rcx + 0x1c], 2
je 0x14009b6df
cmp byte [rcx + 0x19], 4
jb 0x14009b6df
mov edx, 0x39
mov r9, rdi
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.140006404
test rdi, rdi
je 0x14009b738
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009b723
test byte [rcx + 0x1c], 2
je 0x14009b723
cmp byte [rcx + 0x19], 4
jb 0x14009b723
mov edx, 0x3a
mov r9d, eax
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.1400063c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbp - 9], rsi
jmp 0x14009b776
mov rdx, qword [r13]
lea rcx, [rbp + 0x1f]
call fcn.140091164
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009b776
test byte [rcx + 0x1c], 2
je 0x14009b776
cmp byte [rcx + 0x19], 4
jb 0x14009b776
mov edx, 0x3b
mov r9d, eax
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
nop
lea rdx, [rbx - 0x18]
or r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14009b7a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
mov rbx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
mov r15, qword [rbp + 7]
jmp 0x14009b7bd
or r14, 0xffffffffffffffff
inc r12d
add r13, 8
cmp r12d, dword [rbp - 0x21]
jl 0x14009b30e
test r15, r15
je 0x14009b7e3
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14009b814
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
lea r15, section..data
mov rcx, qword [section..data]
cmp rcx, r15
je 0x14009b843
test byte [rcx + 0x1c], 1
je 0x14009b843
mov edx, 0x3c
lea r8, [0x1400bd928]
mov rcx, qword [rcx + 0x10]
call fcn.1400062b0
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14009b875
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14009b8a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14009b8d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14009b90b
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
lea rcx, [rbp - 0x29]
call fcn.140015550
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14009b92b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14009b940
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400055a0
int3
mov ecx, 0xc000008c
call fcn.140006108
int3