Function at 0x180013c64
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x5c8]
sub rsp, 0x6b0
mov rax, qword [0x18004b8d8]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
call fcn.18001a418
mov r13d, 0x104
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x58]
mov r8d, r13d
movups xmm0, xmmword [rax + 0x14]
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r9, [rbp + 0x180]
lea r8, str.CLSID_s
lea rcx, [rsp + 0x70]
mov edx, r13d
call fcn.180013b14
xor r12d, r12d
mov esi, eax
test eax, eax
js 0x180013eca
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
mov esi, 0x80004005
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180013eca
call fcn.18001a418
lea rdi, [0x18003d3a8]
cmp qword [rax + 0x30], r12
mov rcx, rdi
cmovne rcx, qword [rax + 0x30]
call fcn.18001e638
mov rbx, rax
add ebx, ebx
call fcn.18001a418
mov rcx, qword [rsp + 0x50]
cmp qword [rax + 0x30], r12
mov dword [rsp + 0x28], ebx
cmovne rdi, qword [rax + 0x30]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
lea edi, [r12 + 1]
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove esi, r12d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x180013eca
lea r9, [rbp + 0x180]
lea r8, str.CLSID_sInprocServer32
lea rcx, [rsp + 0x70]
mov edx, r13d
call fcn.180013b14
mov esi, eax
test eax, eax
js 0x180013eca
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, 0x80070000
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
js 0x180013eca
mov rcx, qword [0x1800501d0]
lea rdx, [rbp + 0x390]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180013e65
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, edi
add eax, eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x390]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
js 0x180013ebf
mov rax, qword [str.Apartment]
mov rcx, qword [rsp + 0x50]
lea rdx, str.ThreadingModel
mov qword [rsp + 0x58], rax
mov rax, qword [0x180040600]
mov r9d, edi
mov qword [rsp + 0x60], rax
mov eax, dword [0x180040608]
xor r8d, r8d
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], socket
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.18001bbd0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret