Function at 0x140001c50
Capabilities:
Create thread
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x1620]
mov eax, 0x1720
call fcn.140015980
sub rsp, rax
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x1610], rax
lea rcx, [0x14001f1e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140001cd6
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x140023de0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x140023dc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140023dc8], rax
cmp qword [0x140023de0], 0
je 0x1400023e7
cmp qword [0x140023dc0], 0
je 0x1400023e7
mov qword [rsp + 0x1730], rsi
mov qword [rsp + 0x1738], rdi
mov qword [rsp + 0x1740], r14
call fcn.140001690
call fcn.1400019a0
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x20]
call fcn.1400013d0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x58]
call qword [0x140023de0]
xor r14d, r14d
mov qword [rsp + 0x68], 0x30
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], r14
lea r9, [rbp - 0x48]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov edx, 0x80010000
mov qword [rsp + 0x20], r14
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140023dc0]
mov dword [0x140023de8], eax
test eax, eax
jns 0x140001dc2
mov qword [0x140023db0], r14
jmp 0x140001e35
mov rax, qword [rsp + 0x60]
mov qword [0x140023db0], rax
cmp rax, 0xffffffffffffffff
jne 0x140001e35
lea rcx, str.____Failed_to_create_C:Config.msi_directory._Trying_to_delete_it._n
call fcn.140001430
xor ecx, ecx
call fcn.140002410
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x20]
call fcn.1400013d0
mov r9d, 3
lea rcx, [rbp - 0x20]
mov r8d, r9d
mov edx, 0x80010000
call fcn.1400029e0
mov qword [0x140023db0], rax
lea rcx, str.___Successfully_removed_and_recreated_C:Config.Msi._n
cmp rax, 0xffffffffffffffff
jne 0x140001e30
lea rcx, str.____Failed._Cannot_remove_c:Config.msi
call fcn.140001430
lea rcx, str.C:Config.Msi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x140001e52
lea rcx, str.____Failed.__C:Config.Msi_already_exists_and_is_not_empty._n
call fcn.140001430
lea rcx, str.___Config.msi_directory_created__n
call fcn.140001430
lea r8, str.C:ProgramDataVirtualBox
lea rdx, str.___s
lea rcx, [rbp - 0x20]
call fcn.1400013d0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call qword [0x140023de0]
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], r14
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x58], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140023dc0]
mov rbx, qword [rsp + 0x60]
lea rcx, str.hDir:__x_n
test eax, eax
mov dword [0x140023de8], eax
cmovs rbx, r14
mov rdx, rbx
call fcn.140001430
mov r9, rbx
mov qword [rsp + 0x28], r14
lea r8, [0x140002e10]
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [0x140023db0]
lea rdx, [0x140002710]
call fcn.1400010b0
mov qword [0x140023db8], rax
test rax, rax
je 0x140002010
mov rcx, qword [rax + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [0x140023db8]
test rbx, rbx
je 0x140002010
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140001fcf
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolWait]
mov qword [rbx + 0x58], r14
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140001fe2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], r14
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140001ff8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x68
mov rcx, rbx
call fcn.140002f8c
nop word [rax + rax]
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x20]
call fcn.1400013d0
mov r9d, 3
lea rcx, [rbp - 0x20]
mov edx, 0x80070000
lea r8d, [r9 + 4]
call fcn.1400029e0
mov qword [0x140023db0], rax
test rax, rax
je 0x140002010
mov dword [rbp - 0x60], r14d
lea rbx, str..rbs
nop word [rax + rax]
mov qword [rsp + 0x38], r14
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x30], r14
lea rdx, [rbp + 0x610]
mov qword [rsp + 0x28], rcx
mov r9d, 1
mov rcx, rax
mov dword [rsp + 0x20], 1
mov r8d, 0xffe
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
mov eax, dword [rbp + 0x618]
lea r8, [rbp - 0x68]
shr rax, 1
lea rcx, [rbp + 0x61c]
mov edx, 0x104
mov word [rbp + rax*2 + 0x61c], r14w
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchFindExtension]
mov rdx, qword [rbp - 0x68]
mov rax, r14
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rbx + rax*2 - 2]
jne 0x1400022db
cmp rax, 5
jne 0x1400020d0
mov rcx, qword [0x140023db0]
lea edx, [rax - 4]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov r8d, 0x20000004
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov rcx, qword [0x140023db0]
call fcn.140002580
test eax, eax
je 0x140002110
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x20]
call fcn.1400013d0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call qword [0x140023de0]
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], r14
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 2
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov edx, 1
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x58], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x140023dc0]
mov rdi, qword [rsp + 0x60]
lea r8, [rbp + 0x61c]
test eax, eax
mov dword [0x140023de8], eax
lea rdx, str.C:Config.msi_s
lea rcx, [rbp + 0x400]
cmovs rdi, r14
call fcn.140001370
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x400]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [0x140024218]
xor r9d, r9d
mov rdx, qword [0x140024210]
mov rcx, rax
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea rdx, str.____Failed_to_overwrite_rbs_file__n
lea rcx, str.___Rollback_script_overwritten__n
cmove rcx, rdx
call fcn.140001430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], r14
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x2200000
mov edx, 0x100
mov qword [rbp - 0x34], r14
lea rcx, [0x140023df0]
mov dword [rbp - 0x48], 0xa0000003
lea r8d, [r9 + 1]
mov dword [rsp + 0x60], r14d
movdqu xmmword [rbp - 0x44], xmm0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, qword [rsp + 0x1738]
cmp rax, 0xffffffffffffffff
jne 0x1400022e7
lea rdx, [0x140023df0]
lea rcx, str.____Failed_to_obtain_handle_on_directory__ls._n
call fcn.140001430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14001e9c8]
call fcn.140001430
jmp 0x140002345
mov rax, qword [0x140023db0]
jmp 0x140002060
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
lea r8, [rbp - 0x48]
mov dword [rsp + 0x28], r14d
mov rcx, rax
mov r9d, 0x18
mov qword [rsp + 0x20], r14
mov edx, 0x900ac
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140002332
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:__d_n
call fcn.140001430
jmp 0x140002345
lea rdx, [0x140023df0]
lea rcx, str.___Junction__ls_delete__n
call fcn.140001430
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x140024000]
lea rdx, str.GLOBALGLOBALROOTRPC_Control_s
lea rcx, [rbp + 0x1f0]
call fcn.140001370
lea r8, str.__C:Config.msi::_INDEX_ALLOCATION
mov ecx, 0xf
lea rdx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov r14, qword [rsp + 0x1740]
mov rsi, qword [rsp + 0x1730]
test eax, eax
je 0x1400023b1
lea r8, str.__C:Config.msi::_INDEX_ALLOCATION
lea rdx, [rbp + 0x1f0]
lea rcx, str.___Symlink__ls_____ls_deleted__n
call fcn.140001430
jmp 0x1400023c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_:_d_n
call fcn.140001430
xor eax, eax
mov rcx, qword [rbp + 0x1610]
xor rcx, rsp
call fcn.140002f30
mov rbx, qword [rsp + 0x1748]
add rsp, 0x1720
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.140001430
xor ecx, ecx
call fcn.140005594
int3