Function at 0x4077f0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0x3c]
add esi, edi
lea eax, [esi + 0x50]
push 0x40
mov dword [esp + 0x20], eax
mov eax, dword [eax]
push 0x1000
push eax
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, dword [esi + 0x54]
mov ebx, eax
mov eax, dword [0x52ae14]
test eax, eax
jne 0x407847
push str.memcpy
push 0x437bb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52ae14], eax
push ebp
push edi
push ebx
call eax
movzx ecx, word [esi + 0x14]
mov ebp, dword [esp + 0x1c]
add esp, 0xc
cmp word [ebp + 6], 0
lea esi, [esi + ecx + 0x18]
mov dword [esp + 0x18], 0
jbe 0x407910
add esi, 0x10
mov edi, dword [esi - 4]
mov eax, dword [0x52ae18]
mov edx, dword [esi]
mov ebp, dword [esi - 8]
add edi, ebx
test eax, eax
mov dword [esp + 0x14], edx
jne 0x4078a4
push 0x437bd4
push 0x437bc4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52ae18], eax
push ebp
push edi
call eax
mov eax, dword [esp + 0x14]
cmp ebp, eax
mov dword [esp + 0x14], ebp
jl 0x4078b8
mov dword [esp + 0x14], eax
mov ebp, dword [esi + 4]
mov eax, dword [0x52ae14]
add ebp, dword [esp + 0x24]
test eax, eax
jne 0x4078e4
push str.memcpy
push 0x437bb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52ae14], eax
mov ecx, dword [esp + 0x14]
push ecx
push ebp
push edi
call eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
movzx ecx, word [edx + 6]
add eax, 1
add esp, 0xc
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x407871
mov ebp, edx
mov eax, dword [ebp + 0xa4]
mov edi, dword [ebp + 0xa0]
mov esi, ebx
sub esi, dword [ebp + 0x34]
add edi, ebx
test eax, eax
mov dword [esp + 0x18], eax
mov edx, edi
jle 0x40796c
lea ecx, [ecx]
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
test eax, eax
lea ecx, [edx + 8]
jle 0x407962
mov dword [esp + 0x24], eax
movzx eax, word [ecx]
test eax, 0xf000
je 0x407958
and eax, 0xfff
add eax, dword [edx]
add eax, ebx
add dword [eax], esi
add ecx, 2
sub dword [esp + 0x24], 1
jne 0x407943
mov edx, ecx
sub ecx, edi
cmp ecx, dword [esp + 0x18]
jl 0x407930
mov edi, dword [ebp + 0x80]
mov eax, dword [edi + ebx + 0xc]
add edi, ebx
test eax, eax
je 0x4079d1
lea esp, [esp]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [edi + 4], 0
mov ebp, eax
jne 0x407996
mov esi, dword [edi + 0x10]
jmp 0x407998
mov esi, dword [edi]
add esi, ebx
cmp dword [esi], 0
je 0x4079c3
nop
mov eax, dword [esi]
test eax, eax
jns 0x4079ad
and eax, 0xffff
jmp 0x4079b1
lea eax, [eax + ebx + 2]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
add esi, 4
cmp dword [esi], 0
jne 0x4079a0
mov eax, dword [edi + 0x20]
add edi, 0x14
test eax, eax
jne 0x407980
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x407a02
lea esi, [eax + ebx]
test esi, esi
je 0x407a02
push 0
push 1
push ebx
call esi
push 0
push 2
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret