Function at 0x10007e894
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, [0x100003b78]
cmp rcx, r12
je 0x10007e8df
test byte [rcx + 0x1c], 1
je 0x10007e8df
cmp byte [rcx + 0x19], 4
jb 0x10007e8df
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, rbp
call fcn.10001c854
xor edi, edi
cmp rsi, rdi
jne 0x10007e8fc
lea r8, [0x100008738]
lea edx, [rdi + 0x50]
lea rcx, [0x100008750]
call fcn.10009a050
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 0x10007ee47
cmp rdi, rax
je 0x10007ee47
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 0x10007e9a9
test byte [rcx + 0x1c], 1
je 0x10007e9a9
cmp byte [rcx + 0x19], 4
jb 0x10007e9a9
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.10001d914
lea rax, [rsp + 0xa8]
mov edi, 2
lea rdx, [0x100008790]
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 0x10007ea22
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10007ea08
test byte [rcx + 0x1c], 1
je 0x10007ea08
cmp byte [rcx + 0x19], dil
jb 0x10007ea08
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xb]
lea r8, [0x100003b78]
call fcn.10001c854
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
lea r15, [0x1001653b8]
jmp 0x10007ee8c
mov r12d, ecx
cmp dword [rsi + 4], ecx
jbe 0x10007eb1c
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 0x10007ec0a
mov rax, qword [rsi + 0x10]
cmp dword [rax + rbp], 1
je 0x10007ea79
cmp dword [rax + rbp], edi
je 0x10007ea79
lea r8, [0x100008820]
lea rcx, [0x100008750]
mov edx, 0x82
call fcn.10009a050
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsp + 0x90]
lea rcx, [0x1000088c8]
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 0x10007ebcc
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, [0x1000088c8]
mov rdx, rbx
mov dword [rsp + 0x20], eax
call fcn.100043f10
mov ebx, eax
test eax, eax
js 0x10007eb87
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 0x10007ea31
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 0x10007ec30
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007eb7a
test byte [rcx + 0x1c], 1
je 0x10007eb7a
cmp byte [rcx + 0x19], dil
jb 0x10007eb7a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x11]
lea r8, [0x100003b78]
call fcn.10001c854
mov ebx, 0x8007000e
mov r14, rbp
jmp 0x10007ee8c
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007ee84
test byte [rcx + 0x1c], 1
je 0x10007ee84
cmp byte [rcx + 0x19], dil
jb 0x10007ee84
mov edx, 0x10
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b78]
call fcn.10001c854
jmp 0x10007ee84
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007ec00
test byte [rcx + 0x1c], 1
je 0x10007ec00
cmp byte [rcx + 0x19], dil
jb 0x10007ec00
mov edx, 0xf
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b78]
call fcn.10001c854
mov ebx, 0x8007000e
jmp 0x10007ee84
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007ec00
test byte [rcx + 0x1c], 1
je 0x10007ec00
cmp byte [rcx + 0x19], dil
jb 0x10007ec00
mov edx, 0xe
jmp 0x10007ebf0
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 0x10007ecce
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10007ec92
test byte [rcx + 0x1c], 1
je 0x10007ec92
cmp byte [rcx + 0x19], 4
jb 0x10007ec92
mov eax, dword [rbp]
mov r9, qword [r13]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b78]
mov edx, 0x12
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov edx, dword [rbp]
mov r8, qword [r13]
mov rcx, r12
inc rdx
call fcn.1000c23ac
test eax, eax
js 0x10007ed74
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 0x10007ec53
mov rbp, qword [rsp + 0xa0]
lea rax, [r14 + rbp - 2]
cmp r12, rax
je 0x10007ecf0
lea r8, [0x1000088e0]
lea rcx, [0x100008750]
mov edx, 0xbb
call fcn.10009a050
mov eax, dword [rsp + 0x90]
xor r13d, r13d
lea rdx, [0x100008948]
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 0x10007eda9
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007ed60
test byte [rcx + 0x1c], 1
je 0x10007ed60
cmp byte [rcx + 0x19], dil
jb 0x10007ed60
lea edx, [r13 + 0x14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b78]
call fcn.10001c854
movzx ebx, bp
or ebx, 0x80070000
cmp ebp, r13d
cmovle ebx, ebp
jmp 0x10007ee84
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007ee84
test byte [rcx + 0x1c], 1
je 0x10007ee84
cmp byte [rcx + 0x19], dil
jb 0x10007ee84
mov edx, 0x13
jmp 0x10007ebb7
mov eax, dword [rsi]
mov rcx, qword [rsp + 0xa8]
lea rdx, [0x100008980]
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 0x10007ee0d
cmp dword [rsi], edi
je 0x10007ee0d
cmp dword [rsi], 3
je 0x10007ee0d
lea r8, [0x1000089c0]
lea rcx, [0x100008750]
mov edx, 0xdb
call fcn.10009a050
cmp ebp, r13d
je 0x10007ee7d
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10007ed60
test byte [rcx + 0x1c], 1
je 0x10007ed60
cmp byte [rcx + 0x19], dil
jb 0x10007ed60
mov edx, 0x15
jmp 0x10007ed50
mov rcx, qword [0x1001653b8]
mov edi, 2
cmp rcx, r12
je 0x10007ee73
test byte [rcx + 0x1c], 1
je 0x10007ee73
cmp byte [rcx + 0x19], dil
jb 0x10007ee73
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
mov r8, rbp
call fcn.10001c854
mov ebx, 0x8007000e
jmp 0x10007ea16
lea r15, [0x1001653b8]
mov r14, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x38]
xor ebp, ebp
cmp r13, rbp
je 0x10007eec3
mov r12d, ebp
cmp dword [rsi + 4], ebp
jbe 0x10007eeba
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 0x10007eea3
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0xa8]
xor r13d, r13d
cmp rcx, r13
je 0x10007ef26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp eax, r13d
je 0x10007ef1e
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10007ef0f
test byte [rcx + 0x1c], 1
je 0x10007ef0f
cmp byte [rcx + 0x19], dil
jb 0x10007ef0f
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x16]
lea r8, [0x100003b78]
mov r9d, eax
call fcn.10001c878
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 0x10007ef6f
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10007ef9c
test byte [rcx + 0x1c], 1
je 0x10007ef76
cmp byte [rcx + 0x19], dil
jb 0x10007ef76
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b78]
mov edx, 0x17
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10007ef9c
test byte [rcx + 0x1c], 1
je 0x10007ef9c
cmp byte [rcx + 0x19], 4
jb 0x10007ef9c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b78]
mov edx, 0x18
call fcn.10001c854
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret