Function at 0x1000a470
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
int3
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
sub esp, 0x28
cmp word [eax], cx
je 0x1000a494
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
je 0x1000a4b0
jne 0x1000a4b0
push 0xaef96b6e
mov byte [0x4a46dd02], al
xrelease xchg dword [esi], ecx
loopne 0x1000a457
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x1000a4ce
mov edx, 0x14c
cmp word [edi + 4], dx
jne 0x1000a4ce
test byte [edi + 0x38], 1
je 0x1000a4e0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push eax
push ecx
call esi
mov ebx, eax
test ebx, ebx
jne 0x1000a513
mov edx, dword [edi + 0x50]
push 4
push 0x3000
push edx
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x1000a550
jb 0x1000a52c
jae 0x1000a52c
jle 0x1000a58f
xchg edi, eax
dec edx
pop ebx
pop esi
lahf
sub dword [0x96bf3463], edx
pop edx
stosd dword es:[edi], eax
into
add dword [esi + 0x346af7c9], eax
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 0x1000a561
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ebx
movzx eax, word [edi + 0x16]
shr eax, 0xd
lea ecx, [ebp - 0x28]
and eax, 1
push ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], 0x1000a410
mov dword [esi + 0x20], 0x1000a440
mov dword [esi + 0x24], 0x1000a460
mov dword [esi + 0x28], 0
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [ebp - 0x24]
mov dword [esi + 0x30], edx
jae 0x1000a5bd
jb 0x1000a5bd
aas
xchg dword [eax - 0x7d], edx
cmc
outsd dx, dword [esi]
mov esp, 0x259cef17
dec edi
xor dl, byte [eax - 0x29]
adc ebx, dword [ecx - 0x745056b9]
inc edi
push esp
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.10013670
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.10009e00
add esp, 0x18
test eax, eax
je 0x1000a695
mov eax, ebx
sub eax, dword [edi + 0x34]
je 0x1000a618
push eax
mov eax, esi
call fcn.1000a1b0
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x1000a61f
mov dword [esi + 0x18], 1
call fcn.1000a270
test eax, eax
je 0x1000a695
jmp 0x1000a646
push esi
call fcn.10009fb0
add esp, 4
test eax, eax
je 0x1000a695
mov eax, esi
call fcn.1000a150
test eax, eax
je 0x1000a695
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000a6bf
add eax, ebx
cmp dword [esi + 0x14], 0
je 0x1000a6b3
je 0x1000a67f
jne 0x1000a67f
or dword [eax + 0x6a8a52], esp
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x1000a6a3
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1000a800
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret