Function at 0xb7ded8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebx], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0x40
call fcn.00b7d780
test al, al
jne 0xb7df11
push 0xd
call sub.kernel32.dll_SetLastError
jmp 0xb7e2a1
mov dword [ebx], 1
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0xb7df30
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb7e2a1
mov dword [ebx], 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
add eax, 0xf8
cdq
push edx
push eax
call fcn.00b7d780
test al, al
jne 0xb7df5c
push 0xd
call sub.kernel32.dll_SetLastError
jmp 0xb7e2a1
mov dword [ebx], 3
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [edi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
cmp dword [esi], 0x4550
je 0xb7df90
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb7e2a1
mov dword [ebx], 4
cmp word [esi + 4], 0x14c
je 0xb7dfad
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb7e2a1
mov dword [ebx], 5
test byte [esi + 0x38], 1
je 0xb7dfc8
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb7e2a1
mov dword [ebx], 6
xor eax, eax
push ebp
push 0xb7e28c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 1
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esi + 0x50]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
call fcn.00b7d70c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, esi
call fcn.00b7d880
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
call fcn.00b7d70c
cmp edx, dword [ebp - 0xc]
jne 0xb7e01f
cmp eax, dword [ebp - 0x10]
je 0xb7e02f
push 0xc1
call sub.kernel32.dll_SetLastError
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
je 0xb7e282
mov dword [ebx], 7
push 0x18
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xb7e062
push 0xe
call sub.kernel32.dll_SetLastError
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
je 0xb7e282
mov dword [ebx], 8
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
mov dl, 1
mov eax, dword [0xa2a250]
call fcn.00a14440
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, 0x64
call fcn.00a2ce94
mov eax, dword [ebp - 0x44]
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [ebx], 9
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [esi + 0x34]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0xb7e112
mov dword [ebx], 0xa
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0xb7e112
mov dword [ebx], 9
push 0xe
call sub.kernel32.dll_SetLastError
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00b7e2b0
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
je 0xb7e282
mov dword [ebx], 0xa
mov ecx, dword [edi + 0x3c]
add ecx, dword [esi + 0x54]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
call fcn.00a1893c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [edi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x34], eax
mov dword [ebx], 0xb
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp + 8]
call fcn.00b7d90c
mov dword [ebx], 0xc
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x34]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0xb7e19c
cmp dword [ebp - 0x20], 0
je 0xb7e1af
mov dword [ebx], 0xd
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00b7d9a8
mov dword [ebx], 0xe
mov eax, dword [ebp - 8]
push eax
call fcn.00b7db08
test al, al
jne 0xb7e1d1
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00b7e2b0
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
je 0xb7e282
mov dword [ebx], 0xf
mov eax, dword [ebp - 8]
call fcn.00b7dda4
test al, al
jne 0xb7e205
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00b7e2b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb7e2a1
mov dword [ebx], 0x10
mov eax, dword [ebp - 8]
call fcn.00b7de68
mov dword [ebx], 0x11
cmp byte [ebp + 0x18], 0
je 0xb7e26c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0xb7e26c
mov dword [ebx], 0x12
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
call fcn.00b7d7a8
mov esi, eax
mov dword [ebx], 0x13
test esi, esi
je 0xb7e26c
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0xb7e26c
push 0x45a
call sub.kernel32.dll_SetLastError
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
je 0xb7e282
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb7e2a1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14