Function at 0x7ff754adb890
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xce0]
sub rsp, 0xde0
mov rbx, rdx
mov rdi, rcx
lea rdx, [rbp + 0xd0]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov esi, eax
test rbx, rbx
je 0x7ff754adb8ce
cmp word [rbx], 0
jne 0x7ff754adb8d5
lea rbx, [rbp + 0xd0]
mov r9, rbx
lea r8, [0x7ff754bf7dfc]
mov edx, 0x800
lea rcx, [rbp + 0x4e0]
call fcn.7ff754adb7c0
mov r9, rdi
lea r8, [0x7ff754bf7e08]
mov edx, 0x80
lea rcx, [rsp + 0x50]
call fcn.7ff754adb7c0
mov r9, rdi
lea r8, [0x7ff754bf7e20]
mov edx, 0x100
lea rcx, [rbp - 0x30]
call fcn.7ff754adb7c0
xor r14d, r14d
lea r9, [rsp + 0x50]
lea r8, [0x7ff754bf7e58]
mov word [rbp + 0xd18], r14w
mov edx, 0x200
lea rcx, [rbp + 0x2e0]
call fcn.7ff754adb7c0
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0xd20]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x2e0]
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 0x7ff754adb9b1
lea ecx, [r14 + 2]
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff754bf7e80]
call fcn.7ff754adb770
add rsp, 0xde0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_lstrlenW]
mov rcx, qword [rbp + 0xd20]
mov r9d, 1
inc eax
xor r8d, r8d
add eax, eax
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
jns 0x7ff754adba02
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff754bf7e98]
call fcn.7ff754adb770
lea rcx, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_lstrlenW]
mov rcx, qword [rbp + 0xd20]
lea rax, [rbp + 0xd18]
mov dword [rsp + 0x28], 2
lea rdx, [0x7ff754bf7eb8]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
jns 0x7ff754adba5b
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff754bf7e98]
call fcn.7ff754adb770
mov rdi, qword [rbp + 0xd20]
lea rax, [rbp + 0xd28]
mov qword [rsp + 0x40], r14
lea rdx, [0x7ff754bf7ed8]
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 [rbp + 0xd28], r14
call qword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x7ff754adbaee
mov rcx, qword [rbp + 0xd28]
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea r9d, [rbx + 1]
lea rax, [rbp + 0xd0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xd28]
mov ebx, eax
test rcx, rcx
je 0x7ff754adbaee
cmp rcx, rdi
je 0x7ff754adbaee
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
jns 0x7ff754adbb0c
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff754bf7ef0]
call fcn.7ff754adb770
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.kernel32.dll_lstrlenW]
mov rsi, qword [rbp + 0xd20]
lea rdx, [0x7ff754bf7f08]
mov qword [rsp + 0x40], r14
xor r9d, r9d
xor r8d, r8d
mov qword [rbp + 0xd28], r14
lea edi, [rax + 1]
mov rcx, rsi
lea rax, [rbp + 0xd28]
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 0x7ff754adbbab
mov rcx, qword [rbp + 0xd28]
lea eax, [rdi + rdi]
mov dword [rsp + 0x28], eax
lea r9d, [rbx + 1]
lea rax, [rbp + 0x4e0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xd28]
mov ebx, eax
test rcx, rcx
je 0x7ff754adbbab
cmp rcx, rsi
je 0x7ff754adbbab
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
jns 0x7ff754adbbc9
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x7ff754bf7f30]
call fcn.7ff754adb770
mov rcx, qword [rbp + 0xd20]
call qword [sym.imp.advapi32.dll_RegCloseKey]
add rsp, 0xde0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret