Function at 0x424c30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get number of processors
Parse pe header

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x18], ecx
xor esi, esi
push edi
test ebp, ebp
je 0x424c48
cmp ebp, 0x40
jb 0x424c66
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x425296
test ebp, ebp
je 0x424c78
mov eax, dword [ecx + 0x3c]
add eax, 0xf8
cmp ebp, eax
jae 0x424c78
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [esp + 0x14], eax
cmp dword [eax], 0x4550
jne 0x425296
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x425296
mov ebx, dword [eax + 0x38]
test bl, 1
jne 0x425296
movzx edx, word [eax + 0x14]
movzx edi, word [eax + 6]
add edx, 0x24
test edi, edi
je 0x424ce0
add edx, eax
nop dword [eax]
mov eax, dword [edx + 4]
lea edx, [edx + 0x28]
test eax, eax
mov ecx, ebx
cmovne ecx, eax
add ecx, dword [edx - 0x28]
cmp ecx, esi
cmovbe ecx, esi
mov esi, ecx
sub edi, 1
jne 0x424cc0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
lea edi, [ebx - 1]
add edi, eax
lea ecx, [ebx - 1]
lea eax, [ebx - 1]
not ecx
add eax, esi
and edi, ecx
and eax, ecx
cmp edi, eax
jne 0x425296
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push edi
push dword [ebx + 0x34]
call esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x424d30
push 4
push 0x3000
push edi
push eax
call esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x424d5b
push 0x44
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x424d6d
push 0x8000
push eax
push dword [esp + 0x18]
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, 0x30
ret
push 0
push 4
push 8
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
movzx eax, word [ebx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [edi + 0x20], 0x424b90
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x24], 0x424bb0
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x40], eax
test ebp, ebp
je 0x424dd6
mov edx, dword [ebx + 0x54]
mov ecx, ebp
call fcn.004247b0
test eax, eax
je 0x424f06
push 4
push 0x1000
push dword [ebx + 0x54]
push dword [esp + 0x1c]
call esi
push dword [ebx + 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 [edi], eax
mov dword [esp + 0x20], 0
mov dword [eax + 0x34], ecx
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x18], edx
movzx ebx, word [ecx + 0x14]
add ebx, 0x24
cmp ax, word [ecx + 6]
jae 0x424eda
add ebx, ecx
nop dword [eax]
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x424e76
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x424ec0
push dword [edi + 0x38]
mov eax, dword [ebx]
push 4
push 0x1000
add eax, edx
push esi
push eax
mov eax, dword [edi + 0x20]
call eax
add esp, 0x14
test eax, eax
je 0x424f06
mov eax, dword [ebx]
add eax, dword [esp + 0x18]
push esi
push 0
push eax
mov dword [ebx - 4], eax
call sub.VCRUNTIME140.dll_memset
jmp 0x424eb9
test ebp, ebp
je 0x424e83
mov eax, dword [ebx + 8]
add eax, ecx
cmp ebp, eax
jb 0x424efe
push dword [edi + 0x38]
mov eax, dword [ebx]
push 4
push 0x1000
add eax, edx
push ecx
push eax
mov eax, dword [edi + 0x20]
call eax
add esp, 0x14
test eax, eax
je 0x424f06
push dword [ebx + 4]
mov eax, dword [ebx + 8]
mov esi, dword [ebx]
add eax, dword [esp + 0x20]
add esi, dword [esp + 0x1c]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov dword [ebx - 4], esi
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [edi]
add ebx, 0x28
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jl 0x424e30
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x34]
mov dword [esp + 0x28], eax
je 0x424fa3
cmp dword [ecx + 0xa4], 0
jne 0x424f17
xor eax, eax
jmp 0x424fa8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.00425430
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [ecx + 0xa0]
mov edx, dword [edi + 4]
add eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x424fa3
lea ebx, [eax + 4]
xor esi, esi
lea ebp, [ecx + edx]
lea edx, [eax + 8]
mov eax, dword [ebx]
sub eax, 8
test eax, 0xfffffffe
jbe 0x424f7e
mov edi, dword [esp + 0x28]
nop dword [eax + eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x424f6b
and eax, 0xfff
add dword [eax + ebp], edi
mov eax, dword [ebx]
inc esi
sub eax, 8
add edx, 2
shr eax, 1
cmp esi, eax
jb 0x424f50
mov edi, dword [esp + 0x24]
push dword [edi + 0x40]
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x20]
add eax, dword [ebx]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
test ecx, ecx
jne 0x424f30
mov eax, 1
mov ecx, edi
mov dword [edi + 0x1c], eax
call fcn.00424870
test eax, eax
je 0x424f06
mov ebx, dword [edi]
mov ecx, dword [edi + 0x40]
neg ecx
movzx ebp, word [ebx + 0x14]
add ebp, ebx
mov eax, dword [ebp + 0x20]
and ecx, eax
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
test edx, edx
jne 0x424ff6
mov eax, dword [ebp + 0x3c]
test al, 0x40
je 0x424fef
mov edx, dword [ebx + 0x20]
jmp 0x424ff6
test al, al
jns 0x424ff6
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x3c]
mov eax, 1
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 1
cmp ax, word [ebx + 6]
jae 0x4250d8
add ebp, 0x64
mov esi, dword [edi + 0x40]
mov eax, dword [ebp - 0x1c]
neg esi
and esi, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x425053
mov eax, dword [ebp]
test al, 0x40
je 0x425048
mov eax, dword [ebx + 0x20]
jmp 0x42504f
test al, al
jns 0x425053
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], esi
je 0x425097
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, esi
ja 0x425097
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.004247d0
test eax, eax
je 0x424f06
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
mov ebx, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
jmp 0x4250b8
mov edx, dword [ebp]
mov eax, ecx
and eax, edx
or ecx, edx
bt eax, 0x19
jb 0x4250ac
and ecx, 0xfdffffff
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x1c]
add edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add ebp, 0x28
movzx eax, word [ebx + 6]
inc esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], esi
cmp esi, eax
jl 0x425023
lea edx, [esp + 0x2c]
mov dword [esp + 0x3c], 1
mov ecx, edi
call fcn.004247d0
test eax, eax
je 0x424f06
mov ecx, dword [esp + 0x14]
xor esi, esi
mov eax, dword [0x4e5c10]
cdq
cmp dword [ecx + 0x34], eax
jne 0x425108
cmp esi, edx
je 0x425136
mov eax, dword [edi]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x425136
mov ebx, dword [edi + 4]
mov esi, dword [esi + ebx + 0xc]
test esi, esi
je 0x425136
mov eax, dword [esi]
test eax, eax
je 0x425136
push 0
push 1
push ebx
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x425125
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x425285
cmp dword [edi + 0x18], 0
je 0x425274
cmp byte [esp + 0x5c], 0
je 0x425263
mov ebx, dword [esp + 0x10]
lea ebx, [eax + ebx]
mov eax, dword fs:[0x30]
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], 0
mov dword [0x4e670c], ecx
mov ebp, dword [eax + 0xa0]
mov eax, dword [edx + 0x50]
add eax, ecx
cmp dword [0x4e8a50], 0
mov dword [0x4e6708], eax
jne 0x4251ab
push str.RtlPcToFileHeader
push 0x4b9d0c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e8a50], eax
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x24]
push eax
call fcn.00425a40
add esp, 4
mov esi, eax
push edi
push 1
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x1c], eax
test esi, esi
je 0x42524b
mov ecx, dword [esi]
mov dl, byte [esi + 0x14]
and dl, 1
movzx eax, dl
lea ebx, [ecx - 5]
cmove ebx, ecx
lea ecx, [esp + 0x28]
push ecx
lea eax, [eax*2 + 5]
push 0x40
push eax
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x425236
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [ebx], eax
je 0x42521c
mov ax, word [esi + 0x10]
mov word [ebx + 4], ax
mov al, byte [esi + 0x12]
mov byte [ebx + 6], al
jmp 0x425222
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ebx
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 ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x1c], 0
jne 0x425263
push 0x45a
jmp 0x424f00
mov dword [edi + 0x14], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
add eax, dword [esp + 0x10]
mov dword [edi + 0x3c], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov dword [edi + 0x3c], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret