Function at 0x1003a8a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x109c
call fcn.1008f9a0
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
mov esi, dword [0x100f9aa8]
mov dword [ebp - 0x14], ecx
push edi
mov edi, edx
mov ecx, dword [eax + esi*4]
mov eax, dword [0x100fb280]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ecx + 4]
jle 0x1003a917
push 0x100fb280
call fcn.1008ed52
add esp, 4
cmp dword [0x100fb280], 0xffffffff
jne 0x1003a917
cmp dword [0x100f8b18], 0xffffffff
jne 0x1003a90a
lea eax, [ebp - 0x4c]
push eax
call ebx
mov eax, dword [ebp - 0x48]
mov dword [0x100f8b18], eax
push 0x100fb280
call fcn.1008ed01
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x1003abf5
nop word [eax + eax]
mov edx, dword [ebp - 0x1c]
mov esi, 0x1000
mov eax, dword [0x100fb27c]
cmp ecx, esi
cmovb esi, ecx
mov ecx, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ecx
cmp eax, dword [edx + 4]
jle 0x1003a995
push 0x100fb27c
call fcn.1008ed52
add esp, 4
cmp dword [0x100fb27c], 0xffffffff
jne 0x1003a992
mov eax, dword [0x100f8b18]
cmp eax, 0xffffffff
jne 0x1003a980
lea eax, [ebp - 0x78]
push eax
call ebx
mov eax, dword [ebp - 0x74]
mov dword [0x100f8b18], eax
push 0x100fb27c
mov dword [0x100fb278], eax
call fcn.1008ed01
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], eax
lea ebx, [ebp - 0x109c]
mov eax, 1
test esi, esi
je 0x1003aa7c
mov esi, dword [0x100fb278]
xor edx, edx
mov eax, edi
mov dword [ebp - 0xc], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1003aa17
push 0x1c
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1003aa17
cmp dword [ebp - 0x34], 0x1000
jne 0x1003aa17
test byte [ebp - 0x30], 0xee
je 0x1003aa17
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
ja 0x1003aa17
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x44]
cmp eax, ecx
jbe 0x1003aa43
lea eax, [ebp - 0x18]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003aa3c
push esi
push eax
push ebx
mov dword [ebp - 0xc], eax
call fcn.10090a40
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
jmp 0x1003aa4e
mov dword [ebp - 8], 1
push esi
push edi
push ebx
call fcn.100904c0
mov ecx, dword [ebp - 8]
add esp, 0xc
test ecx, ecx
je 0x1003aa64
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 4], ecx
jne 0x1003a9b4
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
test eax, eax
mov eax, dword [0x100fb274]
cmovne ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [ebp - 4], ecx
cmp eax, dword [edx + 4]
jle 0x1003aae9
push 0x100fb274
call fcn.1008ed52
add esp, 4
cmp dword [0x100fb274], 0xffffffff
jne 0x1003aae6
mov eax, dword [0x100f8b18]
cmp eax, 0xffffffff
jne 0x1003aad4
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x98]
mov dword [0x100f8b18], eax
push 0x100fb274
mov dword [0x100fb270], eax
call fcn.1008ed01
add esp, 4
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
lea ebx, [ebp - 0x109c]
mov dword [ebp - 0x20], 0
mov eax, 1
mov dword [ebp - 0xc], 0
test esi, esi
je 0x1003abc9
nop dword [eax]
mov esi, dword [0x100fb270]
xor edx, edx
mov eax, edi
mov dword [ebp - 8], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1003ab73
push 0x1c
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1003ab73
cmp dword [ebp - 0x34], 0x1000
jne 0x1003ab73
test byte [ebp - 0x30], 0xcc
je 0x1003ab73
mov ecx, dword [ebp - 0x38]
cmp esi, ecx
ja 0x1003ab73
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x44]
cmp eax, ecx
jbe 0x1003ab91
lea eax, [ebp - 0x20]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003ab8a
mov dword [ebp - 8], eax
jmp 0x1003ab9c
mov dword [ebp - 0xc], 1
push esi
push ebx
push edi
call fcn.100904c0
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x1003abb1
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x20]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
add edi, esi
add ebx, esi
sub ecx, esi
mov dword [ebp - 4], ecx
jne 0x1003ab10
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
xor edx, edx
mov edi, dword [ebp - 0x28]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmovne edx, dword [ebp - 0x10]
sub ecx, esi
add dword [ebp - 0x14], esi
add edi, esi
mov dword [ebp - 0x10], edx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x28], edi
test ecx, ecx
jne 0x1003a930
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret