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

Disassembly:
mov eax, 0x10a4
call fcn.1000fb50
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 [0x10043028]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ecx
cmp eax, dword [ecx + 4]
jle 0x1000d1f7
push 0x10043028
call fcn.1000f0c8
add esp, 4
cmp dword [0x10043028], 0xffffffff
jne 0x1000d1f7
cmp dword [0x10041d2c], 0xffffffff
jne 0x1000d1ea
lea eax, [esp + 0x38]
push eax
call ebx
mov eax, dword [esp + 0x3c]
mov dword [0x10041d2c], eax
push 0x10043028
call fcn.1000f07e
add esp, 4
mov edx, dword [esp + 0x10b4]
mov ecx, 1
mov dword [esp + 0x14], ecx
test edx, edx
je 0x1000d54a
push ebp
mov ecx, dword [esp + 0x2c]
mov esi, 0x1000
mov eax, dword [0x10043020]
cmp edx, esi
cmovb esi, edx
mov ebp, esi
mov dword [esp + 0x34], esi
cmp eax, dword [ecx + 4]
jle 0x1000d273
push 0x10043020
call fcn.1000f0c8
add esp, 4
cmp dword [0x10043020], 0xffffffff
jne 0x1000d273
mov eax, dword [0x10041d2c]
cmp eax, 0xffffffff
jne 0x1000d261
lea eax, [esp + 0x68]
push eax
call ebx
mov eax, dword [esp + 0x6c]
mov dword [0x10041d2c], eax
push 0x10043020
mov dword [0x1004301c], eax
call fcn.1000f07e
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 0x1000d395
nop dword [eax + eax]
mov esi, dword [0x1004301c]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ebp, esi
cmovle esi, ebp
test edi, edi
je 0x1000d304
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 0x1000d304
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d304
test byte [esp + 0x50], 0xee
je 0x1000d304
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d304
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d325
lea eax, [esp + 0x28]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d31d
mov dword [esp + 0x10], eax
jmp 0x1000d325
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 0x1000d362
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 0x1000d381
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push 0
push eax
call fcn.10010930
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x1000d385
mov eax, dword [esp + 0x10]
add ebx, esi
add edi, esi
sub ebp, esi
jne 0x1000d2a0
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
test eax, eax
mov eax, dword [0x10043024]
cmovne ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x10], ecx
cmp eax, dword [edx + 4]
jle 0x1000d409
push 0x10043024
call fcn.1000f0c8
add esp, 4
cmp dword [0x10043024], 0xffffffff
jne 0x1000d405
mov eax, dword [0x10041d2c]
cmp eax, 0xffffffff
jne 0x1000d3f3
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x90]
mov dword [0x10041d2c], eax
push 0x10043024
mov dword [0x10043018], eax
call fcn.1000f07e
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 0x1000d510
mov esi, dword [0x10043018]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1000d495
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 0x1000d495
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d495
test byte [esp + 0x50], 0xcc
je 0x1000d495
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d495
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d4b4
lea eax, [esp + 0x30]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d4ac
xor ebx, ebx
jmp 0x1000d4b4
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 0x1000d4f1
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 0x1000d431
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 0x1000d210
pop ebp
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x10a8]
pop esi
pop ebx
xor ecx, esp
call fcn.1000ea25
add esp, 0x10a4
ret