Function at 0x425f10
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 0x425f28
cmp ebp, 0x40
jb 0x425f46
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x42656c
test ebp, ebp
je 0x425f58
mov eax, dword [ecx + 0x3c]
add eax, 0xf8
cmp ebp, eax
jae 0x425f58
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 0x42656c
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x42656c
mov ebx, dword [eax + 0x38]
test bl, 1
jne 0x42656c
movzx edx, word [eax + 0x14]
movzx edi, word [eax + 6]
add edx, 0x24
test edi, edi
je 0x425fc0
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 0x425fa0
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 0x42656c
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 0x426010
push 4
push 0x3000
push edi
push eax
call esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x42603c
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 0x42604e
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], 0x425e70
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], 0x425e90
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x40], eax
test ebp, ebp
je 0x4260b7
mov edx, dword [ebx + 0x54]
mov ecx, ebp
call fcn.00425a90
test eax, eax
je 0x4261e6
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 0x4261ba
add ebx, ecx
nop
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x426156
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x4261a0
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 0x4261e6
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 0x426199
test ebp, ebp
je 0x426163
mov eax, dword [ebx + 8]
add eax, ecx
cmp ebp, eax
jb 0x4261de
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 0x4261e6
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 0x426110
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x34]
mov dword [esp + 0x28], eax
je 0x426283
cmp dword [ecx + 0xa4], 0
jne 0x4261f7
xor eax, eax
jmp 0x426288
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.00426710
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 0x426283
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 0x42625e
mov edi, dword [esp + 0x28]
nop dword [eax + eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x42624b
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 0x426230
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 0x426210
mov eax, 1
mov ecx, edi
mov dword [edi + 0x1c], eax
call fcn.00425b50
test eax, eax
je 0x4261e6
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 0x4262d6
mov eax, dword [ebp + 0x3c]
test al, 0x40
je 0x4262cf
mov edx, dword [ebx + 0x20]
jmp 0x4262d6
test al, al
jns 0x4262d6
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 0x4263b8
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 0x426333
mov eax, dword [ebp]
test al, 0x40
je 0x426328
mov eax, dword [ebx + 0x20]
jmp 0x42632f
test al, al
jns 0x426333
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], esi
je 0x426377
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, esi
ja 0x426377
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.00425ab0
test eax, eax
je 0x4261e6
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 0x426398
mov edx, dword [ebp]
mov eax, ecx
and eax, edx
or ecx, edx
bt eax, 0x19
jb 0x42638c
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 0x426303
lea edx, [esp + 0x2c]
mov dword [esp + 0x3c], 1
mov ecx, edi
call fcn.00425ab0
test eax, eax
je 0x4261e6
mov ecx, dword [esp + 0x14]
xor esi, esi
mov eax, dword [0x4e5a50]
cdq
cmp dword [ecx + 0x34], eax
jne 0x4263e8
cmp esi, edx
je 0x426416
mov eax, dword [edi]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x426416
mov ebx, dword [edi + 4]
mov esi, dword [esi + ebx + 0xc]
test esi, esi
je 0x426416
mov eax, dword [esi]
test eax, eax
je 0x426416
push 0
push 1
push ebx
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x426405
mov edx, dword [edi]
mov esi, dword [edx + 0x28]
test esi, esi
je 0x42655b
cmp dword [edi + 0x18], 0
je 0x426548
cmp byte [esp + 0x5c], 0
je 0x426537
mov eax, dword fs:[0x30]
mov ecx, dword [edi + 4]
mov dword [0x4e656c], ecx
mov ebp, dword [eax + 0xa0]
mov eax, dword [edx + 0x50]
add eax, ecx
push ebp
mov dword [0x4e6568], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ecx
push str.RtlPcToFileHeader
push 0x4b9d54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.00426d10
add esp, 4
mov dword [0x4e6560], eax
mov eax, dword [esp + 0x10]
push edi
push 1
push eax
add eax, esi
call eax
mov ebx, dword [0x4e6560]
mov dword [esp + 0x20], 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 + 0x34], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4264ff
mov eax, dword [ebx + 0xc]
test byte [ebx + 0x14], 1
mov dword [esi], eax
je 0x4264e5
mov ax, word [ebx + 0x10]
mov word [esi + 4], ax
mov al, byte [ebx + 0x12]
mov byte [esi + 6], al
jmp 0x4264eb
mov al, byte [ebx + 0x10]
mov byte [esi + 4], al
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [0x4e6560]
push 0
push dword [0x4e6564]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x4e6564]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
jne 0x426537
push 0x45a
jmp 0x4261e0
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