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

Disassembly:
test edx, edx
je 0x140006159
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.14000ddf0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.14000ddf0
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x40], r15
call fcn.1400039e0
mov rsi, qword [0x140050220]
mov rbx, rax
test rsi, rsi
jne 0x140005dfb
mov rcx, qword [rax + 0x30]
lea edx, [rsi + 1]
call fcn.140008dd0
mov rsi, rax
mov qword [0x140050220], rax
cmp qword [0x140050210], 0
mov qword [rsp + 0x4e0], r12
mov qword [rsp + 0x4d8], r14
jne 0x140005e44
mov rcx, qword [rbx + 0x50]
call fcn.1400044f0
test rax, rax
je 0x14000615a
xor edx, edx
mov rcx, rax
call fcn.140008dd0
mov rdx, qword [rsi + 0x10]
mov rcx, rax
mov qword [0x140050210], rax
call fcn.140008b90
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 0x140005e6b
nop dword [rax]
inc ecx
lea rax, [rax + 0x18]
cmp qword [rax], rdi
jne 0x140005e60
mov rbx, qword [rsp + 0x68]
movsxd rax, ecx
lea rcx, [rax + rax*2]
movups xmm1, xmmword [rdx + rcx*8 - 0x18]
movsd xmm0, qword [rdx + rcx*8 - 8]
mov edx, r13d
movsd qword [rsp + 0x58], xmm0
mov r14, qword [rsp + 0x58]
sub r14, rbx
psrldq xmm1, 8
movq rax, xmm1
add r14, rax
sub edx, 1
je 0x14000605b
sub edx, 1
je 0x140006051
sub edx, 1
je 0x140006051
sub edx, 1
je 0x140005fca
cmp edx, 1
jne 0x140006165
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 0x14000617c
lea rax, [0x14000a3a0]
mov esi, 0xffffffff
mov qword [rsp + 0x48], rax
lea r15, [rsp + 0x48]
lea rax, [0x14000a920]
mov qword [rsp + 0x50], rax
lea rax, [0x14000a7c0]
mov qword [rsp + 0x58], rax
nop dword [rax]
lea rcx, str.NtProtectVirtualMemory
call qword [r15]
cmp eax, 0xffffffff
je 0x140005f5e
cmp esi, 0xffffffff
je 0x140005f5c
cmp esi, eax
jne 0x14000617c
mov esi, eax
inc edi
add r15, 8
cmp edi, 3
jb 0x140005f40
cmp esi, 0xffffffff
je 0x14000617c
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 0x140006080
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x14002e2c8]
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.140008dd0
mov rsi, rax
mov rcx, rax
jmp 0x14000605e
mov ecx, r13d
call fcn.1400061a0
jmp 0x14000607d
mov rcx, rsi
lea rdx, str.NtProtectVirtualMemory
call fcn.140008f10
test eax, eax
jne 0x140006073
mov r12, rdi
jmp 0x140006080
mov edx, eax
mov rcx, rsi
call fcn.140008b00
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 0x14000615a
test r14, r14
je 0x1400060d0
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
movzx eax, byte [rdx + rbx]
mov byte [rbx], al
lea rbx, [rbx + 1]
sub r14, 1
jne 0x1400060c0
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 0x14000615a
cmp r13d, 4
jne 0x140006117
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000610d
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.14000cb50
add rsp, 0x4f0
pop r13
pop rdi
pop rbp
ret
mov ecx, 1
call fcn.14000ef44
int3
lea rcx, str.Unhook_method_does_not_exist__exiting..._n
call fcn.140001070
mov ecx, 1
call fcn.14000ef44
int3
lea rcx, str.Something_wrong_happened_with_CreateSyscallStubWithVirtuallAlloc__aborting..._n
call fcn.140001070
mov ecx, 1
call fcn.14000ef44
int3