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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43a014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x40], ecx
mov eax, ecx
mov ecx, dword [ebx]
cmp ecx, dword [ebx + 4]
je 0x402962
mov dword [ebx + 4], ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x44], 0x1f4
lea ecx, [ebp - 8]
push ecx
push 0x40
push 4
push eax
push dword [0x43bdf0]
call edi
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push 0
push 4
push eax
push esi
push dword [0x43bdf0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
push dword [0x43bdf0]
call edi
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x402bd8
mov esi, dword [0x43bdd4]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
add esi, ecx
push esi
push dword [0x43bdf0]
call edi
push 0
push 4
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [0x43bdf0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 4
push esi
push dword [0x43bdf0]
call edi
cmp dword [ebp - 0x2c], 2
jne 0x402bd8
mov esi, dword [0x43bde4]
lea eax, [ebp - 0x10]
add esi, dword [ebp - 0x3c]
push eax
push 0x40
push 4
push esi
push dword [0x43bdf0]
call edi
push 0
push 4
lea eax, [ebp - 0x30]
push eax
push esi
push dword [0x43bdf0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 4
push esi
push dword [0x43bdf0]
call edi
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x402bd8
lea eax, [ebp - 0x14]
add esi, 4
push eax
push 0x40
push 4
push esi
push dword [0x43bdf0]
call edi
push 0
push 4
lea eax, [ebp - 0x34]
push eax
push esi
push dword [0x43bdf0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push esi
push dword [0x43bdf0]
call edi
cmp dword [ebp - 0x34], 7
je 0x402bd8
mov esi, dword [0x43bde8]
lea eax, [ebp - 0x18]
add esi, dword [ebp - 0x3c]
push eax
push 0x40
push 4
push esi
push dword [0x43bdf0]
call edi
push 0
push 4
lea eax, [ebp - 0x24]
push eax
push esi
push dword [0x43bdf0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 4
push esi
push dword [0x43bdf0]
call edi
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x402bd8
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
cmp eax, ecx
je 0x402b03
nop word [eax + eax]
cmp dword [eax], edx
je 0x402afb
add eax, 0x18
cmp eax, ecx
jne 0x402af0
cmp eax, ecx
jne 0x402bd8
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov esi, dword [0x43bddc]
push eax
push 0x40
push 4
add esi, ecx
mov dword [ebp - 0x7c], ecx
push esi
push dword [0x43bdf0]
call edi
push 0
push 4
lea eax, [ebp - 0x38]
push eax
push esi
push dword [0x43bdf0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 4
push esi
push dword [0x43bdf0]
call edi
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov esi, dword [0x43bdec]
push eax
push 0x40
push 0xc
add esi, ecx
mov dword [ebp - 0x78], ecx
push esi
push dword [0x43bdf0]
call edi
push 0
push 0xc
lea eax, [ebp - 0x50]
push eax
push esi
push dword [0x43bdf0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push 0xc
push esi
push dword [0x43bdf0]
call edi
movq xmm0, qword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x24]
movq qword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x68], ecx
movups xmmword [ebp - 0x64], xmm0
cmp eax, dword [ebx + 8]
je 0x402bcc
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x58]
movq qword [eax + 0x10], xmm0
add dword [ebx + 4], 0x18
jmp 0x402bd8
lea ecx, [ebp - 0x68]
push ecx
push eax
mov ecx, ebx
call fcn.00408510
mov eax, dword [ebp - 0x40]
add eax, 4
sub dword [ebp - 0x44], 1
mov dword [ebp - 0x40], eax
jne 0x402971
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040abcc
mov esp, ebp
pop ebp
ret