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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 8], 0
push 0x40
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call fcn.10001404
test eax, eax
je 0x10001cc1
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x10001a98
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001ab0
mov eax, dword [esi + 0x3c]
mov ecx, dword [ebp - 4]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.10001404
test eax, eax
jne 0x10001ab7
xor eax, eax
jmp 0x10001cc0
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x10001ad0
mov eax, 0x14c
cmp word [edi + 4], ax
je 0x10001ae2
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10001cbf
push ebx
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x10001b42
movzx edx, word [edi + 6]
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
test edx, edx
je 0x10001b1b
lea ecx, [eax + 0xc]
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
test esi, esi
jne 0x10001b0b
add eax, ebx
jmp 0x10001b0d
add eax, esi
cmp eax, dword [ebp - 8]
jbe 0x10001b15
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10001afe
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0x50]
lea esi, [edx + eax - 1]
mov edx, dword [ebp - 8]
lea ecx, [eax - 1]
not ecx
lea eax, [eax + edx - 1]
and esi, ecx
and eax, ecx
cmp esi, eax
je 0x10001b49
push 0xc1
jmp 0x10001b9b
push 4
push 0x3000
push esi
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10001b75
push 4
push 0x3000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x10001b99
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 0x10001ba6
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001ca9
mov dword [esi + 4], ebx
movzx eax, word [edi + 0x16]
mov ecx, dword [ebp - 4]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x30], eax
push dword [edi + 0x54]
push dword [ebp + 0xc]
call fcn.10001404
test eax, eax
je 0x10001ca0
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [edi + 0x54]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push eax
call fcn.1000133a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp + 0x10]
add esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov dword [esi], eax
push ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0x34], ebx
call fcn.10001422
test eax, eax
je 0x10001ca0
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10001c49
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.10001720
xor edi, edi
mov dword [esi + 0x18], eax
inc edi
jmp 0x10001c4f
xor edi, edi
inc edi
mov dword [esi + 0x18], edi
mov ecx, dword [ebp - 4]
push esi
call fcn.100017ac
test eax, eax
je 0x10001ca0
mov ecx, dword [ebp - 4]
push esi
call fcn.100015d0
test eax, eax
je 0x10001ca0
mov ecx, dword [ebp - 4]
push esi
call fcn.100016e6
test eax, eax
je 0x10001ca0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
xor ecx, ecx
cmp eax, ecx
je 0x10001cb9
cmp dword [esi + 0x14], ecx
je 0x10001cb2
push ecx
push edi
add ebx, eax
push 0x10000000
call ebx
test eax, eax
jne 0x10001cad
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
push esi
call fcn.100019e2
xor eax, eax
jmp 0x10001cbe
mov dword [esi + 0x10], edi
jmp 0x10001cbc
add eax, ebx
mov dword [esi + 0x2c], eax
jmp 0x10001cbc
mov dword [esi + 0x2c], ecx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x18