Function at 0x140017dec
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2068]
mov eax, 0x2168
call fcn.140040840
sub rsp, rax
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x2050], rax
mov r13, rdx
mov qword [rsp + 0x30], r9
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x38], r8
mov rsi, r9
mov r15, r8
mov r12, rcx
call fcn.14001861c
xor ebx, ebx
test eax, eax
js 0x140018246
lea rdx, str.SMDB
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140017e62
lea edi, [rbx + 8]
jmp 0x140017eb4
lea rdx, [0x14005d414]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140017e7e
mov edi, 0x4008
jmp 0x140017eb4
lea rdx, [0x14005d418]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140017e98
lea edi, [rax + 0x13]
jmp 0x140017eb4
lea rdx, [0x14005d41c]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140018241
lea edi, [rax + 0x11]
mov r14d, 0xd
mov rcx, qword [r12]
cmp word [rcx], 9
jb 0x140017ee2
cmp word [rcx], 0xa
jbe 0x140017ed6
cmp word [rcx], r14w
je 0x140017ed6
cmp word [rcx], 0x20
jne 0x140017ee2
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r12], rax
jmp 0x140017eba
lea rdx, [rbp + 0x50]
mov rcx, r12
call fcn.14001861c
test eax, eax
js 0x140018246
cmp edi, 8
je 0x1400181db
cmp edi, 0x11
je 0x140018095
cmp edi, 0x13
je 0x140018041
cmp edi, 0x4008
jne 0x14001822d
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov rax, rsi
lea rcx, [rbp + 0x50]
inc rax
cmp word [rcx + rax*2], bx
jne 0x140017f2d
add eax, 2
movsxd rcx, eax
je 0x140017f6e
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 2
jb 0x140018274
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140017f6e
lea rcx, [rsp + 0x40]
call fcn.140011160
mov rdi, qword [rsp + 0x40]
jmp 0x140017f78
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x14001801e
lea r15, [rbp + 0x50]
cmp word [rbp + 0x50], bx
je 0x140017fc6
mov rcx, r15
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [r15]
cmp cx, 0x5c
jne 0x140017fb5
cmp word [rax], 0x30
jne 0x140017fb5
mov rcx, rax
mov word [rdi], bx
call qword [sym.imp.USER32.dll_CharNextW]
mov r15, rax
jmp 0x140017fbc
mov word [rdi], cx
add r15, 2
add rdi, 2
cmp word [r15], bx
jne 0x140017f8b
mov dword [rdi], ebx
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140018024
mov r9d, ebx
mov r8, rdi
mov rcx, rsi
inc rcx
cmp word [r8 + rcx*2], bx
jne 0x140017fdb
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140017fd8
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x28], r9d
lea r9d, [rcx + 6]
mov rcx, qword [r13]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x40]
mov r14d, eax
jmp 0x140018024
mov r14d, 0xe
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x140018219
lea rcx, [rsp + 0x40]
call fcn.14001109c
jmp 0x140018219
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x140018246
mov eax, dword [rsp + 0x38]
mov r9d, 4
mov rcx, qword [r13]
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov rdx, r15
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
jmp 0x14001821e
or rsi, 0xffffffffffffffff
lea rax, [rbp + 0x50]
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400180a0
test dil, 1
jne 0x14001810b
mov eax, edi
mov qword [rsp + 0x40], rbx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov r14, r15
je 0x1400180f2
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x140018269
cmp r15, 0x100
jbe 0x1400180f2
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140011160
mov rcx, qword [rsp + 0x40]
jmp 0x1400180fc
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rcx
test rcx, rcx
jne 0x140018115
lea rcx, [rsp + 0x40]
call fcn.14001109c
mov eax, 0x80004005
jmp 0x140018246
mov r8, r14
xor edx, edx
call sub.msvcrt.dll_memset
movsxd r11, edi
mov r9d, ebx
test edi, edi
jle 0x140018199
mov r8, rbx
mov eax, r9d
cdq
sub eax, edx
movzx edx, word [rbp + r8*2 + 0x50]
sar eax, 1
movsxd r10, eax
add r10, qword [rsp + 0x40]
cmp dx, 0x30
jb 0x140018175
cmp dx, 0x39
jbe 0x140018170
cmp dx, 0x40
jbe 0x140018175
cmp dx, 0x46
jbe 0x14001816b
cmp dx, 0x60
jbe 0x140018175
cmp dx, 0x66
ja 0x140018175
sub dl, 0x57
jmp 0x140018177
sub dl, 0x37
jmp 0x140018177
sub dl, 0x30
jmp 0x140018177
mov dl, bl
mov ecx, r9d
mov eax, 4
and ecx, 1
inc r9d
shl ecx, 2
inc r8
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
cmp r8, r11
jl 0x14001812c
mov rax, qword [rsp + 0x40]
mov r9d, 3
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [r13]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x140018219
lea rcx, [rsp + 0x40]
call fcn.14001109c
jmp 0x140018219
lea rax, [rbp + 0x50]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], bx
jne 0x1400181e3
mov rcx, qword [r13]
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp + 0x50]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
mov rsi, qword [rsp + 0x30]
test r14d, r14d
je 0x14001822d
mov ecx, r14d
call fcn.14001860c
jmp 0x140018246
mov rdx, rsi
mov rcx, r12
call fcn.14001861c
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140018246
mov eax, 0x80020009
mov rcx, qword [rbp + 0x2050]
xor rcx, rsp
call fcn.1400408d0
add rsp, 0x2168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.140002198
int3
mov ecx, 0x80070216
call fcn.140002198
int3