Function at 0x140005738
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.140013c10
sub rsp, rax
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r14, r8
mov qword [rsp + 0x40], r8
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x78], r9
lea rdx, [rsp + 0x190]
call fcn.140006034
xor ebx, ebx
test eax, eax
js 0x140005c9a
lea rdx, str.SMDB
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400057ba
lea edi, [rbx + 8]
jmp 0x140005818
lea rdx, [0x14001fb44]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400057da
mov edi, 0x4008
jmp 0x140005818
lea rdx, [0x14001fb48]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400057f8
lea edi, [rax + 0x13]
jmp 0x140005818
lea rdx, [0x14001fb4c]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005c95
lea edi, [rax + 0x11]
mov rdx, qword [r12]
movzx ecx, word [rdx]
sub ecx, 9
je 0x140005c83
sub ecx, 1
je 0x140005c83
sub ecx, 3
je 0x140005c83
cmp ecx, 0x13
je 0x140005c83
lea rdx, [rsp + 0x190]
mov rcx, r12
call fcn.140006034
test eax, eax
js 0x140005c9a
cmp edi, 8
je 0x140005c23
cmp edi, 0x11
je 0x140005a26
cmp edi, 0x13
je 0x1400059e6
cmp edi, 0x4008
jne 0x140005c6d
lea rcx, [rsp + 0x190]
call fcn.14000beb8
add eax, 2
mov qword [rsp + 0x80], rbx
movsxd rcx, eax
test eax, eax
je 0x1400058d8
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140005cbd
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x1400058d8
lea rcx, [rsp + 0x80]
call fcn.14000504c
mov rdi, qword [rsp + 0x80]
jmp 0x1400058e8
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
mov r15, qword [rsp + 0x40]
jmp 0x140005908
test rdi, rdi
je 0x1400059be
lea rsi, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x140005962
mov r14d, 0x30
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x140005952
cmp word [rax], r14w
jne 0x140005952
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x140005959
mov word [rdi], cx
add rsi, 2
add rdi, 2
cmp word [rsi], bx
jne 0x140005929
and dword [rdi], 0
mov rdi, qword [rsp + 0x80]
test rdi, rdi
jne 0x140005977
lea esi, [rdi + 0xd]
jmp 0x1400059c3
mov r14d, ebx
mov rsi, rdi
mov rcx, rsi
call fcn.14000beb8
inc eax
lea rsi, [rsi + rax*2]
lea r14d, [r14 + rax*2]
cmp eax, 1
jne 0x14000597d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdi, qword [rsp + 0x80]
jmp 0x1400059c3
mov esi, 0xe
lea rax, [rsp + 0x88]
cmp rdi, rax
je 0x140005c60
lea rcx, [rsp + 0x80]
call fcn.14000502c
jmp 0x140005c60
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x140005c9a
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov r9d, 4
jmp 0x140005c49
lea rcx, [rsp + 0x190]
call fcn.14000beb8
mov rsi, rax
mov dword [rsp + 0x38], eax
test al, 1
jne 0x140005ae9
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x80], rbx
mov rdi, r15
mov qword [rsp + 0x70], r15
test eax, eax
je 0x140005a99
xor edx, edx
or rax, 0xffffffffffffffff
div rdi
cmp rax, 1
jb 0x140005cc8
cmp rdi, 0x100
jbe 0x140005a99
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.14000504c
mov rcx, qword [rsp + 0x80]
jmp 0x140005aa9
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x140005ad7
test rcx, rcx
jne 0x140005af3
lea rcx, [rsp + 0x80]
call fcn.14000502c
mov eax, 0x80004005
jmp 0x140005c9a
mov r8, rdi
xor edx, edx
call fcn.140008a70
mov r10d, ebx
movsxd r11, esi
test esi, esi
jle 0x140005bd6
mov r9, rbx
mov r14d, 0x30
mov r8d, r10d
shr r8, 1
add r8, qword [rsp + 0x80]
movzx edx, word [rsp + r9*2 + 0x190]
mov ecx, edx
cmp edx, 0x61
ja 0x140005b90
je 0x140005bad
cmp edx, 0x38
ja 0x140005b68
je 0x140005b63
sub ecx, r14d
je 0x140005b63
sub ecx, 1
je 0x140005b63
sub ecx, 1
je 0x140005b63
sub ecx, 1
je 0x140005b63
sub ecx, 1
je 0x140005b63
sub ecx, 1
je 0x140005b63
sub ecx, 1
je 0x140005b63
cmp ecx, 1
jne 0x140005ba9
sub dl, r14b
jmp 0x140005bb0
sub ecx, 0x39
je 0x140005b63
sub ecx, 8
je 0x140005b8b
sub ecx, 1
je 0x140005b8b
sub ecx, 1
je 0x140005b8b
sub ecx, 1
je 0x140005b8b
sub ecx, 1
je 0x140005b8b
cmp ecx, 1
jne 0x140005ba9
sub dl, 0x37
jmp 0x140005bb0
sub ecx, 0x62
je 0x140005bad
sub ecx, 1
je 0x140005bad
sub ecx, 1
je 0x140005bad
sub ecx, 1
je 0x140005bad
cmp ecx, 1
je 0x140005bad
mov dl, bl
jmp 0x140005bb0
sub dl, 0x57
mov ecx, r10d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r8], dl
inc r10d
inc r9
cmp r9, r11
jl 0x140005b14
mov dword [rsp + 0x28], r15d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x140005c60
lea rcx, [rsp + 0x80]
call fcn.14000502c
jmp 0x140005c60
lea rcx, [rsp + 0x190]
call fcn.14000beb8
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x190]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x140005c6d
mov ecx, esi
call fcn.140006024
jmp 0x140005c9a
mov rdx, qword [rsp + 0x78]
mov rcx, r12
call fcn.140006034
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140005c9a
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r12], rax
jmp 0x140005818
mov eax, 0x80020009
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.140007330
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140005cdc
nop
mov ecx, 0x80070216
call fcn.140005cdc
int3