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

Disassembly:
jmp 0x140067110
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 [0x14013a908]
xor rax, rbp
mov qword [rbp + 0x958], rax
lea rcx, [0x14014dd6d]
call fcn.1400529c1
cmp dword [rbp + 0x988], 0
jne 0x14006716e
xor eax, eax
jmp 0x14006757e
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.140050fe5
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 0x14006723b
mov eax, dword [rbp + 0x534]
inc eax
mov dword [rbp + 0x534], eax
jmp 0x140067211
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 0x1400672ee
cmp dword [rbp + 0x954], 2
je 0x14006730d
cmp dword [rbp + 0x954], 3
je 0x14006730d
cmp dword [rbp + 0x954], 4
je 0x140067324
cmp dword [rbp + 0x954], 5
je 0x1400673ce
jmp 0x140067400
lea rdx, str.NtProtectVirtualMemory
mov rcx, qword [rbp + 0x4a8]
call fcn.14004f2ad
mov qword [rbp + 0x588], rax
jmp 0x140067413
mov ecx, dword [rbp + 0x988]
call fcn.140051724
mov qword [rbp + 0x588], rax
jmp 0x140067413
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.140052593
mov qword [rbp + 0x5a8], rax
lea rdx, str.NtProtectVirtualMemory
mov rcx, qword [rbp + 0x5a8]
call fcn.14004f2ad
mov qword [rbp + 0x588], rax
jmp 0x140067413
lea rcx, str.NtProtectVirtualMemory
call fcn.14004fcb2
mov qword [rbp + 0x588], rax
cmp qword [rbp + 0x588], 0
jne 0x1400673fe
lea rcx, str.Something_wrong_happened_with_CreateSyscallStubWithVirtuallAlloc__aborting..._n
call fcn.140050b35
xor eax, eax
jmp 0x14006757e
jmp 0x140067413
lea rcx, str.Unhook_method_does_not_exist__exiting..._n
call fcn.140050b35
xor eax, eax
jmp 0x14006757e
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 0x140067484
mov edx, dword [rbp + 0x624]
lea rcx, str.unmonitoredNtProtectVirtualMemory_1_failed_with_status_0x_08x_n
call fcn.140051fbc
xor eax, eax
jmp 0x14006757e
mov qword [rbp + 0x648], 0
jmp 0x1400674a2
mov rax, qword [rbp + 0x648]
inc rax
mov qword [rbp + 0x648], rax
mov rax, qword [rbp + 0x518]
cmp qword [rbp + 0x648], rax
jae 0x1400674e1
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 0x140067491
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 0x140067534
mov edx, dword [rbp + 0x624]
lea rcx, str.unmonitoredNtProtectVirtualMemory_2_failed_with_status_0x_08x_n
call fcn.140051fbc
xor eax, eax
jmp 0x14006757e
mov eax, dword [rbp + 0x988]
mov dword [rbp + 0x954], eax
cmp dword [rbp + 0x954], 4
je 0x14006754b
jmp 0x140067579
cmp qword [rbp + 0x488], 0
je 0x14006756c
cmp qword [rbp + 0x488], 0xffffffffffffffff
je 0x14006756c
mov rcx, qword [rbp + 0x488]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14010d730]
call fcn.140051f80
mov rax, rdi
mov rcx, qword [rbp + 0x958]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x960]
pop rdi
pop rsi
pop rbp
ret