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

Disassembly:
mov eax, 0x10a4
call fcn.100104c0
mov eax, dword [0x10043054]
xor eax, esp
mov dword [esp + 0x10a0], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
mov esi, dword [0x100447d8]
mov dword [esp + 0x1c], ecx
push edi
mov edi, edx
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10045020]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ecx
cmp eax, dword [ecx + 4]
jle 0x1000d517
push 0x10045020
call fcn.1000fa82
add esp, 4
cmp dword [0x10045020], 0xffffffff
jne 0x1000d517
cmp dword [0x10043d2c], 0xffffffff
jne 0x1000d50a
lea eax, [esp + 0x38]
push eax
call ebx
mov eax, dword [esp + 0x3c]
mov dword [0x10043d2c], eax
push 0x10045020
call fcn.1000fa38
add esp, 4
mov edx, dword [esp + 0x10b4]
mov ecx, 1
mov dword [esp + 0x14], ecx
test edx, edx
je 0x1000d86a
push ebp
mov ecx, dword [esp + 0x2c]
mov esi, 0x1000
mov eax, dword [0x10045018]
cmp edx, esi
cmovb esi, edx
mov ebp, esi
mov dword [esp + 0x34], esi
cmp eax, dword [ecx + 4]
jle 0x1000d593
push 0x10045018
call fcn.1000fa82
add esp, 4
cmp dword [0x10045018], 0xffffffff
jne 0x1000d593
mov eax, dword [0x10043d2c]
cmp eax, 0xffffffff
jne 0x1000d581
lea eax, [esp + 0x68]
push eax
call ebx
mov eax, dword [esp + 0x6c]
mov dword [0x10043d2c], eax
push 0x10045018
mov dword [0x10045014], eax
call fcn.1000fa38
add esp, 4
mov dword [esp + 0x28], 0
mov eax, 1
mov dword [esp + 0x14], 0
lea ebx, [esp + 0xb0]
mov dword [esp + 0x10], eax
test esi, esi
je 0x1000d6b5
nop dword [eax + eax]
mov esi, dword [0x10045014]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ebp, esi
cmovle esi, ebp
test edi, edi
je 0x1000d624
push 0x1c
lea eax, [esp + 0x40]
mov dword [esp + 0x58], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x48], xmm0
movq qword [esp + 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000d624
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d624
test byte [esp + 0x50], 0xee
je 0x1000d624
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d624
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d645
lea eax, [esp + 0x28]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d63d
mov dword [esp + 0x10], eax
jmp 0x1000d645
mov dword [esp + 0x14], 1
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
neg eax
sbb ecx, ecx
and ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
je 0x1000d682
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x2c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x1000d6a1
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push 0
push eax
call fcn.100112a0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x1000d6a5
mov eax, dword [esp + 0x10]
add ebx, esi
add edi, esi
sub ebp, esi
jne 0x1000d5c0
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
test eax, eax
mov eax, dword [0x1004501c]
cmovne ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x10], ecx
cmp eax, dword [edx + 4]
jle 0x1000d729
push 0x1004501c
call fcn.1000fa82
add esp, 4
cmp dword [0x1004501c], 0xffffffff
jne 0x1000d725
mov eax, dword [0x10043d2c]
cmp eax, 0xffffffff
jne 0x1000d713
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x90]
mov dword [0x10043d2c], eax
push 0x1004501c
mov dword [0x10045010], eax
call fcn.1000fa38
add esp, 4
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
lea ebp, [esp + 0xb0]
mov dword [esp + 0x30], 0
mov ebx, 1
mov dword [esp + 0x14], 0
test esi, esi
je 0x1000d830
mov esi, dword [0x10045010]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1000d7b5
push 0x1c
lea eax, [esp + 0x40]
mov dword [esp + 0x58], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x48], xmm0
movq qword [esp + 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000d7b5
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d7b5
test byte [esp + 0x50], 0xcc
je 0x1000d7b5
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d7b5
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d7d4
lea eax, [esp + 0x30]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d7cc
xor ebx, ebx
jmp 0x1000d7d4
mov dword [esp + 0x14], 1
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
neg eax
sbb eax, eax
and eax, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
je 0x1000d811
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x34]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, esi
cmovne ebx, ecx
mov ecx, dword [esp + 0x10]
add edi, esi
add ebp, esi
sub ecx, esi
mov dword [esp + 0x10], ecx
jne 0x1000d751
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x10b8]
xor ecx, ecx
mov edi, dword [esp + 0x38]
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmovne ecx, dword [esp + 0x18]
sub edx, esi
add dword [esp + 0x24], esi
add edi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10b8], edx
mov dword [esp + 0x38], edi
test edx, edx
jne 0x1000d530
pop ebp
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x10a8]
pop esi
pop ebx
xor ecx, esp
call fcn.1000f3df
add esp, 0x10a4
ret