Function at 0x10007e374
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
lea rbp, [0x100003bb8]
cmp rcx, r12
je 0x10007e3bf
test byte [rcx + 0x1c], 1
je 0x10007e3bf
cmp byte [rcx + 0x19], 4
jb 0x10007e3bf
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, rbp
call fcn.10001c7b8
xor edi, edi
cmp rsi, rdi
jne 0x10007e3dc
lea r8, [0x1000087b8]
lea edx, [rdi + 0x50]
lea rcx, [0x1000087d0]
call fcn.100099ad8
mov ecx, dword [rsi + 4]
mov ebx, edi
mov qword [rsp + 0xa8], rdi
shl rcx, 3
mov r14, rdi
mov qword [rsp + 0xa0], rdi
mov r15d, edi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [rsi + 4]
shl rcx, 2
mov r13, rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
mov qword [rsp + 0x30], rax
xor eax, eax
cmp r13, rax
je 0x10007e927
cmp rdi, rax
je 0x10007e927
mov r8d, dword [rsi + 4]
xor edx, edx
mov rcx, r13
shl r8, 3
call sub.msvcrt.dll_memset
mov r8d, dword [rsi + 4]
xor edx, edx
shl r8, 2
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10007e489
test byte [rcx + 0x1c], 1
je 0x10007e489
cmp byte [rcx + 0x19], 4
jb 0x10007e489
mov eax, dword [rsi + 4]
mov r9d, dword [rsi]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
lea rax, [rsp + 0xa8]
mov edi, 2
lea rdx, [0x100008810]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
mov ebp, eax
cmp eax, ecx
je 0x10007e502
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10007e4e8
test byte [rcx + 0x1c], 1
je 0x10007e4e8
cmp byte [rcx + 0x19], dil
jb 0x10007e4e8
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xb]
lea r8, [0x100003bb8]
call fcn.10001c7b8
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
lea r15, [0x1001653b8]
jmp 0x10007e96c
mov r12d, ecx
cmp dword [rsi + 4], ecx
jbe 0x10007e5fc
mov rbp, rcx
mov ecx, r12d
lea rdx, [rsp + 0x90]
shl rcx, 4
add rcx, qword [rsi + 8]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x10007e6ea
mov rax, qword [rsi + 0x10]
cmp dword [rax + rbp], 1
je 0x10007e559
cmp dword [rax + rbp], edi
je 0x10007e559
lea r8, [0x1000088a0]
lea rcx, [0x1000087d0]
mov edx, 0x82
call fcn.100099ad8
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsp + 0x90]
lea rcx, [0x100008948]
mov r8d, dword [rax + rbp]
call qword [sym.imp.msvcrt.dll__scwprintf]
mov r14d, eax
inc eax
movsxd rbx, eax
lea rcx, [rbx + rbx]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [r13], rax
test rax, rax
je 0x10007e6ac
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r11, qword [rsi + 0x10]
mov r9, qword [rsp + 0x90]
mov eax, dword [r11 + rbp]
mov rcx, qword [r13]
lea r8, [0x100008948]
mov rdx, rbx
mov dword [rsp + 0x20], eax
call fcn.100043ec0
mov ebx, eax
test eax, eax
js 0x10007e667
mov rax, qword [rsp + 0x30]
inc r12d
add r13, 8
mov dword [rax + rbp], r14d
add rbp, 4
lea r15d, [r15 + r14 + 1]
cmp r12d, dword [rsi + 4]
jb 0x10007e511
mov r13, qword [rsp + 0x38]
inc r15d
mov dword [rsp + 0x90], r15d
lea r14, [r15 + r15]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x10007e710
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007e65a
test byte [rcx + 0x1c], 1
je 0x10007e65a
cmp byte [rcx + 0x19], dil
jb 0x10007e65a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x11]
lea r8, [0x100003bb8]
call fcn.10001c7b8
mov ebx, 0x8007000e
mov r14, rbp
jmp 0x10007e96c
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007e964
test byte [rcx + 0x1c], 1
je 0x10007e964
cmp byte [rcx + 0x19], dil
jb 0x10007e964
mov edx, 0x10
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003bb8]
call fcn.10001c7b8
jmp 0x10007e964
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007e6e0
test byte [rcx + 0x1c], 1
je 0x10007e6e0
cmp byte [rcx + 0x19], dil
jb 0x10007e6e0
mov edx, 0xf
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003bb8]
call fcn.10001c7b8
mov ebx, 0x8007000e
jmp 0x10007e964
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007e6e0
test byte [rcx + 0x1c], 1
je 0x10007e6e0
cmp byte [rcx + 0x19], dil
jb 0x10007e6e0
mov edx, 0xe
jmp 0x10007e6d0
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor eax, eax
mov r12, rbp
mov r15d, eax
cmp dword [rsi + 4], eax
jbe 0x10007e7ae
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10007e772
test byte [rcx + 0x1c], 1
je 0x10007e772
cmp byte [rcx + 0x19], 4
jb 0x10007e772
mov eax, dword [rbp]
mov r9, qword [r13]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003bb8]
mov edx, 0x12
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov edx, dword [rbp]
mov r8, qword [r13]
mov rcx, r12
inc rdx
call fcn.100043e4c
test eax, eax
js 0x10007e854
mov eax, dword [rbp]
inc r15d
add r13, 8
inc eax
add rbp, 4
lea r12, [r12 + rax*2]
cmp r15d, dword [rsi + 4]
jb 0x10007e733
mov rbp, qword [rsp + 0xa0]
lea rax, [r14 + rbp - 2]
cmp r12, rax
je 0x10007e7d0
lea r8, [0x100008960]
lea rcx, [0x1000087d0]
mov edx, 0xbb
call fcn.100099ad8
mov eax, dword [rsp + 0x90]
xor r13d, r13d
lea rdx, [0x1000089c8]
mov word [r12], r13w
mov rcx, qword [rsp + 0xa8]
add eax, eax
mov dword [rsp + 0x28], eax
lea r9d, [r13 + 7]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
cmp eax, r13d
je 0x10007e889
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007e840
test byte [rcx + 0x1c], 1
je 0x10007e840
cmp byte [rcx + 0x19], dil
jb 0x10007e840
lea edx, [r13 + 0x14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003bb8]
call fcn.10001c7b8
movzx ebx, bp
or ebx, 0x80070000
cmp ebp, r13d
cmovle ebx, ebp
jmp 0x10007e964
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007e964
test byte [rcx + 0x1c], 1
je 0x10007e964
cmp byte [rcx + 0x19], dil
jb 0x10007e964
mov edx, 0x13
jmp 0x10007e697
mov eax, dword [rsi]
mov rcx, qword [rsp + 0xa8]
lea rdx, [0x100008a00]
mov dword [rsp + 0x98], eax
lea rax, [rsp + 0x98]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsi], 1
mov ebp, eax
je 0x10007e8ed
cmp dword [rsi], edi
je 0x10007e8ed
cmp dword [rsi], 3
je 0x10007e8ed
lea r8, [0x100008a40]
lea rcx, [0x1000087d0]
mov edx, 0xdb
call fcn.100099ad8
cmp ebp, r13d
je 0x10007e95d
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007e840
test byte [rcx + 0x1c], 1
je 0x10007e840
cmp byte [rcx + 0x19], dil
jb 0x10007e840
mov edx, 0x15
jmp 0x10007e830
mov rcx, qword [0x1001653b8]
mov edi, 2
cmp rcx, r12
je 0x10007e953
test byte [rcx + 0x1c], 1
je 0x10007e953
cmp byte [rcx + 0x19], dil
jb 0x10007e953
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
mov r8, rbp
call fcn.10001c7b8
mov ebx, 0x8007000e
jmp 0x10007e4f6
lea r15, [0x1001653b8]
mov r14, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x38]
xor ebp, ebp
cmp r13, rbp
je 0x10007e9a3
mov r12d, ebp
cmp dword [rsi + 4], ebp
jbe 0x10007e99a
mov rbp, r13
mov rcx, qword [rbp]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
inc r12d
add rbp, 8
cmp r12d, dword [rsi + 4]
jb 0x10007e983
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0xa8]
xor r13d, r13d
cmp rcx, r13
je 0x10007ea06
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp eax, r13d
je 0x10007e9fe
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10007e9ef
test byte [rcx + 0x1c], 1
je 0x10007e9ef
cmp byte [rcx + 0x19], dil
jb 0x10007e9ef
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x16]
lea r8, [0x100003bb8]
mov r9d, eax
call fcn.10001c7dc
movzx ebx, si
or ebx, 0x80070000
cmp esi, r13d
cmovle ebx, esi
mov qword [rsp + 0xa8], r13
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, r13d
jge 0x10007ea4f
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10007ea7c
test byte [rcx + 0x1c], 1
je 0x10007ea56
cmp byte [rcx + 0x19], dil
jb 0x10007ea56
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003bb8]
mov edx, 0x17
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10007ea7c
test byte [rcx + 0x1c], 1
je 0x10007ea7c
cmp byte [rcx + 0x19], 4
jb 0x10007ea7c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003bb8]
mov edx, 0x18
call fcn.10001c7b8
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret