Function at 0x18000cd00
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 0x18000cd4c
mov eax, 0x80070057
jmp 0x18000d110
cmp qword [rsp + 0x108], 0
je 0x18000cd61
mov eax, 0x80070057
jmp 0x18000d110
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.18000d130
nop
mov r8, qword [rax]
lea rdx, str._sParametersRamDisk
lea rcx, [rsp + 0x80]
call fcn.180004730
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 0x18000cdcc
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 0x18000ce20
mov dword [rsp + 0x78], ebp
mov rbp, qword [rsp + 0x60]
mov qword [rsp + 0x70], rbp
jmp 0x18000cee0
cmp eax, 2
jne 0x18000ceaf
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 0x18000ce82
mov dword [rsp + 0x78], ebp
mov rbp, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbp
jmp 0x18000cee0
test eax, eax
jle 0x18000ce8f
movzx edi, ax
or edi, 0x80070000
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000cea8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d110
test eax, eax
je 0x18000cee0
test eax, eax
jle 0x18000cec0
movzx edi, ax
or edi, 0x80070000
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000ced9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d110
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 0x18000cf58
test eax, eax
jle 0x18000cf29
movzx edi, ax
or edi, 0x80070000
test rbp, rbp
je 0x18000cf38
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 0x18000cf51
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d110
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 0x18000cf86
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 0x18000d006
test r12d, r12d
jle 0x18000cfd6
movzx r12d, r12w
or r12d, 0x80070000
test rbp, rbp
je 0x18000cfe5
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 0x18000cffe
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r12d
jmp 0x18000d110
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 0x18000d078
test eax, eax
jle 0x18000d049
movzx edi, ax
or edi, 0x80070000
test rbp, rbp
je 0x18000d058
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 0x18000d071
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d110
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 0x18000d0e7
test eax, eax
jle 0x18000d0bb
movzx edi, ax
or edi, 0x80070000
test rbp, rbp
je 0x18000d0ca
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 0x18000d0e3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
jmp 0x18000d110
test rbp, rbp
je 0x18000d0f6
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 0x18000d10e
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