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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xe8]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x1016d640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, 0x1017121e
call fcn.10009c40
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xb0], 0
push 0x40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10004ed0
test eax, eax
jne 0x10005dc1
xor eax, eax
jmp 0x100062a2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x10005df0
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
xor eax, eax
jmp 0x100062a2
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.10004ed0
test eax, eax
jne 0x10005e14
xor eax, eax
jmp 0x100062a2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x4550
je 0x10005e46
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
xor eax, eax
jmp 0x100062a2
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
je 0x10005e70
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
xor eax, eax
jmp 0x100062a2
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
and ecx, 1
je 0x10005e96
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
xor eax, eax
jmp 0x100062a2
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x30]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x98], 0
jmp 0x10005ee0
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x28
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x98], ecx
jae 0x10005f49
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x10], 0
jne 0x10005f12
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xc8], ecx
jmp 0x10005f2a
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x8c]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0xb0]
jbe 0x10005f44
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb0], eax
jmp 0x10005ec2
mov esi, esp
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp esi, esp
call fcn.10009c10
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0x7c]
lea eax, [ecx + edx - 1]
mov ecx, dword [ebp - 0x7c]
sub ecx, 1
not ecx
and eax, ecx
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xb0]
lea edx, [ecx + eax - 1]
mov eax, dword [ebp - 0x7c]
sub eax, 1
not eax
and edx, eax
cmp dword [ebp - 0xbc], edx
je 0x10005fb3
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
xor eax, eax
jmp 0x100062a2
mov esi, esp
push 4
push 0x3000
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10009c10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10006020
mov esi, esp
push 4
push 0x3000
mov eax, dword [ebp - 0xbc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10009c10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10006020
mov esi, esp
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
xor eax, eax
jmp 0x100062a2
mov esi, esp
push 0x34
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.10009c10
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.10009c10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000607e
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp esi, esp
call fcn.10009c10
mov esi, esp
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
xor eax, eax
jmp 0x100062a2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 0x16]
and ecx, 0x2000
je 0x100060a2
mov dword [ebp - 0x1a8], 1
jmp 0x100060ac
mov dword [ebp - 0x1a8], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1a8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.10004ed0
test eax, eax
jne 0x10006106
jmp 0x10006294
mov esi, esp
push 4
push 0x1000
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10009c10
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x48]
push eax
call sub.VCRUNTIME140D.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10004f40
test eax, eax
jne 0x10006180
jmp 0x10006294
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x54], eax
je 0x100061ab
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.100063f0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], eax
jmp 0x100061b5
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10004b80
test eax, eax
jne 0x100061cf
jmp 0x10006294
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.100053a0
test eax, eax
jne 0x100061e9
jmp 0x10006294
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.100050e0
test eax, eax
jne 0x10006203
jmp 0x10006294
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x10006285
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
je 0x10006272
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xd4], edx
mov esi, esp
push 0
push 1
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0xd4]
cmp esi, esp
call fcn.10009c10
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
jne 0x10006266
mov esi, esp
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.10009c10
jmp 0x10006294
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 1
jmp 0x10006283
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], edx
jmp 0x1000628f
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x18]
jmp 0x100062a2
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.100055a0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x100062d4]
call fcn.10009bb0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009c80
add esp, 0x1a8
cmp ebp, esp
call fcn.10009c10
mov esp, ebp
pop ebp
ret 0x18