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

Disassembly:
test edx, edx
je 0x140004fc9
mov r11, rsp
push rbp
push rdi
push r13
lea rbp, [r11 - 0x408]
sub rsp, 0x4f0
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov qword [r11 + 0x18], rbx
mov r13d, edx
mov rdi, rcx
mov qword [r11 - 0x20], rsi
xor edx, edx
mov qword [r11 - 0x38], r15
lea rcx, [rbp + 0x1b0]
mov r8d, 0x208
call fcn.14000c5f0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.14000c5f0
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x40], r15
call fcn.140002e60
mov rsi, qword [0x14004fe78]
mov rbx, rax
test rsi, rsi
jne 0x140004c7b
mov rcx, qword [rax + 0x30]
lea edx, [rsi + 1]
call fcn.1400082d0
mov rsi, rax
mov qword [0x14004fe78], rax
cmp qword [0x14004fe68], 0
mov qword [rsp + 0x4e0], r12
mov qword [rsp + 0x4d8], r14
jne 0x140004cc4
mov rcx, qword [rbx + 0x50]
call fcn.140003560
test rax, rax
je 0x140004fca
xor edx, edx
mov rcx, rax
call fcn.1400082d0
mov rdx, qword [rsi + 0x10]
mov rcx, rax
mov qword [0x14004fe68], rax
call fcn.1400080b0
mov rdx, qword [rdi + 0x18]
xor edi, edi
mov ecx, edi
lea rax, [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x60], xmm0
cmp qword [rax], rcx
je 0x140004ceb
nop dword [rax]
inc ecx
lea rax, [rax + 0x18]
cmp qword [rax], rdi
jne 0x140004ce0
mov rbx, qword [rsp + 0x68]
movsxd rax, ecx
lea rcx, [rax + rax*2]
movsd xmm0, qword [rdx + rcx*8 - 8]
movsd qword [rsp + 0x58], xmm0
mov r14, qword [rsp + 0x58]
sub r14, rbx
add r14, qword [rdx + rcx*8 - 0x10]
mov edx, r13d
sub edx, 1
je 0x140004ecb
sub edx, 1
je 0x140004ec1
sub edx, 1
je 0x140004ec1
sub edx, 1
je 0x140004e3a
cmp edx, 1
jne 0x140004fd5
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 0x140004fec
lea rax, [0x140009200]
mov esi, 0xffffffff
mov qword [rsp + 0x48], rax
lea r15, [rsp + 0x48]
lea rax, [0x140009790]
mov qword [rsp + 0x50], rax
lea rax, [0x140009630]
mov qword [rsp + 0x58], rax
nop dword [rax]
lea rcx, str.NtProtectVirtualMemory
call qword [r15]
cmp eax, 0xffffffff
je 0x140004dce
cmp esi, 0xffffffff
je 0x140004dcc
cmp esi, eax
jne 0x140004fec
mov esi, eax
inc edi
add r15, 8
cmp edi, 3
jb 0x140004db0
cmp esi, 0xffffffff
je 0x140004fec
mov dword [rsp + 0x31], esi
lea r9, [rbp - 0x70]
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 + 0x40]
jmp 0x140004ef0
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x140030e98]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.._ntdlol.txt
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov edx, 1
mov r15, rax
call fcn.1400082d0
mov rsi, rax
mov rcx, rax
jmp 0x140004ece
mov ecx, r13d
call fcn.140005010
jmp 0x140004eed
mov rcx, rsi
lea rdx, str.NtProtectVirtualMemory
call fcn.140008410
test eax, eax
jne 0x140004ee3
mov r12, rdi
jmp 0x140004ef0
mov edx, eax
mov rcx, rsi
call fcn.140008020
mov r12, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x78], rbx
mov r9d, 0x40
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x78]
mov qword [rbp - 0x78], r14
lea rdx, [rsp + 0x78]
mov rcx, 0xffffffffffffffff
call r12
test eax, eax
js 0x140004fca
test r14, r14
je 0x140004f40
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
movzx eax, byte [rbx + rdx]
mov byte [rbx], al
lea rbx, [rbx + 1]
sub r14, 1
jne 0x140004f30
mov r9d, dword [rbp - 0x80]
lea rax, [rbp - 0x80]
lea r8, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x78]
mov rcx, 0xffffffffffffffff
call r12
test eax, eax
js 0x140004fca
cmp r13d, 4
jne 0x140004f87
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004f7d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x4e0]
mov rsi, qword [rsp + 0x4e8]
mov rbx, qword [rsp + 0x520]
mov r15, qword [rsp + 0x4d0]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14000b2e0
add rsp, 0x4f0
pop r13
pop rdi
pop rbp
ret
mov ecx, 1
call fcn.14000f6f4
int3
lea rcx, str.Unhook_method_does_not_exist__exiting..._n
call fcn.140001070
mov ecx, 1
call fcn.14000f6f4
int3
lea rcx, str.Something_wrong_happened_with_CreateSyscallStubWithVirtuallAlloc__aborting..._n
call fcn.140001070
mov ecx, 1
call fcn.14000f6f4
int3