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

Disassembly:
mov eax, 0x10a4
call fcn.100102d0
mov eax, dword [0x10041054]
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 [0x100427d8]
mov dword [esp + 0x1c], ecx
push edi
mov edi, edx
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10043020]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ecx
cmp eax, dword [ecx + 4]
jle 0x1000d4f7
push 0x10043020
call fcn.1000f899
add esp, 4
cmp dword [0x10043020], 0xffffffff
jne 0x1000d4f7
cmp dword [0x10041d2c], 0xffffffff
jne 0x1000d4ea
lea eax, [esp + 0x38]
push eax
call ebx
mov eax, dword [esp + 0x3c]
mov dword [0x10041d2c], eax
push 0x10043020
call fcn.1000f84f
add esp, 4
mov edx, dword [esp + 0x10b4]
mov ecx, 1
mov dword [esp + 0x14], ecx
test edx, edx
je 0x1000d84a
push ebp
mov ecx, dword [esp + 0x2c]
mov esi, 0x1000
mov eax, dword [0x10043018]
cmp edx, esi
cmovb esi, edx
mov ebp, esi
mov dword [esp + 0x34], esi
cmp eax, dword [ecx + 4]
jle 0x1000d573
push 0x10043018
call fcn.1000f899
add esp, 4
cmp dword [0x10043018], 0xffffffff
jne 0x1000d573
mov eax, dword [0x10041d2c]
cmp eax, 0xffffffff
jne 0x1000d561
lea eax, [esp + 0x68]
push eax
call ebx
mov eax, dword [esp + 0x6c]
mov dword [0x10041d2c], eax
push 0x10043018
mov dword [0x10043014], eax
call fcn.1000f84f
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 0x1000d695
nop dword [eax + eax]
mov esi, dword [0x10043014]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ebp, esi
cmovle esi, ebp
test edi, edi
je 0x1000d604
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 0x1000d604
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d604
test byte [esp + 0x50], 0xee
je 0x1000d604
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d604
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d625
lea eax, [esp + 0x28]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d61d
mov dword [esp + 0x10], eax
jmp 0x1000d625
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 0x1000d662
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 0x1000d681
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push 0
push eax
call fcn.100110b0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x1000d685
mov eax, dword [esp + 0x10]
add ebx, esi
add edi, esi
sub ebp, esi
jne 0x1000d5a0
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
test eax, eax
mov eax, dword [0x1004301c]
cmovne ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x10], ecx
cmp eax, dword [edx + 4]
jle 0x1000d709
push 0x1004301c
call fcn.1000f899
add esp, 4
cmp dword [0x1004301c], 0xffffffff
jne 0x1000d705
mov eax, dword [0x10041d2c]
cmp eax, 0xffffffff
jne 0x1000d6f3
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x90]
mov dword [0x10041d2c], eax
push 0x1004301c
mov dword [0x10043010], eax
call fcn.1000f84f
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 0x1000d810
mov esi, dword [0x10043010]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1000d795
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 0x1000d795
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d795
test byte [esp + 0x50], 0xcc
je 0x1000d795
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d795
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d7b4
lea eax, [esp + 0x30]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d7ac
xor ebx, ebx
jmp 0x1000d7b4
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 0x1000d7f1
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 0x1000d731
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 0x1000d510
pop ebp
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x10a8]
pop esi
pop ebx
xor ecx, esp
call fcn.1000f1ff
add esp, 0x10a4
ret