Function at 0x140008634
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140149250
sub rsp, rax
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r12, r8
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x78], r9
lea rdx, [rsp + 0x190]
call fcn.140009bfc
xor ebx, ebx
test eax, eax
js 0x140008ad1
mov edi, ebx
lea rsi, str.SMDB
movsxd r14, edi
cmp r14, 4
jae 0x140008acc
mov rdx, qword [rsi]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x1400086d1
inc edi
add rsi, 0x10
jmp 0x1400086a1
add r14, r14
lea rax, str.SMDB
movzx edi, word [rax + r14*8 + 8]
mov rcx, r13
call fcn.14000af20
lea rdx, [rsp + 0x190]
mov rcx, r13
call fcn.140009bfc
test eax, eax
js 0x140008ad1
cmp di, 8
je 0x140008a8f
cmp di, 0x11
je 0x140008907
cmp di, 0x13
je 0x140008866
mov eax, 0x4008
cmp di, ax
jne 0x140008ab6
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140008739
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x80], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.140007fe4
mov rdi, rax
cmp qword [rsp + 0x80], rbx
je 0x140008783
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.1400906e0
cmp rdi, 0x100
jbe 0x1400087a6
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.140008afc
mov rdi, qword [rsp + 0x80]
jmp 0x1400087b6
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x1400087da
test rdi, rdi
je 0x14000884f
lea rsi, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x140008835
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x140008826
cmp word [rax], 0x30
jne 0x140008826
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rsi, rax
jmp 0x14000882c
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x1400087f1
and dword [rdi], 0
mov r8, qword [rsp + 0x80]
mov rdx, r12
mov rcx, r15
call fcn.14000ad04
mov edi, eax
jmp 0x140008854
mov edi, 0xe
lea rcx, [rsp + 0x80]
call fcn.140008120
jmp 0x140008aa4
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x1400088a4
lea rcx, [rsp + 0x40]
call fcn.140008050
mov eax, edi
jmp 0x140008ad1
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
cmp qword [r15], rbx
jne 0x1400088c9
lea r8, str.m_hKey___0
mov edx, 0x16d4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
lea rcx, [rsp + 0x40]
call fcn.140008050
jmp 0x140008aa4
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140008913
mov dword [rsp + 0x38], edi
test dil, 1
je 0x140008930
mov eax, 0x80004005
jmp 0x140008ad1
mov eax, edi
cdq
mov r14d, 2
idiv r14d
movsxd r14, eax
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x80], rbx
mov rsi, r14
mov qword [rsp + 0x70], r14
mov edx, 1
mov rcx, r14
call fcn.140007fe4
mov r13, rax
cmp qword [rsp + 0x80], rbx
je 0x140008986
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.1400906e0
cmp r13, 0x100
jbe 0x1400089a9
mov rdx, r13
lea rcx, [rsp + 0x80]
call fcn.140008afc
mov rcx, qword [rsp + 0x80]
jmp 0x1400089b9
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x1400089e7
test rcx, rcx
jne 0x1400089fe
lea rcx, [rsp + 0x80]
call fcn.140008120
jmp 0x140008926
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov esi, ebx
movsxd r13, edi
test edi, edi
jle 0x140008a51
mov rdi, rbx
movzx ecx, word [rsp + rdi*2 + 0x190]
call fcn.140008f90
movzx edx, al
mov ecx, esi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl edx, cl
mov ecx, esi
shr rcx, 1
mov rax, qword [rsp + 0x80]
or byte [rcx + rax], dl
inc esi
inc rdi
cmp rdi, r13
jl 0x140008a14
mov dword [rsp + 0x28], r14d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
lea rcx, [rsp + 0x80]
call fcn.140008120
jmp 0x140008aa4
lea r8, [rsp + 0x190]
mov rdx, r12
mov rcx, r15
call fcn.14000adcc
mov edi, eax
test edi, edi
je 0x140008ab1
mov ecx, edi
call fcn.140008cc0
jmp 0x140008ad1
mov r13, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x78]
mov rcx, r13
call fcn.140009bfc
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140008ad1
mov eax, 0x80020009
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.140007410
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret