Function at 0x140002f5c
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140151e90
sub rsp, rax
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r12, r8
mov qword [rsp + 0x60], r8
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x70], r9
lea rdx, [rsp + 0x190]
call fcn.1400042cc
xor ebx, ebx
test eax, eax
js 0x1400034e5
mov edi, ebx
lea r14, str.SMDB
mov rsi, r14
mov rdx, qword [rsi]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140002ffc
inc edi
add rsi, 0x10
cmp edi, 4
jb 0x140002fcc
mov eax, 0x80020009
jmp 0x1400034e5
movsxd rax, edi
add rax, rax
movzx edi, word [r14 + rax*8 + 8]
mov rcx, qword [r13]
cmp word [rcx], 9
jb 0x140003036
cmp word [rcx], 0xa
jbe 0x140003024
cmp word [rcx], 0xd
je 0x140003024
cmp word [rcx], 0x20
jne 0x140003036
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov qword [r13], rax
jmp 0x140003008
lea rdx, [rsp + 0x190]
mov rcx, r13
call fcn.1400042cc
test eax, eax
js 0x1400034e5
cmp di, 8
je 0x14000345a
cmp di, 0x11
je 0x140003282
cmp di, 0x13
je 0x140003215
mov eax, 0x4008
cmp di, ax
jne 0x1400034d1
lea rcx, [rsp + 0x190]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140003089
add eax, 2
mov qword [rsp + 0x80], rbx
movsxd rcx, eax
test eax, eax
je 0x1400030da
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 2
jb 0x140003509
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x1400030da
lea rcx, [rsp + 0x80]
call fcn.14000354c
mov rdi, qword [rsp + 0x80]
jmp 0x1400030ea
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x140003109
test rdi, rdi
je 0x1400031ed
lea r14, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x14000316b
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
movzx ecx, word [r14]
cmp cx, 0x5c
jne 0x14000315a
cmp word [rax], 0x30
jne 0x14000315a
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov r14, rax
jmp 0x140003161
mov word [rdi], cx
add r14, 2
add rdi, 2
cmp word [r14], bx
jne 0x140003124
and dword [rdi], 0
mov rdi, qword [rsp + 0x80]
cmp qword [r15], rbx
jne 0x140003193
lea r8, str.m_hKey___0
mov edx, 0x16ed
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008ac24
test rdi, rdi
je 0x140003514
mov r9d, ebx
mov r8, rdi
mov rcx, rsi
inc rcx
cmp word [r8 + rcx*2], bx
jne 0x1400031a5
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x1400031a2
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
mov rdi, qword [rsp + 0x80]
jmp 0x1400031f2
mov esi, 0xe
lea rax, [rsp + 0x88]
cmp rdi, rax
je 0x1400034c4
lea rcx, [rsp + 0x80]
call fcn.140004030
jmp 0x1400034c4
mov dword [rsp + 0x30], ebx
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]
test eax, eax
js 0x1400034e5
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov rcx, qword [r15]
test rcx, rcx
jne 0x14000326a
lea r8, str.m_hKey___0
mov edx, 0x16d4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008ac24
mov rcx, qword [r15]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov r9d, 4
jmp 0x1400034ab
lea rax, [rsp + 0x190]
or rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140003291
mov dword [rsp + 0x38], edi
test dil, 1
jne 0x140003350
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd r12, eax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x80], rbx
mov r14, r12
mov qword [rsp + 0x68], r12
test eax, eax
je 0x140003300
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x140003537
cmp r14, 0x100
jbe 0x140003300
mov rdx, r14
lea rcx, [rsp + 0x80]
call fcn.14000354c
mov rcx, qword [rsp + 0x80]
jmp 0x140003310
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x14000333e
test rcx, rcx
jne 0x14000335a
lea rcx, [rsp + 0x80]
call fcn.140004030
mov eax, 0x80004005
jmp 0x1400034e5
mov r8, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov esi, ebx
movsxd r14, edi
test edi, edi
jle 0x140003408
mov rdi, rbx
movzx r9d, word [rsp + rdi*2 + 0x190]
cmp r9w, 0x30
jb 0x1400033b9
cmp r9w, 0x39
jbe 0x1400033b3
cmp r9w, 0x40
jbe 0x1400033b9
cmp r9w, 0x46
jbe 0x1400033ad
cmp r9w, 0x60
jbe 0x1400033b9
cmp r9w, 0x66
ja 0x1400033b9
sub r9b, 0x57
jmp 0x1400033d4
sub r9b, 0x37
jmp 0x1400033d4
sub r9b, 0x30
jmp 0x1400033d4
lea r8, [0x140157b84]
mov edx, 0x2f0
lea rcx, str.onecoreexternal_sdkinc_atlmfc_statreg.h
call fcn.14008ac24
mov r9b, bl
mov r8d, esi
shr r8, 1
mov rdx, qword [rsp + 0x80]
mov ecx, esi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r9b, cl
or byte [r8 + rdx], r9b
inc esi
inc rdi
cmp rdi, r14
jl 0x140003374
mov dword [rsp + 0x28], r12d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x1400034c4
lea rcx, [rsp + 0x80]
call fcn.140004030
jmp 0x1400034c4
mov rcx, qword [r15]
test rcx, rcx
jne 0x14000347d
lea r8, str.m_hKey___0
mov edx, 0x16e0
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008ac24
mov rcx, qword [r15]
lea rax, [rsp + 0x190]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], bx
jne 0x140003489
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x190]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
test esi, esi
je 0x1400034d1
mov ecx, esi
call fcn.1400036fc
jmp 0x1400034e5
mov rdx, qword [rsp + 0x70]
mov rcx, r13
call fcn.1400042cc
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.140001d90
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070057
call fcn.140003714
nop
lea r8, str.__atl_condVal
mov edx, 0x16ee
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008ac24
mov ecx, 0x80004005
call fcn.140003714
nop
mov ecx, 0x80070057
call fcn.140003714
int3