Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
push edi
lea edi, [ebp - 0x84]
mov ecx, 0x21
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40105b
push str.Invalid_file_n
call fcn.00401c30
add esp, 4
xor al, al
jmp 0x401883
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
cmp ecx, 0x14c
je 0x40109b
push str.Invalid_platform_n
call fcn.00401c30
add esp, 4
xor al, al
jmp 0x401883
mov esi, esp
push 4
push 0x3000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x38]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp esi, esp
call fcn.00418390
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4010eb
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.00401c30
add esp, 8
xor al, al
jmp 0x401883
mov dword [ebp - 0x18], 0
mov esi, esp
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp esi, esp
call fcn.00418390
xor ecx, ecx
mov dword [ebp - 0x3c], 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
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3c], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
mov byte [ebp + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x28], eax
movzx ecx, byte [ebp + 0x20]
mov dword [ebp - 0x24], ecx
mov esi, esp
push 0
push 0x1000
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00418390
test eax, eax
jne 0x4011c3
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Cant_write_file_header_0x_X_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0x8000
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
xor al, al
jmp 0x401883
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], 0
jmp 0x4011ef
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x44]
add eax, 0x28
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
cmp dword [ebp - 0x48], edx
je 0x401283
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x10], 0
je 0x40127e
mov esi, esp
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00418390
test eax, eax
jne 0x40127e
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Cant_map_sections:_0x_x_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0x8000
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
xor al, al
jmp 0x401883
jmp 0x4011dd
mov esi, esp
push 4
push 0x3000
push 0x1c
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp esi, esp
call fcn.00418390
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x4012ec
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0x8000
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
xor al, al
jmp 0x401883
mov esi, esp
push 0
push 0x1c
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00418390
test eax, eax
jne 0x40136f
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Cant_write_mapping_0x_X_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0x8000
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
xor al, al
jmp 0x401883
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp esi, esp
call fcn.00418390
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4013f9
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
xor al, al
jmp 0x401883
mov esi, esp
push 0
push 0x1000
push 0x401900
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00418390
test eax, eax
jne 0x40149e
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Cant_write_shellcode_0x_X_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
xor al, al
jmp 0x401883
mov eax, dword [ebp - 0x10]
push eax
push str.Mapped_DLL_at__p_n
call fcn.00401c30
add esp, 8
mov ecx, dword [ebp - 0x4c]
push ecx
push str.Mapping_info_at__p_n
call fcn.00401c30
add esp, 8
mov edx, dword [ebp - 0x50]
push edx
push str.Shell_code_at__p_n
call fcn.00401c30
add esp, 8
push str.Data_allocated_n
call fcn.00401c30
add esp, 4
push 0x401900
push str.My_shellcode_pointer__p_n
call fcn.00401c30
add esp, 8
mov eax, dword [ebp - 0x50]
push eax
push str.Target_point__p_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp esi, esp
call fcn.00418390
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4015ab
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00418390
push eax
push str.Thread_creation_failed_0x_X_n
call fcn.00401c30
add esp, 8
mov esi, esp
push 0x8000
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
xor al, al
jmp 0x401883
mov esi, esp
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x1400000
call dword [sym.imp.ucrtbased.dll_malloc]
add esp, 4
cmp esi, esp
call fcn.00418390
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4015f2
push str.Unable_to_allocate_memory_n
call fcn.00401c30
add esp, 4
xor al, al
jmp 0x401883
push 0x1400000
push 0
mov edx, dword [ebp - 0x58]
push edx
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x401640
mov esi, esp
push 0
push 0x1000
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00418390
test eax, eax
jne 0x401640
push str.WARNING_:_Cant_clear_HEADER_n
call fcn.00401c30
add esp, 4
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x401739
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x5c], 0
jmp 0x401678
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 2]
cmp dword [ebp - 0x5c], eax
je 0x401739
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 8], 0
je 0x401734
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x4016a6
mov dword [ebp - 0x80], 0
jmp 0x4016da
push str..pdata
mov eax, dword [ebp - 0x44]
push eax
call sub.ucrtbased.dll_strcmp
add esp, 8
test eax, eax
jne 0x4016c7
mov dword [ebp - 0x84], 1
jmp 0x4016d1
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0
jne 0x40170a
push str..rsrc
mov edx, dword [ebp - 0x44]
push edx
call sub.ucrtbased.dll_strcmp
add esp, 8
test eax, eax
je 0x40170a
push str..reloc
mov eax, dword [ebp - 0x44]
push eax
call sub.ucrtbased.dll_strcmp
add esp, 8
test eax, eax
jne 0x401734
mov esi, esp
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00418390
jmp 0x401666
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
je 0x401823
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x60], 0
jmp 0x401771
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 2]
cmp dword [ebp - 0x60], eax
je 0x4017f0
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 8], 0
je 0x4017eb
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x70], 2
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x24]
and eax, 0x80000000
jbe 0x4017aa
mov dword [ebp - 0x70], 4
jmp 0x4017bf
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x24]
and edx, 0x20000000
jbe 0x4017bf
mov dword [ebp - 0x70], 0x20
mov esi, esp
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp esi, esp
call fcn.00418390
jmp 0x40175f
mov dword [ebp - 0x78], 0
mov esi, esp
lea ecx, [ebp - 0x78]
push ecx
push 2
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax + 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0
push 0x1000
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov esi, esp
push 0x8000
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00418390
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4018a8]
call fcn.00418320
pop eax
pop edx
pop edi
pop esi
add esp, 0x84
cmp ebp, esp
call fcn.00418390
mov esp, ebp
pop ebp
ret