Function at 0x140006e60
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1178
call fcn.14000f1e0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov rax, qword [0x140017008]
xor rax, rbp
mov qword [rbp + 0x1130], rax
mov r13, rdx
mov qword [rbp + 0x10], r9
lea rdx, [rbp + 0x130]
mov qword [rbp], r8
mov r15, r8
mov r12, rcx
call fcn.140007918
xor edi, edi
test eax, eax
js 0x14000747b
lea rdx, str.SMDB
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, 0x4008
lea r14d, [rdi + 1]
test eax, eax
jne 0x140006ee0
mov eax, r14d
lea ebx, [rdi + 8]
jmp 0x140006f47
lea rdx, [0x140010be4]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140006eff
mov eax, r14d
mov ebx, esi
jmp 0x140006f47
lea rdx, [0x140010be8]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140006f21
mov eax, r14d
mov ebx, 0x13
jmp 0x140006f47
lea rdx, [0x140010bec]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140006f43
mov eax, r14d
mov ebx, 0x11
jmp 0x140006f47
mov eax, edi
mov ebx, edi
test eax, eax
jne 0x140006f55
mov eax, 0x80020009
jmp 0x14000747b
mov rdx, qword [r12]
movsx ecx, byte [rdx]
sub ecx, 9
je 0x140006f72
sub ecx, r14d
je 0x140006f72
sub ecx, 3
je 0x140006f72
mov eax, edi
cmp ecx, 0x13
jne 0x140006f75
mov eax, r14d
test eax, eax
je 0x140006f88
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r12], rax
jmp 0x140006f55
lea rdx, [rbp + 0x130]
mov rcx, r12
call fcn.140007918
test eax, eax
js 0x14000747b
cmp ebx, 8
je 0x14000741f
cmp ebx, 0x11
je 0x140007275
cmp ebx, 0x13
je 0x1400070ff
cmp ebx, esi
jne 0x140007468
or rsi, 0xffffffffffffffff
mov qword [rbp + 0x20], rdi
mov rax, rsi
lea rcx, [rbp + 0x130]
inc rax
cmp byte [rcx + rax], dil
jne 0x140006fd4
add eax, 2
movsxd rcx, eax
jne 0x140007003
mov rcx, rdi
cmp rcx, 0x100
jbe 0x140007016
mov rdx, rcx
lea rcx, [rbp + 0x20]
call fcn.1400065fc
mov rbx, qword [rbp + 0x20]
jmp 0x14000701e
xor edx, edx
mov rax, rsi
div rcx
cmp rax, r14
jb 0x1400074a9
jmp 0x140006fe8
lea rbx, [rbp + 0x28]
mov qword [rbp + 0x20], rbx
test rbx, rbx
je 0x1400070df
lea r14, [rbp + 0x130]
cmp byte [rbp + 0x130], dil
je 0x140007087
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [r14]
cmp cl, 0x5c
jne 0x14000705e
cmp byte [rax], 0x30
jne 0x14000705e
mov rcx, rax
mov byte [rbx], dil
call qword [sym.imp.USER32.dll_CharNextA]
mov r14, rax
jmp 0x14000707f
mov byte [rbx], cl
mov cl, byte [r14]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x14000707c
inc r14
inc rbx
mov al, byte [r14]
test al, al
je 0x140007087
mov byte [rbx], al
inc r14
inc rbx
cmp byte [r14], dil
jne 0x140007037
mov word [rbx], di
mov rbx, qword [rbp + 0x20]
test rbx, rbx
jne 0x140007098
lea esi, [rbx + 0xd]
jmp 0x1400070e4
mov r9d, edi
mov r8, rbx
mov rcx, rsi
inc rcx
cmp byte [r8 + rcx], dil
jne 0x1400070a1
inc ecx
mov eax, ecx
add r9d, ecx
add r8, rax
cmp ecx, 1
jne 0x14000709e
mov dword [rsp + 0x28], r9d
xor r8d, r8d
lea r9d, [rcx + 6]
mov qword [rsp + 0x20], rbx
mov rcx, qword [r13]
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rbp + 0x20]
mov esi, eax
jmp 0x1400070e4
mov esi, 0xe
lea rax, [rbp + 0x28]
cmp rbx, rax
je 0x14000745b
lea rcx, [rbp + 0x20]
call fcn.1400065b8
jmp 0x14000745b
or rsi, 0xffffffffffffffff
lea rcx, [rbp + 0x130]
mov rax, rsi
mov rbx, rdi
inc rax
cmp byte [rcx + rax], dil
jne 0x140007110
add eax, r14d
mov edx, 0xffffffff
movsxd rcx, eax
mov eax, 0x80000000
add rcx, rcx
add rax, rcx
cmp rax, rdx
ja 0x1400071de
movsxd r14, ecx
mov r15, r14
shr r15, 1
cmp ecx, 0x400
jg 0x14000717b
mov rcx, r14
call fcn.140006ddc
test al, al
je 0x14000717b
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x140007168
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000f1e0
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x1400071a4
mov rax, r14
not rax
cmp rax, 0x10
jb 0x1400074b4
lea rcx, [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400071da
mov qword [rax], rdi
lea r14, [rax + 0x10]
mov rbx, rax
test r14, r14
je 0x1400071da
xor edx, edx
mov dword [rsp + 0x28], r15d
mov r9d, esi
mov word [r14], di
lea r8, [rbp + 0x130]
mov qword [rsp + 0x20], r14
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r15, qword [rbp]
neg eax
sbb rcx, rcx
and rcx, r14
jmp 0x1400071e1
mov r15, qword [rbp]
mov rcx, rdi
test rcx, rcx
je 0x140007238
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
js 0x140007253
mov eax, dword [rbp + 8]
mov r9d, 4
mov rcx, qword [r13]
xor r8d, r8d
mov dword [rbp], eax
mov rdx, r15
lea rax, [rbp]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x14000726b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x14000722c
mov eax, 0x8007000e
jmp 0x14000747b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140007247
mov eax, esi
jmp 0x14000747b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x14000725f
jmp 0x14000745b
or rsi, 0xffffffffffffffff
lea rax, [rbp + 0x130]
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140007283
test r14b, bl
jne 0x1400072ec
mov eax, ebx
mov qword [rbp + 0x20], rdi
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov r14, r15
jne 0x1400072a9
mov rdx, rdi
jmp 0x1400072be
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x14000749e
mov rdx, r14
cmp rdx, 0x100
jbe 0x1400072d6
lea rcx, [rbp + 0x20]
call fcn.1400065fc
mov rcx, qword [rbp + 0x20]
jmp 0x1400072de
lea rcx, [rbp + 0x28]
mov qword [rbp + 0x20], rcx
test rcx, rcx
jne 0x1400072f6
lea rcx, [rbp + 0x20]
call fcn.1400065b8
mov eax, 0x80004005
jmp 0x14000747b
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movsxd rbx, ebx
mov r10d, edi
test rbx, rbx
jle 0x1400073e3
mov r11, rdi
movsx r9d, byte [rbp + r11 + 0x130]
mov ecx, r9d
cmp r9d, 0x61
jg 0x140007384
je 0x1400073a2
cmp ecx, 0x38
jg 0x14000735b
je 0x140007355
sub ecx, 0x30
je 0x140007355
sub ecx, 1
je 0x140007355
sub ecx, 1
je 0x140007355
sub ecx, 1
je 0x140007355
sub ecx, 1
je 0x140007355
sub ecx, 1
je 0x140007355
sub ecx, 1
je 0x140007355
cmp ecx, 1
jne 0x14000739d
sub r9b, 0x30
jmp 0x1400073a6
sub ecx, 0x39
je 0x140007355
sub ecx, 8
je 0x14000737e
sub ecx, 1
je 0x14000737e
sub ecx, 1
je 0x14000737e
sub ecx, 1
je 0x14000737e
sub ecx, 1
je 0x14000737e
cmp ecx, 1
jne 0x14000739d
sub r9b, 0x37
jmp 0x1400073a6
sub ecx, 0x62
je 0x1400073a2
sub ecx, 1
je 0x1400073a2
sub ecx, 1
je 0x1400073a2
sub ecx, 1
je 0x1400073a2
cmp ecx, 1
je 0x1400073a2
mov r9b, dil
jmp 0x1400073a6
sub r9b, 0x57
mov eax, r10d
test r10d, r10d
jns 0x1400073b2
lea eax, [r10 + 1]
mov rdx, qword [rbp + 0x20]
mov ecx, r10d
sar eax, 1
and ecx, 1
movsxd r8, eax
inc r10d
shl ecx, 2
mov eax, 4
sub eax, ecx
inc r11
mov cl, al
shl r9b, cl
or byte [r8 + rdx], r9b
cmp r11, rbx
jl 0x140007312
mov rax, qword [rbp + 0x20]
mov r9d, 3
mov rdx, qword [rbp]
xor r8d, r8d
mov rcx, qword [r13]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x20], rax
je 0x14000745b
lea rcx, [rbp + 0x20]
call fcn.1400065b8
jmp 0x14000745b
lea rax, [rbp + 0x130]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], dil
jne 0x14000742a
mov rcx, qword [r13]
lea rax, [rbp + 0x130]
add esi, r14d
mov r9d, r14d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x140007468
mov ecx, esi
call fcn.140007908
jmp 0x14000747b
mov rdx, qword [rbp + 0x10]
mov rcx, r12
call fcn.140007918
test eax, eax
cmovs edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x1130]
xor rcx, rbp
call fcn.14000e0a0
lea rsp, [rbp + 0x1148]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.1400074c0
int3
mov ecx, 0x80070216
call fcn.1400074c0
int3
mov ecx, 0x80070216
call fcn.1400074c0
int3