Function at 0x10001d00
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp ecx, 0x40
jae 0x10001d25
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
cmp word [eax], dx
je 0x10001d45
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [eax + 0x3c]
lea edx, [ebx + 0xf8]
cmp ecx, edx
jae 0x10001d64
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10001d81
mov eax, 0x14c
cmp word [ebx + 4], ax
jne 0x10001d81
mov edx, dword [ebx + 0x38]
test dl, 1
je 0x10001d95
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, word [ebx + 6]
movzx ecx, word [ebx + 0x14]
push esi
push edi
lea ecx, [ecx + ebx + 0x18]
test eax, eax
je 0x10001dcd
lea esi, [ecx + 0xc]
mov edi, eax
lea esp, [esp]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
jne 0x10001dbd
add eax, edx
jmp 0x10001dbf
add eax, ecx
cmp eax, dword [ebp - 4]
jbe 0x10001dc7
mov dword [ebp - 4], eax
add esi, 0x28
dec edi
jne 0x10001db0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebx + 0x50]
lea esi, [edx + ecx - 1]
mov edx, dword [ebp - 4]
lea eax, [ecx - 1]
not eax
lea ecx, [ecx + edx - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
je 0x10001e0b
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx + 0x34]
push 4
push 0x3000
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10001e38
push 4
push 0x3000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x10001e5c
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x10001e6f
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 4], edi
movzx eax, word [ebx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0x10001cc0
mov dword [esi + 0x20], 0x10001cd0
mov dword [esi + 0x24], 0x10001cf0
mov dword [esi + 0x28], 0
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x30], ecx
mov edx, dword [ebx + 0x54]
push edx
call fcn.10001760
test eax, eax
je 0x10001f5c
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.10006e60
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
add esp, 0xc
push esi
mov dword [esi], eax
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.10001780
test eax, eax
je 0x10001f5c
mov ecx, dword [esi]
mov eax, dword [ecx + 0x34]
sub eax, dword [ebx + 0x34]
je 0x10001f10
push eax
mov eax, esi
call fcn.10001aa0
mov dword [esi + 0x18], eax
jmp 0x10001f17
mov dword [esi + 0x18], 1
call fcn.10001b40
test eax, eax
je 0x10001f5c
push esi
call fcn.10001920
test eax, eax
je 0x10001f5c
mov eax, esi
call fcn.10001a60
test eax, eax
je 0x10001f5c
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x10001f8c
add eax, edi
cmp dword [esi + 0x14], 0
je 0x10001f7e
push 0
push 1
push edi
call eax
test eax, eax
jne 0x10001f6c
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10001fa0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x2c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8