Function at 0x7ff7a393d5e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xd10]
sub rsp, 0xe10
mov rax, qword [0x7ff7a4317500]
xor rax, rsp
mov qword [rbp + 0xd00], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rbp + 0xf0]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov esi, eax
test rbx, rbx
je 0x7ff7a393d639
cmp word [rbx], 0
mov r9, rbx
jne 0x7ff7a393d640
lea r9, [rbp + 0xf0]
lea r8, [0x7ff7a3a00170]
mov edx, 0x800
lea rcx, [rbp + 0x500]
call fcn.7ff7a393d980
mov r9, rdi
lea r8, [0x7ff7a3a00178]
mov edx, 0x80
lea rcx, [rsp + 0x70]
call fcn.7ff7a393d980
mov r9, rdi
lea r8, [0x7ff7a3a00190]
mov edx, 0x100
lea rcx, [rbp - 0x10]
call fcn.7ff7a393d980
xor r14d, r14d
lea r9, [rsp + 0x70]
lea r8, [0x7ff7a3a001c8]
mov word [rsp + 0x58], r14w
mov edx, 0x200
lea rcx, [rbp + 0x300]
call fcn.7ff7a393d980
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x300]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r14d
call qword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
je 0x7ff7a393d70c
lea ecx, [r14 + 2]
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff7a3a001f0]
call fcn.7ff7a393dc90
jmp 0x7ff7a393d953
lea rcx, [rbp - 0x10]
call qword [sym.imp.kernel32.dll_lstrlenW]
mov rbx, qword [rsp + 0x60]
mov r9d, 1
inc eax
mov qword [rsp + 0x50], r14
add eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor edx, edx
lea rax, [rbp - 0x10]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
test rcx, rcx
je 0x7ff7a393d75c
cmp rcx, rbx
je 0x7ff7a393d75c
call qword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
jns 0x7ff7a393d77a
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff7a3a00208]
call fcn.7ff7a393dc90
lea rcx, [rbp - 0x10]
call qword [sym.imp.kernel32.dll_lstrlenW]
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x50], r14
lea rdx, [0x7ff7a3a00228]
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
test rcx, rcx
je 0x7ff7a393d7d0
cmp rcx, rbx
je 0x7ff7a393d7d0
call qword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
jns 0x7ff7a393d7ee
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff7a3a00208]
call fcn.7ff7a393dc90
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r14
lea rdx, [0x7ff7a3a00248]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, rdi
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x50], r14
call qword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x7ff7a393d877
mov rcx, qword [rsp + 0x50]
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea r9d, [rbx + 1]
lea rax, [rbp + 0xf0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
test rcx, rcx
je 0x7ff7a393d877
cmp rcx, rdi
je 0x7ff7a393d877
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
jns 0x7ff7a393d895
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff7a3a00260]
call fcn.7ff7a393dc90
lea rcx, [rbp + 0x500]
call qword [sym.imp.kernel32.dll_lstrlenW]
mov rsi, qword [rsp + 0x60]
lea rdx, [0x7ff7a3a00278]
mov qword [rsp + 0x40], r14
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x50], r14
lea edi, [rax + 1]
mov rcx, rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x7ff7a393d92a
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + rdi]
mov dword [rsp + 0x28], eax
lea r9d, [rbx + 1]
lea rax, [rbp + 0x500]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
test rcx, rcx
je 0x7ff7a393d92a
cmp rcx, rsi
je 0x7ff7a393d92a
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
jns 0x7ff7a393d948
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff7a3a002a0]
call fcn.7ff7a393dc90
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xd00]
xor rcx, rsp
call fcn.7ff7a3937cf0
lea r11, [rsp + 0xe10]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret