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

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
xor r15d, r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r15
mov rbx, r9
mov qword [rsp + 0x38], rax
mov rsi, r8
mov qword [rsp + 0x30], r15
mov r14, rdx
mov dword [rsp + 0x28], 0x20006
lea rdx, str.SoftwareClassesCLSID
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movsxd rdi, eax
test eax, eax
jne 0x14026399a
lea r8d, [r15 + 0x28]
mov rcx, rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x330], r15d
jne 0x14026382b
call sym.ErrorReportClient.exe_SfRegDeleteKey
jmp 0x14026399a
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movsxd rdi, eax
test eax, eax
jne 0x14026399a
test rbx, rbx
jne 0x14026386d
mov eax, r15d
jmp 0x14026387c
mov rcx, rbx
call fcn.14019efa0
lea eax, [rax*2 + 2]
mov rcx, qword [rsp + 0x60]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rdi, eax
test eax, eax
jne 0x14026399a
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r15
lea rdx, str.InProcServer32
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movsxd rdi, eax
test eax, eax
jne 0x14026399a
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
mov rcx, r14
call sym.ErrorReportClient.exe_SfGetModuleFileName
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0xc0]
mov rax, rbx
cmp word [rcx + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x140263912
mov rcx, qword [rsp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0xc0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rdi, eax
test eax, eax
jne 0x14026399a
lea rcx, str.Both
nop word [rax + rax]
cmp word [rcx + rbx*2 + 2], r15w
lea rbx, [rbx + 1]
jne 0x140263960
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.ThreadingModel
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rdi, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1402639aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1402639ba
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1402639e8
test rdi, rdi
je 0x1402639e2
cmp dword [rsp + 0x330], r15d
je 0x1402639e2
lea rdx, [rsp + 0x70]
call sym.ErrorReportClient.exe_SfRegDeleteKey
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jg 0x1402639f0
mov eax, edi
jmp 0x1402639f8
movzx eax, di
or eax, 0x80070000
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret