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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
push 0x40
push edi
xor ebx, ebx
call fcn.006ab570
add esp, 8
test eax, eax
jne 0x6ab284
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x3c]
cmp word [esi], 0x5a4d
je 0x6ab2a4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
push edi
call fcn.006ab570
add esp, 8
test eax, eax
jne 0x6ab2c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x6ab2e8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
cmp word [edi + 4], 0x14c
je 0x6ab305
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
test byte [edi + 0x38], 1
je 0x6ab320
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
xor ecx, ecx
xor eax, eax
mov cx, word [edi + 0x14]
mov ax, word [edi + 6]
test eax, eax
lea ecx, [ecx + edi + 0x18]
jbe 0x6ab357
add ecx, 0xc
mov esi, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x6ab347
mov eax, dword [ecx]
mov edx, dword [edi + 0x38]
jmp 0x6ab349
mov edx, dword [ecx]
add eax, edx
cmp eax, ebx
jbe 0x6ab351
mov ebx, eax
add ecx, 0x28
dec esi
jne 0x6ab339
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x50]
lea eax, [ecx - 1]
lea ebp, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebx - 1]
and ebp, eax
and ecx, eax
cmp ebp, ecx
je 0x6ab393
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x58]
mov edx, dword [edi + 0x34]
push esi
push 4
push 0x3000
push ebp
push edx
call dword [esp + 0x58]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x6ab3da
push esi
push 4
push 0x3000
push ebp
push eax
call dword [esp + 0x58]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x6ab3da
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
push 0x40
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap_1]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc_1]
mov ebp, eax
test ebp, ebp
jne 0x6ab412
push esi
push 0x8000
push eax
push ebx
call dword [esp + 0x58]
add esp, 0x10
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [ebp + 4], ebx
mov ax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [ebp + 0x1c], ecx
mov ecx, dword [esp + 0x50]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x20], edx
mov edx, dword [esp + 0x54]
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], edx
mov edx, dword [esp + 0x40]
mov dword [ebp + 0x34], esi
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x3c], eax
mov ecx, dword [edi + 0x54]
push ecx
push edx
call fcn.006ab570
add esp, 8
test eax, eax
je 0x6ab52a
mov eax, dword [edi + 0x54]
push esi
push 4
push 0x1000
push eax
push ebx
call dword [esp + 0x58]
mov ecx, dword [edi + 0x54]
mov esi, dword [esp + 0x50]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x28]
push esi
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebp], eax
mov dword [eax + 0x34], ebx
mov eax, dword [esp + 0x5c]
push eax
push ecx
call fcn.006ab590
add esp, 0x24
test eax, eax
je 0x6ab52a
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x34]
mov ecx, dword [esi + 0x34]
sub eax, ecx
je 0x6ab4d3
push eax
push ebp
call fcn.006ab940
add esp, 8
mov dword [ebp + 0x18], eax
jmp 0x6ab4da
mov dword [ebp + 0x18], 1
push ebp
call fcn.006ab9d0
add esp, 4
test eax, eax
je 0x6ab52a
push ebp
call fcn.006ab6b0
add esp, 4
test eax, eax
je 0x6ab52a
push ebp
call fcn.006ab8f0
add esp, 4
test eax, eax
je 0x6ab52a
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x6ab55a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x6ab54b
push 0
push 1
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x6ab53a
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError_1]
push ebp
call fcn.006abce0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
pop edi
mov dword [ebp + 0x10], 1
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
add eax, ebx
pop edi
mov dword [ebp + 0x38], eax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
pop edi
mov dword [ebp + 0x38], 0
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret