Function at 0x1400268e0
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], r12
mov rax, qword [0x14004b2a8]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov rcx, rdx
mov r14, r9
mov rsi, r8
call fcn.14002f3c0
test rax, rax
jne 0x14002692d
mov eax, 0x80004005
jmp 0x140026bb4
mov r8, qword [rbp + 0x78]
movabs r12, 0xffffffffffffff0
test r8, r8
je 0x1400269c7
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140026950
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400269c7
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14002697c
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rdi, [rsp + 0x50]
test rdi, rdi
je 0x1400269c7
xor ebx, ebx
mov byte [rdi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], eax
lea ecx, [rbx + 3]
mov qword [rsp + 0x20], rdi
lea r9d, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x1400269cb
xor ebx, ebx
mov edi, ebx
mov rcx, rsi
call fcn.14002aba0
lea rcx, [rbp + 8]
mov r15, rax
call fcn.14002f7a0
mov r8, r14
lea rcx, [rbp + 8]
mov rdx, r15
call fcn.1400305d0
test al, al
jne 0x1400269fc
mov ebx, 1
jmp 0x140026ba9
test r14, r14
je 0x140026a8a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140026a10
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140026a8a
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140026a3c
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rsi, [rsp + 0x50]
test rsi, rsi
je 0x140026a8a
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
mov r8, r14
mov byte [rsi], 0
mov qword [rsp + 0x20], rsi
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rsi, rbx
jmp 0x140026a8d
mov rsi, rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rsi
mov rcx, r15
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140026ba9
mov r8, qword [rbp + 0x70]
test r8, r8
je 0x140026b55
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140026ae0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140026b55
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140026b0c
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rsi, [rsp + 0x50]
test rsi, rsi
je 0x140026b55
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov byte [rsi], 0
mov qword [rsp + 0x20], rsi
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rsi, rbx
jmp 0x140026b58
mov rsi, rbx
test rdi, rdi
je 0x140026b7a
mov rax, rbx
mov ecx, 0x7fffffff
cmp byte [rax + rdi], 0
je 0x140026b75
inc rax
cmp rax, rcx
jb 0x140026b65
je 0x140026b7d
mov rcx, rax
jmp 0x140026b7d
mov rcx, rbx
lea eax, [rcx + 1]
mov r9d, 3
mov rcx, qword [rbp]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 8]
call fcn.14002f9a0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140039070
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
mov r12, qword [rbp + 0x68]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret