Function at 0x180001300
Capabilities:
Persist via com hijack
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x280], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001588
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x3a0], rbx
call fcn.1800018c0
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp + 0x180]
mov ebx, 0x80
lea rcx, [0x1800033a0]
mov r8d, ebx
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r9, [rbp + 0x180]
mov qword [rsp + 0x20], rbx
mov r8d, ebx
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
lea r8, str.SoftwareclassesCLSID_
mov edx, ebx
lea rax, [rbp - 0x10]
sub r8, rax
lea rcx, [rbp - 0x10]
nop dword [rax]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x180001400
movzx eax, byte [r8 + rcx]
test al, al
je 0x180001400
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1800013e0
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov rcx, rbx
mov byte [rax], 0
lea rax, [rbp - 0x10]
cmp byte [rax], 0
je 0x180001423
inc rax
sub rcx, 1
jne 0x180001415
xor edi, edi
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rdi
je 0x18000147a
lea rcx, [rbp - 0x10]
lea rcx, [rcx + rax]
sub rbx, rax
je 0x18000146c
lea r8, [rsp + 0x70]
mov eax, 0x7ffffffe
sub r8, rcx
nop
test rax, rax
je 0x18000146c
movzx edx, byte [r8 + rcx]
test dl, dl
je 0x18000146c
mov byte [rcx], dl
dec rax
inc rcx
sub rbx, 1
jne 0x180001450
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], dil
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rbx, qword [rsp + 0x3a0]
test eax, eax
jne 0x180001588
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rdi
lea rdx, str.InprocServer32
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x18000157d
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x105
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x18002e338]
lea rdx, [rbp + 0x70]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x180001540
mov rcx, qword [rsp + 0x58]
inc eax
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp + 0x70]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1800015ad
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.180001ec0
mov rdi, qword [rsp + 0x3a8]
add rsp, 0x390
pop rbp
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x18000158d