Function at 0x4011f0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Read file on windows
Spawn thread to rwx shellcode
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x158], eax
cmp dword [ebp + 8], 1
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x1c], eax
jne 0x401231
push dword [eax]
push str.usage:__s__path_to_dll_
call fcn.00401040
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x403160
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4015ca
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push edi
call esi
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov ebx, eax
push 0
push 0
push edi
call esi
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4015ca
push edi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40138f
xor ebx, ebx
mov dword [esp + 0x30], 0x128
push 0x124
lea eax, [esp + 0x38]
mov dword [esp + 0x18], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0xc], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401372
lea eax, [esp + 0x30]
mov dword [esp + 0xc], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x401372
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov dword [esp + 0xc], edi
nop dword [eax]
mov eax, str.grand_theft_auto_san_andreas.dll
lea ecx, [esp + 0x54]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401340
test dl, dl
je 0x40133c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401340
add ecx, 2
add eax, 2
test dl, dl
jne 0x401320
xor eax, eax
jmp 0x401345
sbb eax, eax
or eax, 1
test eax, eax
je 0x40135e
lea eax, [esp + 0x30]
push eax
push esi
call ebx
test eax, eax
jne 0x401310
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40137d
push dword [esp + 0x38]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x14], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4013a9
push str.grand_theft_auto_san_andreas.dll
push str._s_is_not_running
call fcn.00401040
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00401605
mov esp, ebp
pop ebp
ret
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0xc
movq xmm0, qword [ecx]
movq qword [esp + 0x160], xmm0
mov eax, dword [ecx + 8]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x160]
push eax
push ecx
push ebx
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0xc
movq xmm0, qword [ecx]
movq qword [esp + 0x160], xmm0
mov eax, dword [ecx + 8]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x160]
push eax
push ecx
push ebx
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push 0xc
movq xmm0, qword [ecx]
movq qword [esp + 0x160], xmm0
mov eax, dword [ecx + 8]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x160]
push eax
push ecx
push ebx
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0xc
movq xmm0, qword [ecx]
movq qword [esp + 0x160], xmm0
mov eax, dword [ecx + 8]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x160]
push eax
push ecx
push ebx
call esi
mov edi, dword [edi + 0x3c]
add edi, dword [esp + 0xc]
push 0x40
push 0x3000
mov dword [esp + 0x20], edi
push dword [edi + 0x50]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [edi + 0x54]
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
push eax
push ebx
call esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edi, edi
cmp cx, word [eax + 6]
jae 0x4014d1
lea esi, [eax + 0x10c]
mov eax, dword [esi]
add eax, dword [esp + 0xc]
push 0
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x18]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 6]
cmp edi, eax
jl 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, fcn.004011e0
sub edi, 0x401080
push edi
push str.shellcode_size:__lu_n
lea esi, [edi + 0x10]
call fcn.00401040
push esi
push str.loader_mem_size:__lu_n
call fcn.00401040
add esp, 0x10
push 0x20
push 0x3000
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlZeroMemory
push str.ntdll
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
push 0
push 0x10
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push edi
mov edi, dword [esp + 0x1c]
lea esi, [ebx + 0x10]
push 0x401080
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push ebx
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push str._s_injected_n
call fcn.00401040
mov ecx, dword [esp + 0x16c]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401605
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 4]
push str.failed_to_open__s:__s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3