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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
push 0x40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10061d60
test eax, eax
jne 0x10062580
xor eax, eax
jmp 0x10062970
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x100625a5
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10062970
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10061d60
test eax, eax
jne 0x100625c9
xor eax, eax
jmp 0x10062970
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100625f2
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10062970
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 4]
cmp edx, 0x14c
je 0x10062613
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10062970
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
and ecx, 1
je 0x10062630
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10062970
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], 0
jmp 0x10062665
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x100626a7
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
jne 0x10062688
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jmp 0x10062697
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jbe 0x100626a5
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
jmp 0x10062653
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0x64]
lea eax, [ecx + edx - 1]
mov ecx, dword [ebp - 0x64]
sub ecx, 1
not ecx
and eax, ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx - 1]
mov edx, dword [ebp - 0x64]
sub edx, 1
not edx
and ecx, edx
cmp dword [ebp - 0x28], ecx
je 0x100626f6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10062970
push 4
push 0x3000
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10062742
push 4
push 0x3000
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10062742
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10062970
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1006277c
push 0x8000
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10062970
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
je 0x1006279d
mov dword [ebp - 0x2c], 1
jmp 0x100627a4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x64]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10061d60
test eax, eax
jne 0x100627fb
jmp 0x10062962
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.10061d90
test eax, eax
jne 0x1006286c
jmp 0x10062962
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x34]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0x34], edx
je 0x10062897
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100629e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x100628a1
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.10061b10
test eax, eax
jne 0x100628bb
jmp 0x10062962
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.100620c0
test eax, eax
jne 0x100628d5
jmp 0x10062962
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10061ef0
test eax, eax
jne 0x100628e9
jmp 0x10062962
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x10062953
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x10062940
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x10062934
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10062962
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
jmp 0x10062951
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
jmp 0x1006295d
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 4]
jmp 0x10062970
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10062240
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18