Function at 0x180006950
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa70
mov rax, qword [0x180065480]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov rsi, rcx
lea rcx, [rsp + 0x261]
xor edx, edx
mov r8d, 0x7ff
mov byte [rsp + 0x260], 0
call fcn.18002de40
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x200
call fcn.18002de40
xor edx, edx
cmp dword [0x18006bcc8], 6
mov rcx, rdx
lea rbx, [0x180000000]
jne 0x1800069e0
nop dword [rax + rax]
movzx eax, byte [rcx + rbx + 0x66d20]
inc rcx
mov byte [rsp + rcx + 0x5f], al
test al, al
jne 0x1800069c0
jmp 0x1800069f3
movzx eax, byte [rcx + rbx + 0x66d70]
inc rcx
mov byte [rsp + rcx + 0x5f], al
test al, al
jne 0x1800069e0
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edx
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test eax, eax
je 0x180006a9e
mov rcx, qword [rbx + 0x544b8]
mov rax, qword [rbx + 0x544d8]
lea rdx, [rsp + 0x260]
mov qword [rdx], rcx
mov rcx, qword [rbx + 0x544c0]
mov qword [rdx + 8], rcx
mov rcx, qword [rbx + 0x544c8]
mov qword [rdx + 0x10], rcx
mov rcx, qword [rbx + 0x544d0]
mov qword [rdx + 0x18], rcx
mov qword [rdx + 0x20], rax
movzx eax, byte [rbx + 0x544e0]
mov byte [rdx + 0x28], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x260]
mov r9d, edi
mov edx, 0x5a7
mov r8d, eax
call fcn.1800044f0
xor eax, eax
jmp 0x180006be6
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
lea r9d, [rax + 1]
xor r8d, r8d
not rcx
xor edx, edx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test eax, eax
je 0x180006b49
mov rcx, qword [rbx + 0x544e8]
mov rax, qword [rbx + 0x54508]
lea rdx, [rsp + 0x260]
mov qword [rdx], rcx
mov rcx, qword [rbx + 0x544f0]
mov qword [rdx + 8], rcx
mov rcx, qword [rbx + 0x544f8]
mov qword [rdx + 0x10], rcx
mov rcx, qword [rbx + 0x54500]
mov qword [rdx + 0x18], rcx
mov qword [rdx + 0x20], rax
movzx eax, byte [rbx + 0x54510]
mov byte [rdx + 0x28], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5af
lea rcx, [rsp + 0x260]
mov r9d, edi
mov r8d, eax
call fcn.1800044f0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x180006be6
mov rcx, qword [rsp + 0x50]
lea rax, str.Apartment
lea rdx, str.ThreadingModel
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test eax, eax
je 0x180006bd6
mov rcx, qword [rbx + 0x544e8]
mov rax, qword [rbx + 0x54508]
lea rdx, [rsp + 0x260]
mov qword [rdx], rcx
mov rcx, qword [rbx + 0x544f0]
mov qword [rdx + 8], rcx
mov rcx, qword [rbx + 0x544f8]
mov qword [rdx + 0x10], rcx
mov rcx, qword [rbx + 0x54500]
mov qword [rdx + 0x18], rcx
mov qword [rdx + 0x20], rax
movzx eax, byte [rbx + 0x54510]
mov byte [rdx + 0x28], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5b8
jmp 0x180006b24
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.18002bd00
lea r11, [rsp + 0xa70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret