Function at 0x1400c73ac
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov r12d, ecx
lea r15, [0x14014dd40]
mov eax, 5
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400c7421
test byte [rcx + 0x1c], 1
je 0x1400c7421
cmp byte [rcx + 0x19], al
jb 0x1400c7421
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdx
mov r9d, r12d
mov rcx, qword [rcx + 0x10]
call fcn.1400c66b4
xor r13d, r13d
mov qword [rbp + 0x17], r13
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x27], r13
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
xor edx, edx
lea rcx, [rbp + 0x17]
call fcn.1400c7cc4
mov edi, eax
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400c7478
test byte [rcx + 0x1c], 2
je 0x1400c7478
cmp byte [rcx + 0x19], 4
jb 0x1400c7478
lea edx, [r13 + 0x2e]
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
test edi, edi
jne 0x1400c74bb
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x17]
call fcn.1400bd880
mov edi, eax
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400c74bb
test byte [rcx + 0x1c], 2
je 0x1400c74bb
cmp byte [rcx + 0x19], 4
jb 0x1400c74bb
mov edx, 0x2f
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rdx, r14
lea rcx, [rbp - 9]
call fcn.140004d1c
nop
lea rdx, str.ignored
lea rcx, [rbp - 0x21]
call fcn.140004d1c
nop
lea rdx, str.ignored
lea rcx, [rbp - 0x31]
call fcn.140004d1c
nop
or r15, 0xffffffffffffffff
test edi, edi
jne 0x1400c75a2
test rbx, rbx
je 0x1400c754b
mov rax, r15
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1400c74fe
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.1400051bc
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c754b
test byte [rcx + 0x1c], 2
je 0x1400c754b
cmp byte [rcx + 0x19], 4
jb 0x1400c754b
mov edx, 0x30
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
test rsi, rsi
je 0x1400c75a2
mov rax, r15
inc rax
cmp word [rsi + rax*2], r13w
jne 0x1400c7553
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.1400051bc
mov rcx, qword [0x14014dd40]
lea rsi, [0x14014dd40]
cmp rcx, rsi
je 0x1400c75a9
test byte [rcx + 0x1c], 2
je 0x1400c75a9
cmp byte [rcx + 0x19], 4
jb 0x1400c75a9
mov edx, 0x31
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
jmp 0x1400c75a9
lea rsi, [0x14014dd40]
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x19], rax
test edi, edi
jne 0x1400c7b81
lea rcx, [rbp - 0x19]
call fcn.1400bc7b4
mov ebx, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c7616
test byte [rcx + 0x1c], 2
je 0x1400c7616
cmp byte [rcx + 0x19], 4
jb 0x1400c7616
lea edx, [rdi + 0x32]
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, qword [0x14014dd40]
mov eax, 0x54f
test ebx, ebx
cmovns eax, r13d
test eax, eax
jne 0x1400c7b88
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x49], rax
mov rdi, r13
mov qword [rbp - 1], r13
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], r13
mov r14d, r13d
mov eax, dword [rbp - 0x39]
test eax, eax
jle 0x1400c7b42
mov r15, r13
test r14d, r14d
js 0x1400c7b37
cmp r14d, eax
jge 0x1400c7b37
movsxd rcx, r14d
mov rax, qword [rbp - 0x41]
lea rdx, [rax + rcx*8]
lea rcx, [rbp - 0x49]
call fcn.140004e7c
mov r8d, 1
lea rdx, str._DB
lea rcx, [rbp - 0x49]
call fcn.1400046e8
mov rdx, qword [rbp - 0x19]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x49]
call fcn.1400046e8
mov dword [rsp + 0x28], 0x2011f
mov r8, qword [rbp - 0x49]
mov rdx, qword [rbp + 0x17]
lea rcx, [rbp - 1]
call fcn.14001cc38
mov ebx, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c7706
test byte [rcx + 0x1c], 2
je 0x1400c7706
cmp byte [rcx + 0x19], 4
jb 0x1400c7706
mov edx, 0x33
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rdi, qword [rbp - 1]
test ebx, ebx
jne 0x1400c7921
mov dword [rbp + 0x67], r12d
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
lea rdx, str.Reason
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c7770
test byte [rcx + 0x1c], 2
je 0x1400c7770
cmp byte [rcx + 0x19], 4
jb 0x1400c7770
mov edx, 0x34
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
test ebx, ebx
jne 0x1400c7921
mov ecx, r13d
mov rax, qword [rbp - 9]
test rax, rax
setne cl
test ecx, ecx
je 0x1400c7b10
or rsi, 0xffffffffffffffff
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400c7794
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140127638]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c7800
test byte [rcx + 0x1c], 2
je 0x1400c7800
cmp byte [rcx + 0x19], 4
jb 0x1400c7800
mov edx, 0x35
mov r9d, ebx
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
test ebx, ebx
jne 0x1400c791a
mov ecx, r13d
mov rax, qword [rbp - 0x21]
test rax, rax
setne cl
test ecx, ecx
je 0x1400c7b05
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400c7820
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140127640]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c788c
test byte [rcx + 0x1c], 2
je 0x1400c788c
cmp byte [rcx + 0x19], 4
jb 0x1400c788c
mov edx, 0x36
mov r9d, ebx
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
test ebx, ebx
jne 0x1400c791a
mov ecx, r13d
mov rax, qword [rbp - 0x31]
test rax, rax
setne cl
test ecx, ecx
je 0x1400c7afa
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400c78ac
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Scope
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [0x14014dd40]
lea rsi, [0x14014dd40]
cmp rcx, rsi
je 0x1400c7921
test byte [rcx + 0x1c], 2
je 0x1400c7921
cmp byte [rcx + 0x19], 4
jb 0x1400c7921
mov edx, 0x37
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400c7921
lea rsi, [0x14014dd40]
test rdi, rdi
je 0x1400c7936
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
mov qword [rbp - 1], r13
test ebx, ebx
jne 0x1400c7adf
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x11], rax
cmp r14d, dword [rbp - 0x39]
jge 0x1400c7b26
mov r8, qword [rbp - 0x41]
mov r8, qword [r8 + r15]
lea rdx, str.Global_ls
lea rcx, [rbp - 0x11]
call fcn.14000916c
mov rbx, qword [rbp - 0x11]
mov r8, rbx
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
test rax, rax
jne 0x1400c79e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c79e9
test byte [rcx + 0x1c], 2
je 0x1400c79e9
lea edx, [rdi + 2]
test eax, eax
lea eax, [rdi + 5]
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x1400c79e9
lea edx, [rdi + 0x38]
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, qword [0x14014dd40]
mov qword [rbp - 0x29], rdi
cmp rcx, rsi
je 0x1400c7a16
test byte [rcx + 0x1c], 2
je 0x1400c7a16
cmp byte [rcx + 0x19], 4
jb 0x1400c7a16
mov edx, 0x39
mov r9, rdi
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.140003710
test rdi, rdi
je 0x1400c7a63
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c7a54
test byte [rcx + 0x1c], 2
je 0x1400c7a54
cmp byte [rcx + 0x19], 4
jb 0x1400c7a54
mov edx, 0x3a
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x29], r13
jmp 0x1400c7aaf
cmp r14d, dword [rbp - 0x39]
jge 0x1400c7b1b
mov rdx, qword [rbp - 0x41]
mov rdx, qword [rdx + r15]
lea rcx, [rbp + 0x17]
call fcn.1400bddf4
mov rcx, qword [0x14014dd40]
cmp rcx, rsi
je 0x1400c7aaf
test byte [rcx + 0x1c], 2
je 0x1400c7aaf
cmp byte [rcx + 0x19], 4
jb 0x1400c7aaf
mov edx, 0x3b
mov r9d, eax
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
nop
lea rsi, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x1400c7adb
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 1]
inc r14d
add r15, 8
mov eax, dword [rbp - 0x39]
cmp r14d, eax
jge 0x1400c7b31
lea rsi, [0x14014dd40]
jmp 0x1400c766e
mov ecx, 0x80004005
call fcn.140005300
int3
mov ecx, 0x80004005
call fcn.140005300
int3
mov ecx, 0x80004005
call fcn.140005300
nop
mov ecx, 0xc000008c
call fcn.1400052e8
int3
mov ecx, 0xc000008c
call fcn.1400052e8
nop
or r15, 0xffffffffffffffff
jmp 0x1400c7b42
mov ecx, 0xc000008c
call fcn.1400052e8
nop
test rdi, rdi
je 0x1400c7b51
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rbp - 0x49]
mov eax, r15d
lock xadd dword [rsi - 8], eax
add eax, r15d
test eax, eax
jg 0x1400c7b81
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400c7bb0
test byte [rcx + 0x1c], 1
je 0x1400c7bb0
mov edx, 0x3c
lea r8, [0x140127600]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
nop
mov rsi, qword [rbp - 0x19]
mov eax, r15d
lock xadd dword [rsi - 8], eax
add eax, r15d
test eax, eax
jg 0x1400c7be1
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp - 0x31]
mov eax, r15d
lock xadd dword [rsi - 8], eax
add eax, r15d
test eax, eax
jg 0x1400c7c12
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp - 0x21]
mov eax, r15d
lock xadd dword [rsi - 8], eax
add eax, r15d
test eax, eax
jg 0x1400c7c43
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp - 9]
mov eax, r15d
lock xadd dword [rsi - 8], eax
add eax, r15d
test eax, eax
jg 0x1400c7c74
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
lea rcx, [rbp - 0x41]
call fcn.140019c20
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400c7c8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400c7c9d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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