Function at 0x180005430
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2160
call fcn.180020bc0
sub rsp, rax
mov r13, r8
mov r12, rdx
mov r15, rcx
lea rdx, [rsp + 0x160]
call fcn.180005274
xor ebx, ebx
test eax, eax
js 0x18000595a
lea rdx, str.SMDB
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180005499
lea edi, [rbx + 8]
jmp 0x1800054f7
lea rdx, [0x18002f6cc]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800054b9
mov edi, 0x4008
jmp 0x1800054f7
lea rdx, [0x18002f6d0]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800054d7
lea edi, [rax + 0x13]
jmp 0x1800054f7
lea rdx, [0x18002f6d4]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180005955
lea edi, [rax + 0x11]
mov rdx, qword [r15]
movzx ecx, word [rdx]
sub ecx, 9
je 0x180005944
sub ecx, 1
je 0x180005944
sub ecx, 3
je 0x180005944
cmp ecx, 0x13
je 0x180005944
lea rdx, [rsp + 0x160]
mov rcx, r15
call fcn.180005274
test eax, eax
js 0x18000595a
cmp edi, 8
je 0x1800058e1
cmp edi, 0x11
je 0x180005707
cmp edi, 0x13
je 0x1800056aa
cmp edi, 0x4008
jne 0x18000592b
lea rcx, [rsp + 0x160]
call fcn.18000e4cc
add eax, 2
mov qword [rsp + 0x50], rbx
movsxd rcx, eax
test eax, eax
je 0x1800055ad
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000596d
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x1800055ad
lea rcx, [rsp + 0x50]
call fcn.1800081bc
mov rdi, qword [rsp + 0x50]
jmp 0x1800055b7
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x50], rdi
jmp 0x1800055d8
test rdi, rdi
je 0x180005688
lea rsi, [rsp + 0x160]
cmp word [rsp + 0x160], bx
je 0x180005632
mov r14d, 0x30
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x180005622
cmp word [rax], r14w
jne 0x180005622
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x180005629
mov word [rdi], cx
add rsi, 2
add rdi, 2
cmp word [rsi], bx
jne 0x1800055f9
and dword [rdi], 0
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x180005644
lea esi, [rdi + 0xd]
jmp 0x18000568d
mov r14d, ebx
mov rsi, rdi
mov rcx, rsi
call fcn.18000e4cc
inc eax
lea rsi, [rsi + rax*2]
lea r14d, [r14 + rax*2]
cmp eax, 1
jne 0x18000564a
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdi, qword [rsp + 0x50]
jmp 0x18000568d
mov esi, 0xe
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x18000591e
lea rcx, [rsp + 0x50]
call fcn.180008044
jmp 0x18000591e
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x1800056d0
jmp 0x18000595a
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x18000591e
lea rcx, [rsp + 0x160]
call fcn.18000e4cc
mov rsi, rax
mov dword [rsp + 0x38], eax
test al, 1
jne 0x1800057b1
cdq
sub eax, edx
sar eax, 1
movsxd r12, eax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x50], rbx
mov rdi, r12
mov qword [rsp + 0x40], r12
test eax, eax
je 0x180005771
xor edx, edx
or rax, 0xffffffffffffffff
div rdi
cmp rax, 1
jb 0x180005978
cmp rdi, 0x100
jbe 0x180005771
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1800081bc
mov rcx, qword [rsp + 0x50]
jmp 0x18000577b
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rcx
jmp 0x1800057a2
test rcx, rcx
jne 0x1800057bb
lea rcx, [rsp + 0x50]
call fcn.180008044
mov eax, 0x80004005
jmp 0x18000595a
mov r8, rdi
xor edx, edx
call fcn.18000a980
mov r10d, ebx
movsxd r11, esi
test esi, esi
jle 0x18000589b
mov r9, rbx
mov r14d, 0x30
mov r8d, r10d
shr r8, 1
add r8, qword [rsp + 0x50]
movzx edx, word [rsp + r9*2 + 0x160]
mov ecx, edx
cmp edx, 0x61
ja 0x180005855
je 0x180005872
cmp edx, 0x38
ja 0x18000582d
je 0x180005828
sub ecx, r14d
je 0x180005828
sub ecx, 1
je 0x180005828
sub ecx, 1
je 0x180005828
sub ecx, 1
je 0x180005828
sub ecx, 1
je 0x180005828
sub ecx, 1
je 0x180005828
sub ecx, 1
je 0x180005828
cmp ecx, 1
jne 0x18000586e
sub dl, r14b
jmp 0x180005875
sub ecx, 0x39
je 0x180005828
sub ecx, 8
je 0x180005850
sub ecx, 1
je 0x180005850
sub ecx, 1
je 0x180005850
sub ecx, 1
je 0x180005850
sub ecx, 1
je 0x180005850
cmp ecx, 1
jne 0x18000586e
sub dl, 0x37
jmp 0x180005875
sub ecx, 0x62
je 0x180005872
sub ecx, 1
je 0x180005872
sub ecx, 1
je 0x180005872
sub ecx, 1
je 0x180005872
cmp ecx, 1
je 0x180005872
mov dl, bl
jmp 0x180005875
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 0x1800057dc
mov dword [rsp + 0x28], r12d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x21a8]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x18000591e
lea rcx, [rsp + 0x50]
call fcn.180008044
jmp 0x18000591e
lea rcx, [rsp + 0x160]
call fcn.18000e4cc
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x18000592b
mov ecx, esi
call fcn.180004880
jmp 0x18000595a
mov rdx, qword [rsp + 0x21b8]
mov rcx, r15
call fcn.180005274
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x18000595a
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r15], rax
jmp 0x1800054f7
mov eax, 0x80020009
add rsp, 0x2160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.18000483c
nop
mov ecx, 0x80070216
call fcn.18000483c
int3