Function at 0x140006370
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 [0x140054018]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r13d, edx
mov rdi, rcx
test edx, edx
je 0x1400064d7
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.14000f000
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.14000f000
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
call fcn.1400037f0
mov rsi, qword [0x140058710]
mov rbx, rax
test rsi, rsi
jne 0x140006409
mov rcx, qword [rax + 0x30]
lea edx, [rsi + 1]
call fcn.14000a470
mov rsi, rax
mov qword [0x140058710], rax
cmp qword [0x140058700], 0
jne 0x140006442
mov rcx, qword [rbx + 0x50]
call fcn.1400045b0
test rax, rax
je 0x140006767
xor edx, edx
mov rcx, rax
call fcn.14000a470
mov rdx, qword [rsi + 0x20]
mov rcx, rax
mov qword [0x140058700], rax
call fcn.140009fb0
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 0x14000647b
nop word [rax + rax]
inc ecx
lea rax, [rax + 0x18]
cmp qword [rax], rdi
jne 0x140006470
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 0x14000668f
sub ecx, 1
je 0x140006685
sub ecx, 1
je 0x140006685
sub ecx, 1
je 0x1400065fe
cmp ecx, 1
je 0x140006503
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.14000dc70
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 0x1400065f2
lea rax, [0x14000c020]
mov esi, 0xffffffff
mov qword [rsp + 0x40], rax
lea r15, [rsp + 0x40]
lea rax, [0x14000c5b0]
mov qword [rsp + 0x48], rax
lea rax, [0x14000c450]
mov qword [rsp + 0x50], rax
nop
lea rcx, str.NtProtectVirtualMemory
call qword [r15]
cmp eax, 0xffffffff
je 0x14000658a
cmp esi, 0xffffffff
je 0x140006588
cmp esi, eax
jne 0x1400065f2
mov esi, eax
inc edi
add r15, 8
cmp edi, 3
jb 0x140006570
cmp esi, 0xffffffff
je 0x1400065f2
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 0x1400066b4
lea rcx, str.Something_wrong_happened_with_CreateSyscallStubWithVirtuallAlloc__aborting..._n
jmp 0x1400064d2
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x140033f28]
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.14000a470
mov rsi, rax
mov rcx, rax
jmp 0x140006692
mov ecx, r13d
call fcn.140006780
jmp 0x1400066b1
mov rcx, rsi
lea rdx, str.NtProtectVirtualMemory
call fcn.14000a640
test eax, eax
jne 0x1400066a7
mov r12, rdi
jmp 0x1400066b4
mov edx, eax
mov rcx, rsi
call fcn.140009f20
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 0x1400064d7
test r14, r14
je 0x140006710
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 0x140006700
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 0x1400064d7
cmp r13d, 4
jne 0x14000675d
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006753
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 0x1400064d9
mov ecx, 1
call fcn.1400120f0
int3