Function at 0x425d80
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 0x425d98
cmp ebp, 0x40
jb 0x425db6
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4263e2
test ebp, ebp
je 0x425dc8
mov eax, dword [ecx + 0x3c]
add eax, 0xf8
cmp ebp, eax
jae 0x425dc8
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 0x4263e2
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x4263e2
mov ebx, dword [eax + 0x38]
test bl, 1
jne 0x4263e2
movzx edx, word [eax + 0x14]
movzx edi, word [eax + 6]
add edx, 0x24
test edi, edi
je 0x425e30
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 0x425e10
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 0x4263e2
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 0x425e80
push 4
push 0x3000
push edi
push eax
call esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x425eac
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 0x425ebe
mov ecx, dword [esp + 0x10]
push 0x8000
push eax
push ecx
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 ecx, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov dword [edi + 4], ecx
movzx eax, word [ebx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [edi + 0x20], 0x425ce0
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], 0x425d00
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x40], eax
test ebp, ebp
je 0x425f27
mov edx, dword [ebx + 0x54]
mov ecx, ebp
call fcn.00425900
test eax, eax
je 0x426056
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 fcn.004b9800
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 0x42602a
add ebx, ecx
nop
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x425fc6
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x426010
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 0x426056
mov eax, dword [ebx]
add eax, dword [esp + 0x18]
push esi
push 0
push eax
mov dword [ebx - 4], eax
call fcn.004b7c10
jmp 0x426009
test ebp, ebp
je 0x425fd3
mov eax, dword [ebx + 8]
add eax, ecx
cmp ebp, eax
jb 0x42604e
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 0x426056
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 fcn.004b9800
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 0x425f80
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x34]
mov dword [esp + 0x28], eax
je 0x4260f3
cmp dword [ecx + 0xa4], 0
jne 0x426067
xor eax, eax
jmp 0x4260f8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.00426580
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 0x4260f3
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 0x4260ce
mov edi, dword [esp + 0x28]
nop dword [eax + eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x4260bb
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 0x4260a0
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 0x426080
mov eax, 1
mov ecx, edi
mov dword [edi + 0x1c], eax
call fcn.004259c0
test eax, eax
je 0x426056
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 0x426146
mov eax, dword [ebp + 0x3c]
test al, 0x40
je 0x42613f
mov edx, dword [ebx + 0x20]
jmp 0x426146
test al, al
jns 0x426146
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 0x426228
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 0x4261a3
mov eax, dword [ebp]
test al, 0x40
je 0x426198
mov eax, dword [ebx + 0x20]
jmp 0x42619f
test al, al
jns 0x4261a3
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], esi
je 0x4261e7
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, esi
ja 0x4261e7
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.00425920
test eax, eax
je 0x426056
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 0x426208
mov edx, dword [ebp]
mov eax, ecx
and eax, edx
or ecx, edx
bt eax, 0x19
jb 0x4261fc
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 0x426173
lea edx, [esp + 0x2c]
mov dword [esp + 0x3c], 1
mov ecx, edi
call fcn.00425920
test eax, eax
je 0x426056
mov ecx, dword [esp + 0x14]
xor esi, esi
mov eax, dword [0x507b10]
cdq
cmp dword [ecx + 0x34], eax
jne 0x426258
cmp esi, edx
je 0x426286
mov eax, dword [edi]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x426286
mov ebx, dword [edi + 4]
mov esi, dword [esi + ebx + 0xc]
test esi, esi
je 0x426286
mov eax, dword [esi]
test eax, eax
je 0x426286
push 0
push 1
push ebx
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x426275
mov edx, dword [edi]
mov esi, dword [edx + 0x28]
test esi, esi
je 0x4263d1
cmp dword [edi + 0x18], 0
je 0x4263be
cmp byte [esp + 0x5c], 0
je 0x4263ad
mov eax, dword fs:[0x30]
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], 0
mov dword [0x508624], ecx
mov ebp, dword [eax + 0xa0]
mov eax, dword [edx + 0x50]
add eax, ecx
push ebp
mov dword [0x508620], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x24]
push eax
push str.RtlPcToFileHeader
push 0x4da4dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.00426b70
add esp, 4
mov dword [0x50861c], eax
mov eax, dword [esp + 0x10]
push edi
push 1
push eax
add eax, esi
call eax
mov ebx, dword [0x50861c]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx]
mov dl, byte [ebx + 0x14]
and dl, 1
movzx eax, dl
lea esi, [ecx - 5]
cmove esi, ecx
lea ecx, [esp + 0x28]
push ecx
lea eax, [eax*2 + 5]
push 0x40
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x42637b
mov eax, dword [ebx + 0xc]
test byte [ebx + 0x14], 1
mov dword [esi], eax
je 0x426361
mov ax, word [ebx + 0x10]
mov word [esi + 4], ax
mov al, byte [ebx + 0x12]
mov byte [esi + 6], al
jmp 0x426367
mov al, byte [ebx + 0x10]
mov byte [esi + 4], al
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [0x50861c]
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 0x4263ad
push 0x45a
jmp 0x426050
mov dword [edi + 0x14], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
add eax, esi
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