Function at 0x140026640
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rdi
mov qword [rbp + 0x78], r12
mov rax, qword [0x14004b2a8]
xor rax, rbp
mov qword [rbp + 0x30], rax
mov rcx, rdx
mov r14, r9
mov rbx, r8
call fcn.14002f3c0
test rax, rax
jne 0x14002668d
mov eax, 0x80004005
jmp 0x1400268b5
mov rcx, rbx
call fcn.14002aba0
lea rcx, [rbp + 0x10]
mov r15, rax
call fcn.14002f7a0
mov r8, r14
lea rcx, [rbp + 0x10]
mov rdx, r15
call fcn.1400305d0
test al, al
jne 0x1400266be
mov eax, 1
jmp 0x1400268a8
mov rsi, qword [rbp + 0x88]
test rsi, rsi
jne 0x1400266d2
lea eax, [rsi + 0x57]
jmp 0x1400268a8
cmp word [rsi], 1
jne 0x1400268a3
cmp dword [rsi + 4], 1
jne 0x1400268a3
cmp dword [rsi + 0x1c], 0
jne 0x1400268a3
lea rdx, [rbp + 8]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x1400268a8
movabs r12, 0xffffffffffffff0
test r14, r14
je 0x14002679a
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x140026720
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x14002679a
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14002674c
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rdi, [rsp + 0x50]
test rdi, rdi
je 0x14002679a
xor ebx, ebx
mov byte [rdi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r8, r14
mov dword [rsp + 0x28], eax
xor edx, edx
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rdi
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x14002679e
xor ebx, ebx
mov edi, ebx
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, rdi
mov rcx, r15
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140026898
mov r8, qword [rbp + 0x80]
test r8, r8
je 0x140026865
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400267f0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140026865
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14002681c
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rdi, [rsp + 0x50]
test rdi, rdi
je 0x140026865
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov byte [rdi], 0
mov qword [rsp + 0x20], rdi
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140026868
mov rdi, rbx
mov eax, dword [rsi + 0x18]
mov r9d, 3
mov rcx, qword [rbp]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x1400268aa
mov eax, 0x80004005
mov ebx, eax
lea rcx, [rbp + 0x10]
call fcn.14002f9a0
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rbp
call fcn.140039070
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov rdi, qword [rbp + 0x70]
mov r12, qword [rbp + 0x78]
lea rsp, [rbp + 0x40]
pop r15
pop r14
pop rbp
ret