Function at 0x1400267b0
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 [0x14004d2c0]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, r9
mov rsi, r8
mov rcx, rdx
call fcn.14002fb20
test rax, rax
jne 0x1400267fd
mov eax, 0x80004005
jmp 0x140026a8e
movabs r12, 0xffffffffffffff0
mov r8, qword [rbp + 0x78]
test r8, r8
jne 0x140026819
xor ebx, ebx
mov edi, ebx
jmp 0x14002689f
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x140026820
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x14002683c
xor ebx, ebx
mov edi, ebx
jmp 0x14002689f
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140026852
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039e40
sub rsp, rcx
lea rdi, [rsp + 0x50]
xor ebx, ebx
test rdi, rdi
je 0x14002689c
mov byte [rdi], bl
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
xor edx, edx
lea ecx, [rbx + 3]
lea r9d, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x14002689f
mov rdi, rbx
mov rcx, rsi
call fcn.14002ad60
mov r15, rax
lea rcx, [rbp + 8]
call fcn.14002fef0
mov r8, r14
mov rdx, r15
lea rcx, [rbp + 8]
call fcn.140030d30
test al, al
jne 0x1400268d0
mov ebx, 1
jmp 0x140026a83
test r14, r14
jne 0x1400268dd
mov rsi, rbx
jmp 0x140026966
mov rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400268e4
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x1400268ff
mov rsi, rbx
jmp 0x140026966
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140026915
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039e40
sub rsp, rcx
lea rsi, [rsp + 0x50]
test rsi, rsi
je 0x140026963
mov byte [rsi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 0xffffffff
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rsi, rbx
jmp 0x140026966
mov rsi, rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140026a83
test rdi, rdi
je 0x1400269c5
mov rax, rbx
mov ecx, 0x7fffffff
nop dword [rax]
cmp byte [rax + rdi], 0
je 0x1400269c0
inc rax
cmp rax, rcx
jb 0x1400269b0
je 0x1400269c8
mov rcx, rax
jmp 0x1400269c8
mov rcx, rbx
lea r14d, [rcx + 1]
mov r8, qword [rbp + 0x70]
test r8, r8
jne 0x1400269da
mov rsi, rbx
jmp 0x140026a59
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400269e1
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400269d5
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140026a0d
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039e40
sub rsp, rcx
lea rsi, [rsp + 0x50]
test rsi, rsi
je 0x140026a56
mov byte [rsi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
xor edx, edx
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rsi, rbx
jmp 0x140026a59
mov rsi, rbx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 8]
call fcn.1400300f0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140039850
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