Function at 0x14000cef0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0
jne 0x14000cf32
xor al, al
jmp 0x14000d1e6
call fcn.14000c9f0
mov rbx, rax
lea rcx, [rbp - 0x58]
call fcn.14000cb00
nop
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x60], r14d
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000d1d8
cmp qword [rsp + 0x50], r14
je 0x14000d1d8
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14001a690
lea rdx, str.long
lea rcx, str.string
call fcn.1400f366c
test eax, eax
je 0x14000d12f
lea rdx, [0x14014c514]
lea rcx, str.string
call fcn.1400f366c
test eax, eax
je 0x14000d12f
lea rdx, str.dword
lea rcx, str.string
call fcn.1400f366c
test eax, eax
je 0x14000d12f
lea rdx, str.long_long
lea rcx, str.string
call fcn.1400f366c
test eax, eax
je 0x14000d0ba
lea rdx, str.qword
lea rcx, str.string
call fcn.1400f366c
test eax, eax
je 0x14000d0ba
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r14w
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.14001a690
mov eax, dword [rbp - 0x68]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [r14 + 1]
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140008840
jmp 0x14000d1c7
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call fcn.1400ec680
lea rcx, [rbp - 0x30]
call fcn.14000e2e0
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14000d0e8
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.1400186f0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x14000d111
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.140010860
nop
lea rcx, [rbp - 0x30]
call fcn.14000dbc0
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x58]
mov r9d, DosDateTimeToVariantTime
jmp 0x14000d1a2
mov dword [rsp + 0x58], r14d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call fcn.1400ec680
lea rcx, [rbp - 0x30]
call fcn.14000e2e0
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14000d15d
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.1400186f0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x14000d186
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.140010a00
nop
lea rcx, [rbp - 0x30]
call fcn.14000dbc0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov r9d, 4
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
sete bl
lea rcx, [rsp + 0x68]
call fcn.140008840
jmp 0x14000d1da
xor bl, bl
lea rcx, [rbp - 0x58]
call fcn.140008840
movzx eax, bl
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret