Function at 0x14004facb
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
jmp 0x140064060
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x990
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x198
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x9b8]
mov rax, qword [0x140131878]
xor rax, rbp
mov qword [rbp + 0x958], rax
lea rcx, [0x140143171]
call fcn.1400508f4
cmp dword [rbp + 0x988], 0
jne 0x1400640bc
jmp 0x1400644d6
lea rax, str.._ntdlol.txt
mov qword [rbp + 8], rax
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rbp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rbp + 0x488], 0xffffffffffffffff
mov qword [rbp + 0x4a8], 0
mov qword [rbp + 0x4c8], 0
lea rdx, [rbp + 0x4c8]
lea rcx, [rbp + 0x4a8]
call fcn.14004ef6d
mov rax, qword [rbp + 0x980]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x4e8], rax
mov eax, 0x18
imul rax, rax, 0
lea rcx, [rbp + 0x508]
mov rdx, qword [rbp + 0x4e8]
mov rdi, rcx
lea rsi, [rdx + rax]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0x534], 0
movsxd rax, dword [rbp + 0x534]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x4e8]
cmp qword [rcx + rax + 0x10], 0
je 0x140064189
mov eax, dword [rbp + 0x534]
inc eax
mov dword [rbp + 0x534], eax
jmp 0x14006415f
mov eax, dword [rbp + 0x534]
dec eax
cdqe
imul rax, rax, 0x18
lea rcx, [rbp + 0x558]
mov rdx, qword [rbp + 0x4e8]
mov rdi, rcx
lea rsi, [rdx + rax]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0x518]
mov rcx, qword [rbp + 0x510]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x560]
sub rcx, rax
mov rax, rcx
add rax, qword [rbp + 0x568]
mov rcx, qword [rbp + 0x518]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x518], rax
mov qword [rbp + 0x588], 0
mov eax, dword [rbp + 0x988]
mov dword [rbp + 0x954], eax
cmp dword [rbp + 0x954], 1
je 0x14006423c
cmp dword [rbp + 0x954], 2
je 0x14006425b
cmp dword [rbp + 0x954], 3
je 0x14006425b
cmp dword [rbp + 0x954], 4
je 0x140064272
cmp dword [rbp + 0x954], 5
je 0x14006431c
jmp 0x140064351
lea rdx, str.NtProtectVirtualMemory
mov rcx, qword [rbp + 0x4a8]
call fcn.14004d2b2
mov qword [rbp + 0x588], rax
jmp 0x140064367
mov ecx, dword [rbp + 0x988]
call fcn.14004f6ac
mov qword [rbp + 0x588], rax
jmp 0x140064367
mov edx, 0x104
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.ntdll.dll
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rbp + 0x260]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8, qword [rbp + 8]
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor r8d, r8d
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x488], rax
mov edx, 1
mov rcx, qword [rbp + 0x488]
call fcn.1400504c6
mov qword [rbp + 0x5a8], rax
lea rdx, str.NtProtectVirtualMemory
mov rcx, qword [rbp + 0x5a8]
call fcn.14004d2b2
mov qword [rbp + 0x588], rax
jmp 0x140064367
lea rcx, str.NtProtectVirtualMemory
call fcn.14004dc94
mov qword [rbp + 0x588], rax
cmp qword [rbp + 0x588], 0
jne 0x14006434f
lea rcx, str.Something_wrong_happened_with_CreateSyscallStubWithVirtuallAlloc__aborting..._n
call fcn.14004ead6
mov ecx, 1
call fcn.14004d460
jmp 0x140064367
lea rcx, str.Unhook_method_does_not_exist__exiting..._n
call fcn.14004ead6
mov ecx, 1
call fcn.14004d460
mov rax, qword [rbp + 0x510]
mov qword [rbp + 0x5e8], rax
mov rax, qword [rbp + 0x518]
mov qword [rbp + 0x608], rax
lea rax, [rbp + 0x5c4]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rbp + 0x608]
lea rdx, [rbp + 0x5e8]
mov rcx, 0xffffffffffffffff
call qword [rbp + 0x588]
mov dword [rbp + 0x624], eax
cmp dword [rbp + 0x624], 0
jge 0x1400643db
mov edx, dword [rbp + 0x624]
lea rcx, str.unmonitoredNtProtectVirtualMemory_1_failed_with_status_0x_08x_n
call fcn.14004ff12
mov ecx, 1
call fcn.14004d460
mov qword [rbp + 0x648], 0
jmp 0x1400643f9
mov rax, qword [rbp + 0x648]
inc rax
mov qword [rbp + 0x648], rax
mov rax, qword [rbp + 0x518]
cmp qword [rbp + 0x648], rax
jae 0x140064438
mov rax, qword [rbp + 0x648]
mov rcx, qword [rbp + 0x510]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x648]
mov rdx, qword [rbp + 0x508]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x1400643e8
lea rax, [rbp + 0x5c4]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x5c4]
lea r8, [rbp + 0x608]
lea rdx, [rbp + 0x5e8]
mov rcx, 0xffffffffffffffff
call qword [rbp + 0x588]
mov dword [rbp + 0x624], eax
cmp dword [rbp + 0x624], 0
jge 0x140064491
mov edx, dword [rbp + 0x624]
lea rcx, str.unmonitoredNtProtectVirtualMemory_2_failed_with_status_0x_08x_n
call fcn.14004ff12
mov ecx, 1
call fcn.14004d460
mov eax, dword [rbp + 0x988]
mov dword [rbp + 0x954], eax
cmp dword [rbp + 0x954], 4
je 0x1400644a8
jmp 0x1400644d6
cmp qword [rbp + 0x488], 0
je 0x1400644c9
cmp qword [rbp + 0x488], 0xffffffffffffffff
je 0x1400644c9
mov rcx, qword [rbp + 0x488]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x30]
lea rdx, [0x140105a18]
call fcn.14004fed6
mov rcx, qword [rbp + 0x958]
xor rcx, rbp
call fcn.14004eb76
lea rsp, [rbp + 0x960]
pop rdi
pop rsi
pop rbp
ret