Function at 0x14004ea30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x1400e5010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r9
mov r15, r8
mov r13, rdx
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
xor ebx, ebx
mov qword [rbp + 0xf], rbx
mov rdi, qword [r9]
mov r14, qword [r9 + 8]
mov rdx, qword [rbp + 7]
cmp rdi, r14
je 0x14004eb3c
nop word [rax + rax]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14004ec4a
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004eaaa
mov rcx, qword [rdi]
lea rsi, [rcx + rax*2]
mov rbx, rdi
jb 0x14004eab6
mov rbx, qword [rdi]
cmp rbx, rsi
je 0x14004eaf3
nop dword [rax + rax]
cmp rdx, qword [rbp + 0xf]
je 0x14004eada
movzx eax, word [rbx]
mov word [rdx], ax
mov rdx, qword [rbp + 7]
add rdx, 2
mov qword [rbp + 7], rdx
jmp 0x14004eaea
mov r8, rbx
lea rcx, [rbp - 1]
call fcn.1400504e0
mov rdx, qword [rbp + 7]
add rbx, 2
cmp rbx, rsi
jne 0x14004eac0
xor ebx, ebx
mov word [rbp - 0x49], bx
cmp rdx, qword [rbp + 0xf]
je 0x14004eb10
mov word [rdx], bx
mov rdx, qword [rbp + 7]
add rdx, 2
mov qword [rbp + 7], rdx
jmp 0x14004eb21
lea r8, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.1400504e0
mov rdx, qword [rbp + 7]
add rdi, 0x20
cmp rdi, r14
jne 0x14004ea90
mov r14, qword [r12 + 8]
mov rdi, qword [r12]
cmp rdi, r14
jne 0x14004eb68
mov word [rbp - 0x49], bx
cmp rdx, qword [rbp + 0xf]
je 0x14004eb57
mov word [rdx], bx
mov rdx, qword [rbp + 7]
add rdx, 2
mov qword [rbp + 7], rdx
jmp 0x14004eb68
lea r8, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.1400504e0
mov rdx, qword [rbp + 7]
mov word [rbp - 0x49], bx
cmp rdx, qword [rbp + 0xf]
je 0x14004eb83
mov word [rdx], bx
mov rax, qword [rbp + 7]
add rax, 2
mov qword [rbp + 7], rax
jmp 0x14004eb94
lea r8, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.1400504e0
mov rax, qword [rbp + 7]
mov rcx, qword [rbp - 1]
sub rax, rcx
sar rax, 1
cmp rax, 0x7fffffff
ja 0x14004ec7f
lea r8d, [rax + rax]
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x14004ebbb
mov rdx, qword [r15]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rcx
mov r9d, 7
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14004eca0
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14004ec1d
mov rdx, qword [rbp + 0xf]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ec18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ec44
call fcn.140079480
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140079460
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140086b94
nop
lea rdx, str.Empty_REG_MULTI_SZ_entries_are_not_valid_in_Windows
lea rcx, [rbp - 0x41]
call fcn.14000a700
nop
xor r9d, r9d
mov r8, r15
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.14004d640
lea rdx, [0x1400e2cc8]
lea rcx, [rbp - 0x21]
call fcn.14007f918
nop
lea rdx, str.Buffer_too_large_for_RegSetValueExW
lea rcx, [rbp - 0x41]
call fcn.140005640
lea rdx, [0x1400e26d0]
lea rcx, [rbp - 0x41]
call fcn.14007f918
int3
lea rdx, str.RegSetValueExW_failed
lea rcx, [rbp - 0x21]
call fcn.14000a700
nop
mov r9d, ebx
mov r8, r15
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x41]
call fcn.14004d640
lea rdx, [0x1400e2cc8]
lea rcx, [rbp - 0x41]
call fcn.14007f918
int3