Function at 0x1800f5550
Capabilities:
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rdi
mov rax, qword [0x180222e50]
xor rax, rbp
mov qword [rbp + 0x38], rax
mov r15, r8
mov qword [rbp + 8], r8
mov r14, rcx
mov qword [rbp], rcx
test rdx, rdx
je 0x1800f55b2
or r9d, 0x20006
mov r8d, r9d
call fcn.1800f3c30
mov r13, rax
jmp 0x1800f55b5
mov r13, rcx
test r13, r13
je 0x1800f58e1
call fcn.18012a2e0
test eax, eax
je 0x1800f56fb
xor esi, esi
lea r15d, [rsi + 2]
mov edi, esi
mov rbx, qword [rbp + 0x90]
cmp dword [rbx + 8], esi
jle 0x1800f560a
nop
mov r8d, edi
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.1800f4d30
mov rcx, qword [rax]
mov eax, dword [rcx - 8]
lea r15d, [r15 + rax*2 + 2]
lea rcx, [rbp + 0x10]
call fcn.1800e8250
inc edi
cmp edi, dword [rbx + 8]
jl 0x1800f55e0
mov edi, r15d
mov ecx, r15d
call fcn.1800fb374
mov r14, rax
test rax, rax
je 0x1800f58e1
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.1800fb1e0
mov r12, r14
cmp dword [rbx + 8], esi
jle 0x1800f5698
nop word [rax + rax]
mov r8d, esi
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.1800f4d30
mov rcx, qword [rax]
mov rdx, r12
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx], ax
add rcx, 2
add rdx, 2
test ax, ax
jne 0x1800f5660
lea rcx, [rbp + 0x10]
call fcn.1800e8250
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
lea r12, [r12 + rcx*2]
inc esi
cmp esi, dword [rbx + 8]
jl 0x1800f5640
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1800f56dc
cmp r13, qword [rbp]
je 0x1800f56ca
mov rcx, r13
call fcn.1800f3c80
mov rcx, r14
call fcn.1800fb418
mov eax, 1
jmp 0x1800f58e3
mov rcx, r14
call fcn.1800fb418
cmp r13, qword [rbp]
je 0x1800f58e1
mov rcx, r13
call fcn.1800f3c80
jmp 0x1800f58e1
lea rcx, [rbp + 0x18]
call fcn.1800e9ac0
nop
xor esi, esi
mov ebx, esi
mov rdi, qword [rbp + 0x90]
cmp dword [rdi + 8], ebx
jle 0x1800f5767
nop word [rax + rax]
mov r8d, ebx
lea rdx, [rbp + 8]
mov rcx, rdi
call fcn.1800f4d30
nop
mov rdx, qword [rax]
lea rcx, [rbp]
call fcn.1800ed160
nop
lea rcx, [rbp + 8]
call fcn.1800e8250
lea r8, [rbp]
mov edx, dword [rbp + 0x20]
lea rcx, [rbp + 0x18]
call fcn.1800ee330
nop
lea rcx, [rbp]
call fcn.1800ea530
inc ebx
cmp ebx, dword [rdi + 8]
jl 0x1800f5720
mov ebx, 1
mov eax, dword [rbp + 0x20]
test eax, eax
jle 0x1800f5793
mov rdx, qword [rbp + 0x18]
mov edi, eax
nop dword [rax]
mov rax, qword [rdx]
mov ecx, dword [rax - 8]
lea ebx, [rbx + rcx + 1]
add rdx, 8
dec rdi
jne 0x1800f5780
mov edi, ebx
mov ecx, ebx
call fcn.1800fb374
mov r12, rax
test rax, rax
je 0x1800f58d8
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.1800fb1e0
mov r11, r12
mov r9d, esi
cmp dword [rbp + 0x20], esi
jle 0x1800f580f
mov r8, rsi
nop word [rax + rax]
mov rax, qword [rbp + 0x18]
mov rcx, qword [r8 + rax]
mov rdx, r11
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
inc rcx
inc rdx
test al, al
jne 0x1800f57e0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
mov eax, ecx
add r11, rax
inc r9d
add r8, 8
cmp r9d, dword [rbp + 0x20]
jl 0x1800f57d0
test r15, r15
je 0x1800f587a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [rax + rax + 2]
movsxd rax, edx
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1800f5837
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1800fdba0
sub rsp, rcx
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x1800f587a
mov byte [rdi], 0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rsi, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1800f58c2
cmp r13, r14
je 0x1800f58a9
mov rcx, r13
call fcn.1800f3c80
mov rcx, r12
call fcn.1800fb418
nop
lea rcx, [rbp + 0x18]
call fcn.1800ee0b0
mov eax, 1
jmp 0x1800f58e3
mov rcx, r12
call fcn.1800fb418
cmp r13, r14
je 0x1800f58d8
mov rcx, r13
call fcn.1800f3c80
nop
lea rcx, [rbp + 0x18]
call fcn.1800ee0b0
xor eax, eax
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.1800fbf40
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
lea rsp, [rbp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret