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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.1006d6a0
mov eax, dword [0x100b7040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
mov esi, dword [0x10165a20]
mov dword [ebp - 0x1018], ecx
push edi
mov edi, edx
mov ecx, dword [eax + esi*4]
mov eax, dword [0x10166e58]
mov dword [ebp - 0x102c], edi
mov dword [ebp - 0x1020], ecx
cmp eax, dword [ecx + 4]
jg 0x100122f0
mov ecx, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 0x1014], edx
test ecx, ecx
je 0x100122dd
nop word [eax + eax]
mov edx, dword [ebp - 0x1020]
mov esi, 0x1000
mov eax, dword [0x10166e50]
cmp ecx, esi
cmovb esi, ecx
mov ecx, esi
mov dword [ebp - 0x1028], esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x1001233b
jmp 0x10012017
mov ecx, dword [ebp - 0x1008]
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x100c], eax
lea ebx, [ebp - 0x1004]
mov eax, 1
test esi, esi
je 0x10012147
nop dword [eax]
mov esi, dword [0x10166e54]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x1010], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x100120be
push 0x1c
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1030], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1048], xmm0
movq qword [ebp - 0x1038], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100120be
cmp dword [ebp - 0x1038], 0x1000
jne 0x100120be
test byte [ebp - 0x1034], 0xee
je 0x100120be
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x100120be
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x100120f9
lea eax, [ebp - 0x101c]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100120ef
push esi
push eax
push ebx
mov dword [ebp - 0x1010], eax
call fcn.1006e790
mov ecx, dword [ebp - 0x100c]
mov dword [ebp - 0x100c], ecx
jmp 0x10012107
mov dword [ebp - 0x100c], 1
push esi
push edi
push ebx
call fcn.1006e210
mov ecx, dword [ebp - 0x100c]
add esp, 0xc
test ecx, ecx
je 0x10012123
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x101c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1008]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x10012040
mov eax, dword [ebp - 0x1010]
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp - 0x1020]
xor ecx, ecx
test eax, eax
mov eax, dword [0x10166e48]
cmovne ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1014], ecx
mov ecx, esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x1001238c
jmp 0x1001217f
mov ecx, dword [ebp - 0x1008]
mov edi, dword [ebp - 0x1018]
lea ebx, [ebp - 0x1004]
mov dword [ebp - 0x1024], 0
mov eax, 1
mov dword [ebp - 0x1010], 0
test esi, esi
je 0x100122a2
nop dword [eax]
mov esi, dword [0x10166e4c]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x100c], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1001222e
push 0x1c
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1030], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1048], xmm0
movq qword [ebp - 0x1038], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001222e
cmp dword [ebp - 0x1038], 0x1000
jne 0x1001222e
test byte [ebp - 0x1034], 0xcc
je 0x1001222e
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x1001222e
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x10012255
lea eax, [ebp - 0x1024]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001224b
mov dword [ebp - 0x100c], eax
jmp 0x10012260
mov dword [ebp - 0x1010], 1
push esi
push ebx
push edi
call fcn.1006e210
add esp, 0xc
cmp dword [ebp - 0x1010], 0
je 0x1001227e
lea eax, [ebp - 0x1058]
push eax
push dword [ebp - 0x1024]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1008]
add edi, esi
add ebx, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x100121b0
mov eax, dword [ebp - 0x100c]
mov esi, dword [ebp - 0x1028]
mov ecx, dword [ebp + 8]
xor edx, edx
mov edi, dword [ebp - 0x102c]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmovne edx, dword [ebp - 0x1014]
sub ecx, esi
add dword [ebp - 0x1018], esi
add edi, esi
mov dword [ebp - 0x1014], edx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x102c], edi
test ecx, ecx
jne 0x10011fe0
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c3e3
mov esp, ebp
pop ebp
ret
push 0x10166e58
call fcn.1006cb07
add esp, 4
cmp dword [0x10166e58], 0xffffffff
jne 0x10011fc4
cmp dword [0x100b7ad0], 0xffffffff
jne 0x10012329
lea eax, [ebp - 0x1050]
push eax
call ebx
mov eax, dword [ebp - 0x104c]
mov dword [0x100b7ad0], eax
jmp 0x10012329
push 0x10166e58
call fcn.1006cab6
add esp, 4
jmp 0x10011fc4
push 0x10166e50
call fcn.1006cb07
add esp, 4
cmp dword [0x10166e50], 0xffffffff
jne 0x10012011
mov eax, dword [0x100b7ad0]
cmp eax, 0xffffffff
jne 0x10012375
lea eax, [ebp - 0x1050]
push eax
call ebx
mov eax, dword [ebp - 0x104c]
mov dword [0x100b7ad0], eax
jmp 0x10012375
push 0x10166e50
mov dword [0x10166e54], eax
call fcn.1006cab6
add esp, 4
jmp 0x10012011
push 0x10166e48
call fcn.1006cb07
add esp, 4
cmp dword [0x10166e48], 0xffffffff
jne 0x10012179
mov eax, dword [0x100b7ad0]
cmp eax, 0xffffffff
jne 0x100123ca
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x104c]
mov dword [0x100b7ad0], eax
jmp 0x100123ca
push 0x10166e48
mov dword [0x10166e4c], eax
call fcn.1006cab6
add esp, 4
jmp 0x10012179