Function at 0x18000834c
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2190
call fcn.180078390
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x2180], rax
mov r15, r8
mov qword [rsp + 0x38], r8
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x60], r9
lea rdx, [rsp + 0x180]
call fcn.180008c68
xor ebx, ebx
test eax, eax
js 0x18000884c
lea rdx, str.SMDB
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800083d7
lea edi, [rbx + 8]
jmp 0x180008435
lea rdx, [0x18008a774]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800083f7
mov edi, 0x4008
jmp 0x180008435
lea rdx, [0x18008a778]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180008415
lea edi, [rax + 0x13]
jmp 0x180008435
lea rdx, [0x18008a77c]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180008847
lea edi, [rax + 0x11]
mov r14d, SafeArrayDestroy
mov rcx, qword [r12]
cmp word [rcx], 9
jb 0x180008463
cmp word [rcx], 0xa
jbe 0x180008457
cmp word [rcx], r14w
je 0x180008457
cmp word [rcx], 0x20
jne 0x180008463
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r12], rax
jmp 0x18000843b
lea rdx, [rsp + 0x180]
mov rcx, r12
call fcn.180008c68
test eax, eax
js 0x18000884c
cmp edi, 8
je 0x1800087dc
cmp edi, 0x11
je 0x180008650
cmp edi, 0x13
je 0x1800085f2
cmp edi, 0x4008
jne 0x180008831
lea rcx, [rsp + 0x180]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bx
jne 0x1800084b1
add eax, 2
mov qword [rsp + 0x70], rbx
movsxd rcx, eax
test eax, eax
je 0x1800084f4
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 2
jb 0x18000886f
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x1800084f4
lea rcx, [rsp + 0x70]
call fcn.180007be0
jmp 0x1800084fe
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18000851e
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1800085cd
lea r15, [rsp + 0x180]
cmp word [rsp + 0x180], bx
je 0x180008579
mov rcx, r15
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [r15]
cmp cx, 0x5c
jne 0x180008568
cmp word [rax], 0x30
jne 0x180008568
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov r15, rax
jmp 0x18000856f
mov word [rdi], cx
add r15, 2
add rdi, 2
cmp word [r15], bx
jne 0x18000853e
and dword [rdi], 0
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x1800085d3
mov r9d, ebx
mov r8, rdx
mov rcx, rsi
inc rcx
cmp word [r8 + rcx*2], bx
jne 0x18000858f
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x18000858c
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdx
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
jmp 0x1800085d3
mov r14d, reloc.WS2_32.dll_ntohl
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180008822
lea rcx, [rsp + 0x70]
call fcn.180007bbc
jmp 0x180008822
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x180]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x180008618
jmp 0x18000884c
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, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
jmp 0x180008822
lea rax, [rsp + 0x180]
or rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], bx
jne 0x18000865f
mov dword [rsp + 0x38], edi
test dil, 1
je 0x18000867c
mov eax, 0x80004005
jmp 0x18000884c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd r14, eax
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x70], rbx
mov rcx, r14
test eax, eax
jne 0x18000869c
mov rcx, rbx
jmp 0x1800086ae
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x18000887a
cmp rcx, 0x100
jbe 0x1800086c6
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.180007be0
jmp 0x1800086d0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1800086ec
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x180008715
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180008672
lea rcx, [rsp + 0x70]
call fcn.180007bbc
jmp 0x180008672
movsxd r8, r14d
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, ebx
movsxd r11, edi
test edi, edi
jle 0x18000879c
mov r8, rbx
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rsp + 0x70]
movzx edx, word [rsp + r8*2 + 0x180]
cmp dx, 0x30
jb 0x180008778
cmp dx, 0x39
jbe 0x180008773
cmp dx, 0x40
jbe 0x180008778
cmp dx, 0x46
jbe 0x18000876e
cmp dx, 0x60
jbe 0x180008778
cmp dx, 0x66
ja 0x180008778
sub dl, 0x57
jmp 0x18000877a
sub dl, 0x37
jmp 0x18000877a
sub dl, 0x30
jmp 0x18000877a
mov dl, bl
mov ecx, r9d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r9d
inc r8
cmp r8, r11
jl 0x18000872c
mov dword [rsp + 0x28], r14d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180008822
lea rcx, [rsp + 0x70]
call fcn.180007bbc
jmp 0x180008822
lea rax, [rsp + 0x180]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], bx
jne 0x1800087e8
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test r14d, r14d
je 0x180008831
mov ecx, r14d
call fcn.180008c58
jmp 0x18000884c
mov rdx, qword [rsp + 0x60]
mov rcx, r12
call fcn.180008c68
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x18000884c
mov eax, 0x80020009
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.1800782d0
add rsp, 0x2190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.18000a540
nop
mov ecx, 0x80070216
call fcn.18000a540
int3