Function at 0x140094108
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 rdi, r8
mov r14, rdx
mov r15d, ecx
lea r13, [0x1400cf018]
mov eax, 5
mov rcx, qword [0x1400cf018]
cmp rcx, r13
je 0x14009417d
test byte [rcx + 0x1c], 1
je 0x14009417d
cmp byte [rcx + 0x19], al
jb 0x14009417d
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdx
mov r9d, r15d
mov rcx, qword [rcx + 0x10]
call fcn.140093420
xor r12d, r12d
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], r12
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r12
xor edx, edx
lea rcx, [rbp + 0x17]
call fcn.1400949f8
mov ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, r13
je 0x1400941d5
test byte [rcx + 0x1c], 2
je 0x1400941d5
cmp byte [rcx + 0x19], 4
jb 0x1400941d5
lea edx, [r12 + 0x2e]
mov r9d, eax
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
test ebx, ebx
jne 0x140094218
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x17]
call fcn.14008b904
mov ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, r13
je 0x140094218
test byte [rcx + 0x1c], 2
je 0x140094218
cmp byte [rcx + 0x19], 4
jb 0x140094218
mov edx, 0x2f
mov r9d, eax
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rdx, r14
lea rcx, [rbp - 9]
call fcn.140004b44
nop
lea rdx, str.ignored
lea rcx, [rbp - 0x21]
call fcn.140004b44
nop
lea rdx, str.ignored
lea rcx, [rbp - 0x29]
call fcn.140004b44
nop
or r13, 0xffffffffffffffff
test ebx, ebx
jne 0x1400942ff
test rdi, rdi
je 0x1400942aa
mov rax, r13
inc rax
cmp word [rdi + rax*2], r12w
jne 0x14009425b
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.140004f30
mov rcx, qword [0x1400cf018]
lea rdi, [0x1400cf018]
cmp rcx, rdi
je 0x1400942b1
test byte [rcx + 0x1c], 2
je 0x1400942b1
cmp byte [rcx + 0x19], 4
jb 0x1400942b1
mov edx, 0x30
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
jmp 0x1400942b1
lea rdi, [0x1400cf018]
test rsi, rsi
je 0x1400942ff
mov rax, r13
inc rax
cmp word [rsi + rax*2], r12w
jne 0x1400942b9
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.140004f30
mov rcx, qword [0x1400cf018]
cmp rcx, rdi
je 0x1400942ff
test byte [rcx + 0x1c], 2
je 0x1400942ff
cmp byte [rcx + 0x19], 4
jb 0x1400942ff
mov edx, 0x31
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
add rax, 0x18
mov qword [rbp - 0x31], rax
test ebx, ebx
jne 0x1400948a0
lea rcx, [rbp - 0x31]
call fcn.14008a79c
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x140094370
test byte [rcx + 0x1c], 2
je 0x140094370
cmp byte [rcx + 0x19], 4
jb 0x140094370
mov edx, 0x32
mov r9d, ebx
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, qword [0x1400cf018]
test ebx, ebx
js 0x1400948a7
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
add rax, 0x18
mov qword [rbp - 0x49], rax
mov rdi, r12
mov qword [rbp - 1], r12
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], r12
mov esi, r12d
mov eax, dword [rbp - 0x39]
test eax, eax
jle 0x140094864
mov r14, r12
test esi, esi
js 0x1400949d1
cmp esi, eax
jge 0x1400949d1
movsxd rcx, esi
mov rax, qword [rbp - 0x41]
lea rdx, [rax + rcx*8]
lea rcx, [rbp - 0x49]
call fcn.140004c84
mov r8d, 1
lea rdx, [0x1400ae210]
lea rcx, [rbp - 0x49]
call fcn.140004550
mov rdx, qword [rbp - 0x31]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x49]
call fcn.140004550
mov dword [rsp + 0x28], 0x2011f
mov r8, qword [rbp - 0x49]
mov rdx, qword [rbp + 0x17]
lea rcx, [rbp - 1]
call fcn.140016f68
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x140094455
test byte [rcx + 0x1c], 2
je 0x140094455
cmp byte [rcx + 0x19], 4
jb 0x140094455
mov edx, 0x33
mov r9d, ebx
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rdi, qword [rbp - 1]
test ebx, ebx
jne 0x14009466a
mov dword [rbp + 0x67], r15d
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]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x1400944cc
test byte [rcx + 0x1c], 2
je 0x1400944cc
cmp byte [rcx + 0x19], 4
jb 0x1400944cc
mov edx, 0x34
mov r9d, ebx
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
test ebx, ebx
jne 0x14009466a
mov rax, qword [rbp - 9]
test rax, rax
je 0x1400949dc
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1400944e4
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400b99a0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x140094556
test byte [rcx + 0x1c], 2
je 0x140094556
cmp byte [rcx + 0x19], 4
jb 0x140094556
mov edx, 0x35
mov r9d, ebx
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
test ebx, ebx
jne 0x14009466a
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x1400949dc
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14009456e
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400b99a8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x1400945e0
test byte [rcx + 0x1c], 2
je 0x1400945e0
cmp byte [rcx + 0x19], 4
jb 0x1400945e0
mov edx, 0x36
mov r9d, ebx
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
test ebx, ebx
jne 0x14009466a
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x1400949dc
mov rcx, r13
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1400945f8
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]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x14009466a
test byte [rcx + 0x1c], 2
je 0x14009466a
cmp byte [rcx + 0x19], 4
jb 0x14009466a
mov edx, 0x37
mov r9d, ebx
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
test rdi, rdi
je 0x140094685
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdi, r12
mov qword [rbp - 1], r12
test ebx, ebx
jne 0x140094853
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
add rax, 0x18
mov qword [rbp - 0x11], rax
cmp esi, dword [rbp - 0x39]
jge 0x1400949c6
mov r8, qword [rbp - 0x41]
mov r8, qword [r8 + r14]
lea rdx, str.Global_ls
lea rcx, [rbp - 0x11]
call fcn.14000912c
mov rbx, qword [rbp - 0x11]
mov r8, rbx
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14009473f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x140094746
test byte [rcx + 0x1c], 2
je 0x140094746
lea edx, [rdi + 2]
test r9d, r9d
lea eax, [rdi + 5]
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jb 0x140094746
lea edx, [rdi + 0x38]
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, qword [0x1400cf018]
mov qword [rbp - 0x19], rdi
lea r9, [0x1400cf018]
cmp rcx, r9
je 0x14009477a
test byte [rcx + 0x1c], 2
je 0x14009477a
cmp byte [rcx + 0x19], 4
jb 0x14009477a
mov edx, 0x39
mov r9, rdi
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.140003608
test rdi, rdi
je 0x1400947da
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [0x1400cf018]
lea rdx, [0x1400cf018]
cmp rcx, rdx
je 0x1400947c5
test byte [rcx + 0x1c], 2
je 0x1400947c5
cmp byte [rcx + 0x19], 4
jb 0x1400947c5
mov edx, 0x3a
mov r9d, eax
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbp - 0x19], r12
jmp 0x14009482c
cmp esi, dword [rbp - 0x39]
jge 0x1400949e7
mov rdx, qword [rbp - 0x41]
mov rdx, qword [rdx + r14]
lea rcx, [rbp + 0x17]
call fcn.14008be68
mov rcx, qword [0x1400cf018]
lea rdx, [0x1400cf018]
cmp rcx, rdx
je 0x14009482c
test byte [rcx + 0x1c], 2
je 0x14009482c
cmp byte [rcx + 0x19], 4
jb 0x14009482c
mov edx, 0x3b
mov r9d, eax
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14009484f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
mov rdi, qword [rbp - 1]
inc esi
add r14, 8
mov eax, dword [rbp - 0x39]
cmp esi, eax
jl 0x1400943b8
test rdi, rdi
je 0x140094879
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400948a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x1400948cf
test byte [rcx + 0x1c], 1
je 0x1400948cf
mov edx, 0x3c
lea r8, [0x1400b99d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400948f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14009491f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140094947
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14009496f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
nop
lea rcx, [rbp - 0x41]
call fcn.140014e50
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14009498f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400949a4
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, 0xc000008c
call fcn.14000504c
nop
mov ecx, 0xc000008c
call fcn.14000504c
int3
mov ecx, 0x80004005
call fcn.140005068
nop
mov ecx, 0xc000008c
call fcn.14000504c
int3