Function at 0x14003c430
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x2148
call fcn.140125900
sub rsp, rax
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1401df038]
xor rax, rsp
mov qword [rsp + 0x2140], rax
lea r15, [rsp + 0x140]
mov r8d, 0x2000
mov rcx, r15
mov dl, 0xaa
call fcn.1401288f0
mov rcx, rdi
mov rdx, r15
call fcn.1401631c0
test eax, eax
js 0x14003c545
lea rdx, str.SMDB
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14003c57b
lea rdx, [0x1401b9f28]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14003c574
lea rdx, [0x1401b9f2c]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14003c56d
lea rdx, [0x1401b9f30]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov r12d, 0x11
mov ebp, 0x80020009
test eax, eax
cmovne r12d, ecx
jne 0x14003c547
jmp 0x14003c580
cmp eax, 0x13
jne 0x14003c76f
lea r9, [rsp + 0x34]
mov dword [r9], 0xaaaaaaaa
lea rcx, [rsp + 0x140]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x14003c8a8
mov ebp, eax
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.140125960
mov eax, ebp
add rsp, 0x2148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12w, 0x13
jmp 0x14003c580
mov r12w, 0x4008
jmp 0x14003c580
mov r12w, 8
mov rax, qword [rdi]
movabs r15, 0x100002600
mov r13, qword [sym.imp.USER32.dll_CharNextW]
jmp 0x14003c890
lea r15, [rsp + 0x140]
mov rcx, rdi
mov rdx, r15
call fcn.1401631c0
test eax, eax
js 0x14003c545
movzx eax, r12w
cmp eax, 0x12
jg 0x14003c515
cmp eax, 0x11
jne 0x14003c714
lea rcx, [rsp + 0x140]
call fcn.1401476a4
mov r12, rax
mov ebp, 0x80004005
test r12b, 1
jne 0x14003c547
mov r13d, r12d
sar r13d, 1
lea r15, [rsp + 0x40]
mov r8d, 0x100
mov rcx, r15
mov dl, 0xaa
call fcn.1401288f0
mov qword [r15 - 8], 0
mov dword [rsp + 0x30], r13d
movsxd r13, r13d
cmp r13d, 0x101
jae 0x14003c8d4
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14003c65c
mov rcx, r15
xor edx, edx
mov r8, r13
call fcn.1401288f0
test r12d, r12d
jle 0x14003c662
mov eax, r12d
xor edx, edx
mov r8d, 0x3ff
mov r9d, 0x7e0000
movabs r10, 0x7e000000000000
xor r11d, r11d
jmp 0x14003c6e7
xor eax, eax
xor ebx, ebx
jmp 0x14003c690
mov rax, qword [rsp + 0x38]
mov rcx, qword [r14]
mov edx, dword [rsp + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
cmp rax, rcx
jne 0x14003c6a8
test r15, r15
je 0x14003c547
jmp 0x14003c748
lea rcx, [rsp + 0x38]
call fcn.1401634f0
jmp 0x14003c69a
add cl, 0xc9
jmp 0x14003c6bc
add cl, 0xd0
mov r12d, ecx
mov ecx, edx
not cl
and cl, 4
shl r12b, cl
mov rcx, qword [rsp + 0x38]
mov r13d, r11d
shr r13d, 1
or byte [rcx + r13], r12b
inc r11
add dl, 4
cmp rax, r11
je 0x14003c662
movzx ecx, word [rsp + r11*2 + 0x140]
xor r12d, r12d
lea r13d, [rcx - 0x30]
cmp r13d, 0x36
ja 0x14003c6bf
bt r8, r13
jb 0x14003c6b9
bt r9, r13
jb 0x14003c6b4
bt r10, r13
jae 0x14003c6bf
add cl, 0xa9
jmp 0x14003c6bc
cmp eax, 8
jne 0x14003c758
mov rcx, r15
call fcn.1401476a4
lea eax, [rax*2 + 2]
mov rcx, qword [r14]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x14003c758
mov ecx, ebx
call fcn.1401634a0
jmp 0x14003c545
mov rcx, rdi
mov rdx, rsi
call fcn.1401631c0
mov ebp, eax
sar ebp, 0x1f
and ebp, eax
jmp 0x14003c547
cmp eax, 0x4008
jne 0x14003c758
lea r12, [rsp + 0x140]
mov rcx, r12
call fcn.1401476a4
mov rbp, rax
lea r15, [rsp + 0x40]
mov r8d, 0x100
mov rcx, r15
mov dl, 0xaa
call fcn.1401288f0
mov qword [r15 - 8], 0
add ebp, 2
movsxd rdx, ebp
lea rbp, [rsp + 0x38]
mov rcx, rbp
call fcn.1401634b0
mov rbp, qword [rbp]
test rbp, rbp
jne 0x14003c7e1
mov ebx, SafeArrayDestroy
xor eax, eax
cmp rax, r15
je 0x14003c748
lea rcx, [rsp + 0x38]
call fcn.1401634f0
jmp 0x14003c748
cmp word [rsp + 0x140], 0
jne 0x14003c818
mov dword [rbp], 0
mov r13, qword [rsp + 0x38]
test r13, r13
jne 0x14003c840
mov ebx, SafeArrayDestroy
jmp 0x14003c7c7
mov word [rbp], cx
add r12, 2
add rbp, 2
cmp word [r12], 0
je 0x14003c7ec
mov rcx, r12
call r13
movzx ecx, word [r12]
cmp cx, 0x5c
jne 0x14003c804
cmp word [rax], 0x30
jne 0x14003c804
mov word [rbp], 0
mov rcx, rax
call r13
mov r12, rax
jmp 0x14003c80c
xor ebp, ebp
mov r12, r13
mov rcx, r12
call fcn.1401476a4
lea ecx, [rax + 1]
lea r12, [r12 + rcx*2]
lea rbp, [rbp + rcx*2]
test eax, eax
jne 0x14003c845
mov rcx, qword [r14]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r13
mov rdx, rbx
xor r8d, r8d
mov r9d, 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rax, qword [rsp + 0x38]
jmp 0x14003c7c9
mov rcx, rax
call r13
mov qword [rdi], rax
movzx ecx, word [rax]
cmp rcx, 0x20
ja 0x14003c599
bt r15, rcx
jb 0x14003c887
jmp 0x14003c599
mov eax, dword [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov dword [rdx], eax
mov rcx, qword [r14]
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x28], 4
mov rdx, rbx
xor r8d, r8d
mov r9d, 4
jmp 0x14003c740
lea r15, [rsp + 0x38]
mov rcx, r15
mov rdx, r13
call fcn.140163190
mov r15, qword [r15]
jmp 0x14003c622