Function at 0x1800016d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x570
mov rax, qword [0x180019290]
xor rax, rsp
mov qword [rsp + 0x568], rax
lea rdx, [rsp + 0x188]
mov rcx, qword [rsp + 0x580]
call qword [sym.imp.ole32.dll_StringFromIID]
cmp qword [rsp + 0x188], 0
je 0x18000179f
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x188]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [rsp + 0x440]
mov ecx, 1
call qword [sym.imp.ole32.dll_CoGetMalloc]
mov rax, qword [rsp + 0x440]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x440]
call qword [rax + 0x28]
mov rax, qword [rsp + 0x440]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x440]
call qword [rax + 0x10]
lea rcx, [0x180012640]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x18001a598], rax
mov r8d, 0x104
lea rdx, [rsp + 0x190]
mov rcx, qword [0x18001a598]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x3c0], 0xffffffff80000000
lea rax, str.CLSID_38s
mov qword [rsp + 0x3c8], rax
mov qword [rsp + 0x3d0], 0
mov rax, qword [rsp + 0x588]
mov qword [rsp + 0x3d8], rax
mov qword [rsp + 0x3e0], 0xffffffff80000000
lea rax, [0x180012660]
mov qword [rsp + 0x3e8], rax
mov qword [rsp + 0x3f0], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x3f8], rax
mov qword [rsp + 0x400], 0xffffffff80000000
lea rax, str.CLSID_38sInprocServer32
mov qword [rsp + 0x408], rax
lea rax, str.ThreadingModel
mov qword [rsp + 0x410], rax
lea rax, str.Apartment
mov qword [rsp + 0x418], rax
mov qword [rsp + 0x420], 0
mov qword [rsp + 0x428], 0
mov qword [rsp + 0x430], 0
mov qword [rsp + 0x438], 0
mov dword [rsp + 0x60], 0
jmp 0x1800018bd
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
cmp qword [rsp + rax + 0x3c0], 0
je 0x180001a60
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
lea rcx, [rsp + 0x2a0]
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + rax + 0x3c8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x200
xor r9d, r9d
xor r8d, r8d
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1800027c0
mov dword [0x18001a58c], eax
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
lea rcx, [rsp + 0x3b0]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + rax + 0x3c0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cdqe
mov qword [rsp + 0x180], rax
cmp qword [rsp + 0x180], 0
jne 0x180001a57
mov byte [rsp + 0x450], 0
lea rax, [rsp + 0x451]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
lea r9, [rsp + 0x190]
mov r8, qword [rsp + rax + 0x3d8]
mov edx, 0x104
lea rcx, [rsp + 0x450]
call fcn.180002740
mov dword [0x18001a58c], eax
mov qword [rsp + 0x560], 0
lea r8, [rsp + 0x560]
mov edx, 0x104
lea rcx, [rsp + 0x450]
call fcn.180002a50
mov dword [0x18001a58c], eax
mov rax, qword [rsp + 0x560]
inc rax
movsxd rcx, dword [rsp + 0x60]
imul rcx, rcx, 0x20
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x450]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + rcx + 0x3d0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cdqe
mov qword [rsp + 0x180], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180001a5b
xor eax, eax
jmp 0x180001a65
jmp 0x1800018b3
mov eax, 1
mov rcx, qword [rsp + 0x568]
xor rcx, rsp
call fcn.180007fe0
add rsp, 0x570
pop rdi
ret