Function at 0x14007f1d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
cmp byte [0x14017ac66], 0
jne 0x14007f22d
xor edx, edx
lea ecx, [rdx + 6]
call fcn.140006530
mov byte [0x14017ac65], al
mov edx, 2
lea ecx, [rdx + 4]
call fcn.140006530
mov byte [0x14017ac66], 1
cmp byte [0x14017ac65], 0
je 0x14007f428
xor esi, esi
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x68]
call fcn.1400055e0
nop
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
call fcn.1400055e0
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x103
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rbx, [rsi - 1]
test eax, eax
je 0x14007f2bc
lea rcx, [rbp - 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x14007f286
dec eax
movsxd rcx, eax
test eax, eax
jle 0x14007f2bc
nop dword [rax]
cmp word [rbp + rcx*2 - 0x70], 0x5c
je 0x14007f2b4
dec eax
dec rcx
test rcx, rcx
jg 0x14007f2a0
jmp 0x14007f2bc
movsxd rcx, eax
mov word [rbp + rcx*2 - 0x70], si
lea r8, [rbp - 0x70]
lea rdx, str._sProcessLasso.exe
lea rcx, [rsp + 0x68]
call fcn.140005d70
lea r8, [rbp - 0x70]
lea rdx, str._sProcessGovernor.exe
lea rcx, [rsp + 0x60]
call fcn.140005d70
mov rdi, qword [rsp + 0x68]
mov dword [rsp + 0x70], 1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14007f369
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x78], 1
mov rdi, qword [rsp + 0x60]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14007f3ed
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007f40c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007f428
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400ff350
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret