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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x40e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x40
mov dword [ebp - 0x194], eax
xor esi, esi
lea eax, [ebp - 0x170]
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x174], ebx
push esi
push eax
mov dword [ebp - 0x178], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x170]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call ebx
test eax, eax
je 0x4081be
cmp dword [ebp - 8], 0x40
jb 0x4081be
push 0xf8
lea eax, [ebp - 0x130]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x174]
push eax
push edi
call ebx
test eax, eax
je 0x4081be
cmp dword [ebp - 8], 0xf8
jb 0x4081be
mov eax, 0x10b
cmp word [ebp - 0x118], ax
je 0x407f9f
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409942
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebp - 0x11c]
mov eax, dword [ebp - 0x134]
add ecx, 0x18
add eax, ecx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
xor ecx, ecx
xor esi, esi
cmp cx, word [ebp - 0x12a]
jae 0x408043
mov edi, dword [ebp - 0x174]
add edi, eax
nop dword [eax]
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0x34]
movq qword [ebp - 0x14], xmm0
push eax
push edi
push dword [ebp - 0x178]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call ebx
test eax, eax
je 0x4081d1
cmp dword [ebp - 8], 0x28
jb 0x4081d1
cmp dword [ebp - 0x58], 0
jne 0x40802e
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jb 0x40802e
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + ecx]
cmp edx, eax
jae 0x408028
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx eax, word [ebp - 0x12a]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x407fd0
mov edi, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x194]
mov eax, 0xcccccccd
mul dword [ebp - 0xac]
mov ecx, dword [ecx]
shr edx, 4
lea eax, [edx + edx*4]
shl eax, 2
lea edx, [ecx + 1]
mov dword [ebp - 0x18c], eax
add eax, 0x1b
and eax, 0xfffffff8
mov dword [ebp - 0x188], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x180], esi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408080
sub ecx, edx
lea ebx, [ecx + 4]
and ebx, 0xfffffffc
add ebx, esi
push ebx
mov dword [ebp - 0x184], ebx
call fcn.00409c01
push ebx
push 0
push eax
mov dword [ebp - 0x17c], eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x10c]
add esp, 0x10
add ebx, edx
mov dword [ebp - 0x10], 0
add ebx, dword [ebp - 0x110]
xorps xmm0, xmm0
add ebx, dword [ebp - 0x114]
add ebx, dword [ebp - 0x104]
push 0x1c
cmp edx, ebx
movq qword [ebp - 0x18], xmm0
push eax
cmovae ebx, edx
push ebx
push edi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4081a8
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, dword [ebp - 0x1c]
mov eax, edx
and eax, 0xfff
cmp eax, 0xfff
je 0x4081ae
cmp dword [ebp - 0x18], 0x10000
mov ecx, dword [ebp - 0x28]
jne 0x408177
cmp ecx, ebx
lea eax, [edx + ecx]
mov esi, ebx
cmova esi, ecx
add esi, 0xffff
and esi, 0xffff0000
cmp esi, eax
jae 0x408177
nop
push 4
push 0x3000
push dword [ebp - 0x184]
push esi
push dword [ebp - 0x178]
call edi
mov dword [ebp - 0x1ac], eax
test eax, eax
jne 0x4081e6
mov edx, dword [ebp - 0x1c]
add esi, 0x10000
mov ecx, dword [ebp - 0x28]
lea eax, [edx + ecx]
cmp esi, eax
jb 0x408140
lea eax, [edx + ecx]
mov dword [ebp - 0x10], 0
push 0x1c
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
push ecx
push eax
push dword [ebp - 0x178]
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x408103
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push dword [ebp - 0x17c]
call fcn.00409bfc
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409942
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor esi, esi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00409942
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x174]
mov ebx, eax
mov ecx, dword [ebp - 0xb0]
sub ebx, edx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0xc], 0
test ecx, ecx
je 0x40823d
mov esi, dword [ebp - 0x18c]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x17c]
push esi
add eax, 0x14
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x178]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4081ae
cmp dword [ebp - 8], esi
jb 0x4081ae
mov esi, dword [ebp - 0x17c]
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
lea eax, [esi + 4]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x188]
lea edx, [ebx + eax]
add eax, 4
add eax, esi
mov dword [ebp - 0x1a0], edx
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x188], eax
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x194]
mov esi, dword [ebp - 0x184]
sub esi, edx
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x1a8], eax
mov eax, dword [eax]
lea edx, [ecx + edx]
je 0x4081ae
cmp esi, 0x7fffffff
ja 0x408512
mov ebx, 0x7ffffffe
mov dword [ebp - 0x198], 0
sub ebx, esi
mov edi, esi
sub eax, edx
mov ecx, edx
mov dword [ebp - 0x1a4], eax
lea eax, [edi + ebx]
test eax, eax
je 0x408301
mov eax, dword [ebp - 0x1a4]
mov al, byte [ecx + eax]
test al, al
je 0x4082f5
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x4082d1
dec ecx
mov eax, 0x8007007a
jmp 0x408307
test edi, edi
jne 0x408301
dec ecx
mov eax, 0x8007007a
jmp 0x408307
mov eax, dword [ebp - 0x198]
mov byte [ecx], 0
test eax, eax
js 0x4081ae
test edx, edx
je 0x408339
cmp esi, 2
jb 0x408339
nop dword [eax + eax]
cmp byte [edx], 0x3f
jne 0x40832b
cmp byte [edx + 1], 0x3f
je 0x408334
dec esi
inc edx
cmp esi, 2
jae 0x408320
jmp 0x408339
mov word [edx], 0x3233
mov ebx, dword [ebp - 0x18c]
mov edi, dword [ebp - 0x188]
mov esi, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x1a8]
mov dword [ebx - 4], esi
mov dword [edi - 4], 0x80000001
mov dword [edi], 0
lea eax, [esi + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x180]
add eax, dword [ebp - 0x190]
mov dword [edi + 4], 0x80000001
mov dword [edi + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], eax
mov ecx, dword [ecx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408396
sub ecx, edx
add esi, 0x10
mov edx, dword [ebp - 0x180]
add edi, 0x10
add ebx, 0x14
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x188], edi
lea eax, [ecx + 4]
mov dword [ebp - 0x18c], ebx
mov ecx, dword [ebp - 0x19c]
and eax, 0xfffffffc
inc ecx
add edx, eax
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x19c], ecx
cmp ecx, 1
jb 0x408280
mov ebx, dword [ebp - 0x178]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push edx
push dword [ebp - 0x17c]
push dword [ebp - 0x1ac]
push ebx
call esi
test eax, eax
je 0x4081ae
cmp dword [ebp - 0x58], 0
jne 0x408424
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x54], eax
jmp 0x40842a
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x190]
xorps xmm0, xmm0
mov edi, dword [ebp - 0xdc]
push 0x1c
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x174]
mov dword [ebp - 0xb0], ecx
push ebx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4081ae
test byte [ebp - 0x14], 0xf0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x40
mov eax, 4
cmovne eax, ecx
push eax
push edi
push dword [ebp - 0x174]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
call edi
test eax, eax
je 0x4081ae
push 0
push 0x40
lea eax, [ebp - 0x170]
mov dword [ebp - 0xd8], 0
push eax
push dword [ebp - 0x174]
push ebx
call esi
test eax, eax
je 0x4081ae
push 0
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x174]
push eax
push ebx
call esi
test eax, eax
je 0x4081ae
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0xdc]
push dword [ebp - 0x174]
push ebx
call edi
test eax, eax
je 0x4081ae
mov esi, 1
jmp 0x4081b0
mov byte [edx], 0
jmp 0x4081ae