Function at 0x45c530
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x47b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov eax, 0x5a4d
push edi
mov edi, ecx
mov dword [ebp - 0x54], edi
cmp word [ebx], ax
je 0x45c572
push str.Invalid_file_n
call fcn.00404fa0
add esp, 4
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
mov ecx, 0x14c
add eax, ebx
mov dword [ebp - 0x50], eax
cmp word [eax + 4], cx
je 0x45c5a4
push str.Invalid_arch_n
call fcn.00404fa0
add esp, 4
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [eax + 0x50]
push 4
push 0x3000
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x45c5d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_allocate_memory_in_target_process_0x_X_n
jmp 0x45cb8a
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 0x40
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov esi, dword [ebp - 0x4c]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0x1000
push ebx
push esi
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45c64c
push 0x8000
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_write_headers:_0x_X_n
jmp 0x45cb8a
mov eax, dword [ebp - 0x50]
xor edi, edi
movzx esi, word [eax + 0x14]
add esi, 0x2c
cmp word [eax + 6], di
je 0x45c692
add esi, eax
mov eax, dword [esi - 4]
test eax, eax
je 0x45c683
push 0
push eax
mov eax, dword [esi]
add eax, ebx
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x4c]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45c6e9
mov eax, dword [ebp - 0x50]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jne 0x45c660
mov ebx, dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x3000
push 0x1c
push 0
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
jne 0x45c723
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.00404fa0
add esp, 8
push 0x8000
push edi
push dword [ebp - 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_map_sections:_0x_x_n
call fcn.00404fa0
add esp, 8
push 0x8000
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
ret
push 0
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45c77c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_write_mapping_0x_X_n
call fcn.00404fa0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
add esp, 8
push 0x8000
push 0
push dword [ebp - 0x4c]
push ebx
call esi
push 0x8000
push 0
push edi
push ebx
call esi
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
ret
push 0x40
push 0x3000
push 0x1000
push 0
push ebx
call esi
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
jne 0x45c7a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Memory_shellcode_allocation_failed__ex__0x_X_n
jmp 0x45c743
push 0
push 0x1000
push 0x45cbb0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45c7fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_write_shellcode_0x_X_n
call fcn.00404fa0
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 0x4c]
push ebx
call esi
push 0x8000
push 0
push edi
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x58]
jmp 0x45c766
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x45c7d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], 0
call ebx
mov eax, dword [ebp - 8]
cmp eax, 0x103
jne 0x45cb84
push 0
push 0x1c
lea eax, [ebp - 0x48]
mov dword [ebp - 0x30], 0
push eax
push dword [ebp - 0x5c]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x48], xmm0
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebp - 0x3c]
cmp esi, 0x404040
je 0x45cb45
cmp esi, 0x505050
jne 0x45c88d
push str.WARNING:_Exception_support_failed__n
call fcn.00404fa0
add esp, 4
push 0xa
call edi
test esi, esi
je 0x45c825
push 0x1400000
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x60], ebx
test ebx, ebx
jne 0x45c8cc
push str.Unable_to_allocate_memory_n
call fcn.00404fa0
add esp, 4
xor al, al
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
ret
push 0x1400000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x54]
add esp, 0xc
push 0
push 0x1000
push ebx
mov ebx, dword [ebp - 0x4c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45c903
push str.WARNING_:_Cant_clear_HEADER_n
call fcn.00404fa0
add esp, 4
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
add esi, eax
movzx eax, word [ecx + 6]
mov ecx, eax
test ax, ax
je 0x45ca1e
nop dword [eax + eax]
cmp dword [esi + 8], 0
je 0x45ca09
mov ecx, str..pdata
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45c961
test dl, dl
je 0x45c95d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45c961
add eax, 2
add ecx, 2
test dl, dl
jne 0x45c941
xor eax, eax
jmp 0x45c966
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c9ca
mov ecx, str..rsrc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45c991
test dl, dl
je 0x45c98d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45c991
add eax, 2
add ecx, 2
test dl, dl
jne 0x45c971
xor eax, eax
jmp 0x45c996
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c9ca
mov ecx, str..reloc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45c9c1
test dl, dl
je 0x45c9bd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45c9c1
add eax, 2
add ecx, 2
test dl, dl
jne 0x45c9a1
xor eax, eax
jmp 0x45c9c6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45ca06
push esi
push str.Processing__s_removal_n
call fcn.00404fa0
mov eax, dword [esi + 0xc]
add esp, 8
add eax, ebx
push 0
push dword [esi + 8]
push dword [ebp - 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45ca06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Cant_clear_section__s:_0x_x_n
call fcn.00404fa0
add esp, 0xc
mov edx, dword [ebp - 0x50]
movzx eax, word [edx + 6]
add esi, 0x28
inc dword [ebp - 8]
mov ecx, eax
cmp dword [ebp - 8], eax
jne 0x45c930
movzx eax, word [edx + 0x14]
lea esi, [edx + 0x18]
add esi, eax
xor ebx, ebx
test cx, cx
je 0x45caaa
lea edx, [ebx + 0x20]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45ca96
mov eax, dword [esi + 0x24]
mov edi, 2
mov dword [ebp - 8], 0
test eax, 0x80000000
jbe 0x45ca59
mov edi, 4
jmp 0x45ca61
test eax, 0x20000000
cmova edi, edx
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x4c]
push edi
push ecx
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
push esi
test eax, eax
je 0x45ca84
push str.section__s_set_as__lX_n
jmp 0x45ca89
push str.FAIL:_section__s_not_set_as__lX_n
call fcn.00404fa0
mov edx, 0x20
add esp, 0xc
mov ecx, dword [ebp - 0x50]
inc ebx
add esi, 0x28
movzx eax, word [ecx + 6]
cmp ebx, eax
jne 0x45ca35
mov edi, dword [ebp - 0x54]
jmp 0x45caad
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
movzx eax, word [ecx + 0x14]
push 2
push dword [eax + ecx + 0x24]
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ebx, dword [ebp - 0x58]
push 0
push 0x1000
push dword [ebp - 0x60]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45caf2
push str.WARNING:_Cant_clear_shellcode_n
call fcn.00404fa0
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x45cb14
push str.WARNING:_cant_release_shell_code_memory_n
call fcn.00404fa0
add esp, 4
push 0x8000
push 0
push dword [ebp - 0x5c]
push edi
call esi
test eax, eax
jne 0x45cb32
push str.WARNING:_cant_release_mapping_data_memory_n
call fcn.00404fa0
add esp, 4
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461666
mov esp, ebp
pop ebp
ret
push str.Wrong_mapping_ptr_n
call fcn.00404fa0
mov ebx, dword [ebp - 0x54]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 0x4c]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x5c]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x58]
jmp 0x45c766
push eax
push str.Process_crashed__exit_code:__d_n
call fcn.00404fa0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop esi
pop edi
pop ebx
call fcn.00461666
mov esp, ebp
pop ebp
ret