Function at 0x18000ccf0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov word [rax + 0x20], r9w
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xb0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov r14d, r8d
mov r12d, edx
mov rbx, rcx
mov r13d, dword [rsp + 0x100]
cmp r13d, 1
jne 0x18000cd3c
mov eax, 0x80070057
jmp 0x18000d100
cmp qword [rsp + 0x108], 0
je 0x18000cd51
mov eax, 0x80070057
jmp 0x18000d100
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x88]
mov rcx, rbx
call fcn.18000d120
nop
mov r8, qword [rax]
lea rdx, str._sParametersRamDisk
lea rcx, [rsp + 0x80]
call fcn.180004720
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000cdbc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor ebp, ebp
mov qword [rsp + 0x70], rbp
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rbx, qword [rsp + 0x80]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x18000ce10
mov dword [rsp + 0x78], ebp
mov rbp, qword [rsp + 0x60]
mov qword [rsp + 0x70], rbp
jmp 0x18000ced0
cmp eax, 2
jne 0x18000ce9f
mov qword [rsp + 0x68], rbp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x18000ce72
mov dword [rsp + 0x78], ebp
mov rbp, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbp
jmp 0x18000ced0
test eax, eax
jle 0x18000ce7f
movzx edi, ax
or edi, 0x80070000
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000ce98
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d100
test eax, eax
je 0x18000ced0
test eax, eax
jle 0x18000ceb0
movzx edi, ax
or edi, 0x80070000
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000cec9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d100
mov dword [rsp + 0x100], r12d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Enable
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x18000cf48
test eax, eax
jle 0x18000cf19
movzx edi, ax
or edi, 0x80070000
test rbp, rbp
je 0x18000cf28
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000cf41
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d100
mov edx, 1
lea rcx, [rsp + 0xf8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rdi, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x18000cf76
mov ecx, 0x8007000e
call fcn.180001000
int3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.DriveLetter
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r12d, eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r12d, r12d
je 0x18000cff6
test r12d, r12d
jle 0x18000cfc6
movzx r12d, r12w
or r12d, 0x80070000
test rbp, rbp
je 0x18000cfd5
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000cfee
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r12d
jmp 0x18000d100
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Size
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x18000d068
test eax, eax
jle 0x18000d039
movzx edi, ax
or edi, 0x80070000
test rbp, rbp
je 0x18000d048
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000d061
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d100
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.WriteBack
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x18000d0d7
test eax, eax
jle 0x18000d0ab
movzx edi, ax
or edi, 0x80070000
test rbp, rbp
je 0x18000d0ba
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000d0d3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d100
test rbp, rbp
je 0x18000d0e6
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000d0fe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret