Function at 0x1400843c0
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 [0x14036aa00]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, r9
mov rsi, r8
mov rcx, rdx
call fcn.14008d6e0
test rax, rax
jne 0x14008440d
mov eax, 0x80004005
jmp 0x14008469e
movabs r12, 0xffffffffffffff0
mov r8, qword [rbp + 0x78]
test r8, r8
jne 0x140084429
xor ebx, ebx
mov edi, ebx
jmp 0x1400844af
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x140084430
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x14008444c
xor ebx, ebx
mov edi, ebx
jmp 0x1400844af
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140084462
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402b4ee0
sub rsp, rcx
lea rdi, [rsp + 0x50]
xor ebx, ebx
test rdi, rdi
je 0x1400844ac
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 0x1400844af
mov rdi, rbx
mov rcx, rsi
call fcn.140088990
mov r15, rax
lea rcx, [rbp + 8]
call fcn.14008d8d0
mov r8, r14
mov rdx, r15
lea rcx, [rbp + 8]
call fcn.14008e710
test al, al
jne 0x1400844e0
mov ebx, 1
jmp 0x140084693
test r14, r14
jne 0x1400844ed
mov rsi, rbx
jmp 0x140084576
mov rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400844f4
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x14008450f
mov rsi, rbx
jmp 0x140084576
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140084525
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402b4ee0
sub rsp, rcx
lea rsi, [rsp + 0x50]
test rsi, rsi
je 0x140084573
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 0x140084576
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 0x140084693
test rdi, rdi
je 0x1400845d5
mov rax, rbx
mov ecx, 0x7fffffff
nop dword [rax]
cmp byte [rax + rdi], 0
je 0x1400845d0
inc rax
cmp rax, rcx
jb 0x1400845c0
je 0x1400845d8
mov rcx, rax
jmp 0x1400845d8
mov rcx, rbx
lea r14d, [rcx + 1]
mov r8, qword [rbp + 0x70]
test r8, r8
jne 0x1400845ea
mov rsi, rbx
jmp 0x140084669
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400845f1
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400845e5
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14008461d
mov rcx, r12
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402b4ee0
sub rsp, rcx
lea rsi, [rsp + 0x50]
test rsi, rsi
je 0x140084666
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 0x140084669
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.14008dad0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.1402b48e0
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