Function at 0x424ba0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get number of processors
Get system information on windows
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x20], ebx
push edi
test ebx, ebx
je 0x424bbc
cmp ebx, 0x40
jb 0x424bda
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4251f2
test ebx, ebx
je 0x424bec
mov eax, dword [ecx + 0x3c]
add eax, 0xf8
cmp ebx, eax
jae 0x424bec
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov ebp, dword [ecx + 0x3c]
add ebp, ecx
mov dword [esp + 0x18], ebp
cmp dword [ebp], 0x4550
jne 0x4251f2
mov eax, 0x14c
cmp word [ebp + 4], ax
jne 0x4251f2
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x28], ecx
test cl, 1
jne 0x4251f2
movzx edx, word [ebp + 0x14]
movzx edi, word [ebp + 6]
add edx, 0x24
test edi, edi
je 0x424c50
add edx, ebp
mov eax, dword [edx + 4]
lea edx, [edx + 0x28]
test eax, eax
cmovne ecx, eax
add ecx, dword [edx - 0x28]
cmp ecx, esi
cmovbe ecx, esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
sub edi, 1
jne 0x424c32
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [esp + 0x48]
lea edx, [ecx - 1]
lea edi, [ecx - 1]
not edx
add edi, dword [ebp + 0x50]
lea eax, [ecx - 1]
add eax, esi
and edi, edx
and eax, edx
cmp edi, eax
jb 0x4251f2
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push edi
push dword [ebp + 0x34]
call esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x424cbd
push 4
push 0x3000
push edi
push eax
call esi
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x424cbf
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov edi, eax
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x424cf9
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov dword [ebp + 4], edi
mov edi, dword [esp + 0x18]
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x74]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x30], eax
test ebx, ebx
je 0x424d46
mov edx, dword [edi + 0x54]
mov ecx, ebx
call fcn.00424780
test eax, eax
je 0x424e86
push 4
push 0x1000
push dword [edi + 0x54]
push dword [esp + 0x1c]
call esi
push dword [edi + 0x54]
mov ebx, dword [esp + 0x20]
mov esi, eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
add eax, esi
mov dword [ebp], eax
mov dword [esp + 0x20], 0
mov dword [eax + 0x34], ecx
xor eax, eax
mov edi, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], edx
movzx ebx, word [edi + 0x14]
add ebx, 0x24
cmp ax, word [edi + 6]
jae 0x424e5a
add ebx, edi
nop
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x424df4
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x424e3f
mov eax, dword [ebx]
push 0x40
push 0x1000
push esi
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x424e86
mov edi, dword [ebx]
mov edx, dword [esp + 0x14]
add edi, edx
mov dword [ebx - 4], edi
test esi, esi
je 0x424e3f
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x424e3b
mov edx, dword [esp + 0x24]
test edx, edx
je 0x424e05
mov eax, dword [ebx + 8]
add eax, ecx
cmp edx, eax
jb 0x424e7e
mov eax, dword [ebx]
mov edi, dword [esp + 0x14]
add eax, edi
push 0x40
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x424e86
push dword [ebx + 4]
mov eax, dword [ebx + 8]
mov esi, dword [ebx]
add eax, dword [esp + 0x20]
add esi, edi
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx - 4], esi
mov edx, dword [esp + 0x14]
mov edi, dword [ebp]
add ebx, 0x28
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
movzx eax, word [edi + 6]
cmp esi, eax
jl 0x424da0
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x34]
sub eax, dword [ecx + 0x34]
mov dword [esp + 0x28], eax
je 0x424f01
cmp dword [edi + 0xa4], 0
jne 0x424e97
xor eax, eax
jmp 0x424f06
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebp
call fcn.004252c0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov ecx, dword [ebp + 4]
mov edi, dword [edi + 0xa0]
add edi, ecx
mov dword [esp + 0x24], ecx
mov eax, dword [edi]
test eax, eax
je 0x424f01
mov ebp, dword [esp + 0x28]
lea ebx, [eax + ecx]
xor esi, esi
mov ecx, dword [edi + 4]
lea edx, [edi + 8]
lea eax, [ecx - 8]
test eax, 0xfffffffe
jbe 0x424ef0
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x424ee0
and eax, 0xfff
add dword [eax + ebx], ebp
mov ecx, dword [edi + 4]
inc esi
add edx, 2
lea eax, [ecx - 8]
shr eax, 1
cmp esi, eax
jb 0x424ec5
mov eax, dword [edi + ecx]
add edi, ecx
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x424eb0
mov ebp, dword [esp + 0x2c]
mov eax, 1
mov ecx, ebp
mov dword [ebp + 0x18], eax
call fcn.00424840
test eax, eax
je 0x424e86
mov edi, dword [ebp]
mov ecx, dword [ebp + 0x30]
neg ecx
movzx ebx, word [edi + 0x14]
add ebx, edi
mov eax, dword [ebx + 0x20]
and ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
test ecx, ecx
jne 0x424f55
mov eax, dword [ebx + 0x3c]
test al, 0x40
je 0x424f4e
mov ecx, dword [edi + 0x20]
jmp 0x424f55
test al, al
jns 0x424f55
mov ecx, dword [edi + 0x24]
mov edx, dword [ebx + 0x3c]
mov eax, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x28], 1
cmp ax, word [edi + 6]
jae 0x425035
add ebx, 0x64
mov esi, dword [ebp + 0x30]
mov eax, dword [ebx - 0x1c]
neg esi
and esi, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx - 0x14]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x424fb1
mov eax, dword [ebx]
test al, 0x40
je 0x424fa6
mov eax, dword [edi + 0x20]
jmp 0x424fad
test al, al
jns 0x424fb1
mov eax, dword [edi + 0x24]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x20], esi
je 0x424ff5
mov eax, dword [esp + 0x1c]
add eax, ecx
cmp eax, esi
ja 0x424ff5
lea edx, [esp + 0x30]
mov ecx, ebp
call fcn.004247a0
test eax, eax
je 0x424e86
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
mov edi, dword [ebp]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
jmp 0x425015
mov ecx, dword [ebx]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x425009
and edx, 0xfdffffff
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add ebx, 0x28
movzx eax, word [edi + 6]
inc esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], esi
cmp esi, eax
jl 0x424f82
lea edx, [esp + 0x30]
mov dword [esp + 0x40], 1
mov ecx, ebp
call fcn.004247a0
test eax, eax
je 0x424e86
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x34]
cmp eax, dword [0x4e4bfc]
je 0x425091
mov eax, dword [ebp]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x425091
mov edi, dword [ebp + 4]
mov esi, dword [esi + edi + 0xc]
test esi, esi
je 0x425091
mov eax, dword [esi]
test eax, eax
je 0x425091
nop dword [eax]
push 0
push 1
push edi
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x425080
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x4251e1
cmp dword [ebp + 0x14], 0
je 0x4251d0
cmp byte [esp + 0x7c], 0
je 0x4251bf
mov edi, dword [esp + 0x10]
lea edi, [eax + edi]
mov eax, dword fs:[0x30]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x24], 0
mov dword [0x4e56f8], ecx
mov ebx, dword [eax + 0xa0]
mov eax, dword [edx + 0x50]
add eax, ecx
cmp dword [0x4e7a40], 0
mov dword [0x4e56f4], eax
jne 0x425107
push str.RtlPcToFileHeader
push 0x4b8d14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e7a40], eax
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x24]
push eax
call fcn.004258a0
add esp, 4
mov esi, eax
push ebp
push 1
push dword [esp + 0x18]
call edi
mov dword [esp + 0x20], eax
test esi, esi
je 0x4251a7
mov ecx, dword [esi]
mov dl, byte [esi + 0x14]
and dl, 1
movzx eax, dl
lea edi, [ecx - 5]
cmove edi, ecx
lea ecx, [esp + 0x28]
push ecx
lea eax, [eax*2 + 5]
push 0x40
push eax
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x425192
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x425178
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x42517e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [esp + 0x28]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
jne 0x4251bf
push 0x45a
jmp 0x424e80
mov dword [ebp + 0x10], 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
add eax, dword [esp + 0x10]
mov dword [ebp + 0x2c], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov dword [ebp + 0x2c], 0
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret