Function at 0x18000ede0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21b0
call fcn.1800a7270
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rsp + 0x21a0], rax
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x80], r9
lea rdx, [rsp + 0x1a0]
call fcn.18000ec4c
xor ebx, ebx
test eax, eax
js 0x18000f3a7
mov ecx, dword [0x1801f8908]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1801fc174], ecx
jle 0x18000ef08
lea rcx, [0x1801fc174]
call fcn.1800a6700
lea r12d, [rbx + 8]
mov r14d, 0x4008
lea r13d, [rbx + 0x13]
lea r15d, [rbx + 0x11]
cmp dword [0x1801fc174], 0xffffffff
jne 0x18000ef1e
lea rax, str.SMDB
mov qword [0x1801fc120], rax
mov word [0x1801fc128], r12w
lea rax, [0x180159ab8]
mov qword [0x1801fc130], rax
mov word [0x1801fc138], r14w
lea rax, [0x180159abc]
mov qword [0x1801fc140], rax
mov word [0x1801fc148], r13w
lea rax, [0x180159ac0]
mov qword [0x1801fc150], rax
mov word [0x1801fc158], r15w
lea rcx, [0x1801fc174]
call fcn.1800a66a0
jmp 0x18000ef1e
mov r12d, 8
mov r14d, 0x4008
lea r13d, [r12 + 0xb]
lea r15d, [r12 + 9]
mov edi, ebx
lea rsi, [0x1801fc120]
mov rdx, qword [rsi]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000ef51
inc edi
add rsi, 0x10
cmp edi, 4
jb 0x18000ef27
mov eax, 0x80020009
jmp 0x18000f3a7
movsxd rax, edi
add rax, rax
lea rcx, [0x1801fc120]
movzx edi, word [rcx + rax*8 + 8]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsi]
movzx eax, word [rcx]
cmp eax, 9
jb 0x18000ef93
cmp eax, 0x20
ja 0x18000ef93
movabs rdx, 0x1000027ff
bt rdx, rax
jae 0x18000ef93
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsi], rax
jmp 0x18000ef68
lea rdx, [rsp + 0x1a0]
mov rcx, rsi
call fcn.18000ec4c
test eax, eax
js 0x18000f3a7
movzx eax, di
cmp eax, r12d
je 0x18000f33b
cmp eax, r15d
je 0x18000f185
cmp eax, r13d
je 0x18000f145
cmp eax, r14d
jne 0x18000f390
lea rcx, [rsp + 0x1a0]
call fcn.1800d9868
add eax, 2
mov qword [rsp + 0x90], rbx
movsxd rcx, eax
test eax, eax
je 0x18000f02e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000f024
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x18000f02e
lea rcx, [rsp + 0x90]
call fcn.1800215c0
mov rdi, qword [rsp + 0x90]
jmp 0x18000f03e
mov ecx, 0x80070216
call fcn.18000e0a4
lea rdi, [rsp + 0x98]
mov qword [rsp + 0x90], rdi
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
jmp 0x18000f068
test rdi, rdi
je 0x18000f11d
lea rsi, [rsp + 0x1a0]
cmp word [rsp + 0x1a0], bx
je 0x18000f0c2
mov r14d, 0x30
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x18000f0b2
cmp word [rax], r14w
jne 0x18000f0b2
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x18000f0b9
mov word [rdi], cx
add rsi, 2
add rdi, 2
cmp word [rsi], bx
jne 0x18000f089
and dword [rdi], 0
mov rdi, qword [rsp + 0x90]
test rdi, rdi
jne 0x18000f0d7
lea esi, [rdi + 0xd]
jmp 0x18000f122
mov r14d, ebx
mov rsi, rdi
mov rcx, rsi
call fcn.1800d9868
inc eax
lea rsi, [rsi + rax*2]
lea r14d, [r14 + rax*2]
cmp eax, 1
jne 0x18000f0dd
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdi, qword [rsp + 0x90]
jmp 0x18000f122
mov esi, recv
lea rax, [rsp + 0x98]
cmp rdi, rax
je 0x18000f37e
lea rcx, [rsp + 0x90]
call fcn.18001fb94
jmp 0x18000f37e
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x18000f3a7
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov r9d, 4
jmp 0x18000f361
lea rcx, [rsp + 0x1a0]
call fcn.1800d9868
mov rdi, rax
mov dword [rsp + 0x38], eax
test al, 1
je 0x18000f1a7
mov eax, 0x80004005
jmp 0x18000f3a7
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x90], rbx
mov rcx, rsi
test eax, eax
je 0x18000f1fe
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x18000f1db
mov ecx, 0x80070216
call fcn.18000e0a4
cmp rcx, 0x100
jbe 0x18000f1fe
mov rdx, rcx
lea rcx, [rsp + 0x90]
call fcn.1800215c0
mov rcx, qword [rsp + 0x90]
jmp 0x18000f20e
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x90], rcx
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
jmp 0x18000f240
test rcx, rcx
jne 0x18000f268
lea rax, [rsp + 0x98]
test rax, rax
je 0x18000f19d
lea rcx, [rsp + 0x90]
call fcn.18001fb94
jmp 0x18000f19d
movsxd r8, esi
xor edx, edx
call fcn.1800cf2b0
mov r8d, ebx
movsxd r11, edi
mov r9, rbx
test edi, edi
jle 0x18000f2f2
mov r14d, 0x30
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rsp + 0x90]
movzx edx, word [rsp + r9*2 + 0x1a0]
mov eax, edx
cmp edx, r14d
jb 0x18000f2ce
cmp eax, 0x39
jbe 0x18000f2c9
cmp eax, 0x40
jbe 0x18000f2ce
cmp eax, 0x46
jbe 0x18000f2c4
add eax, 0xffffff9f
cmp eax, 5
ja 0x18000f2ce
sub dl, 0x57
jmp 0x18000f2d0
sub dl, 0x37
jmp 0x18000f2d0
sub dl, r14b
jmp 0x18000f2d0
mov dl, bl
mov ecx, r8d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r8d
inc r9
cmp r9, r11
jl 0x18000f285
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x98]
cmp qword [rsp + 0x90], rax
je 0x18000f37e
lea rcx, [rsp + 0x90]
call fcn.18001fb94
jmp 0x18000f37e
lea rcx, [rsp + 0x1a0]
call fcn.1800d9868
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x1a0]
mov r9d, 1
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x18000f38b
mov ecx, esi
call fcn.18000e178
jmp 0x18000f3a7
mov rsi, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x80]
mov rcx, rsi
call fcn.18000ec4c
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x21a0]
xor rcx, rsp
call fcn.1800a6240
add rsp, 0x21b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret