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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
rdtsc
sub esp, 0x30
push ebx
push esi
push edi
mov dword [0x104f4c0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov ecx, 0x104eba4
mov dword [0x104ec10], eax
call fcn.0102c419
xor ebx, ebx
cmp eax, ebx
jl 0x1031ad3
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x14]
mov ecx, dword [0x100003c]
mov dword [0x104e440], esi
mov eax, dword [ecx + 0x1000050]
mov ecx, dword [ebp - 0x28]
add eax, 0x1000000
lea edx, [ecx - 0x80000000]
cmp eax, edx
jae 0x1031a08
mov eax, ecx
jmp 0x1031a0d
add eax, 0x80000000
lea edx, [eax + esi - 1]
mov eax, dword [ebp - 0x24]
lea ecx, [esi - 1]
not ecx
and edx, ecx
lea edi, [eax - 0x80000000]
cmp edi, 0x1000000
mov dword [0x104e1ac], edx
jb 0x1031a34
mov eax, 0x81000000
and eax, ecx
mov dword [0x1050d88], eax
sub eax, edx
xor edx, edx
div esi
xor edi, edi
cmp dword [0x1050ea8], ebx
mov dword [0x104e9f0], eax
jbe 0x1031a71
mov esi, 0x104eee8
lea ecx, [esi + 4]
call fcn.0102c419
cmp eax, ebx
jl 0x1031ad3
mov dword [esi], ebx
add edi, 1
add esi, 0x1c
cmp edi, dword [0x1050ea8]
jb 0x1031a55
call fcn.01015aef
cmp eax, ebx
jl 0x1031ad3
mov dword [ebp - 8], ebx
mov eax, dword [0x1017bcc]
test eax, eax
je 0x1031bce
mov edx, dword [0x1012f80]
mov eax, dword [0x1017bcc]
imul edx, eax
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push edx
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, ebx
jne 0x1031b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1031abf
mov eax, 0x54f
jmp 0x1031ac1
jle 0x1031acb
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1031bce
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1031bce
xor edi, edi
cmp dword [0x1050ea8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jbe 0x1031b0d
mov esi, 0x104eeec
cmp dword [esi - 4], 0x80000000
je 0x1031aff
push esi
call ebx
add edi, 1
add esi, 0x1c
cmp edi, dword [0x1050ea8]
jb 0x1031af3
push 0x104eba4
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1017bcc]
test ecx, ecx
mov dword [ebp - 8], ebx
jbe 0x1031bce
mov edi, dword [0x1012f80]
mov esi, dword [0x1012f80]
imul edi, ebx
mov edx, dword [0x100003c]
mov ecx, dword [edx + 0x1000050]
sub ecx, esi
add ecx, 1
mov eax, 0
mov dword [ebp - 4], ecx
je 0x1031b84
mov edx, dword [0x104f4c0]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov ebx, edx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr dword [ebp - 4], 0x10
jne 0x1031b5f
mov ebx, dword [ebp - 8]
mov dword [0x104f4c0], edx
xor edx, edx
div ecx
lea eax, [edi + 0x1044003]
and eax, 0xfffffffc
add edx, 0x1000003
and edx, 0xfffffffc
shr esi, 2
je 0x1031bb0
sub edx, eax
mov ecx, esi
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x1031ba3
mov eax, dword [0x1017bcc]
mov dword [ebx*4 + 0x104e01c], 0x29
add ebx, 1
cmp ebx, eax
mov dword [ebp - 8], ebx
jb 0x1031b2f
mov ecx, dword [0x1009d30]
call ecx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor edi, edi
cmp dword [0x1050ea8], edi
mov dword [ebp - 8], eax
jbe 0x1031c09
mov esi, 0x104eeec
nop
cmp dword [esi - 4], 0x80000000
je 0x1031bfb
push esi
call ebx
add edi, 1
add esi, 0x1c
cmp edi, dword [0x1050ea8]
jb 0x1031bef
push 0x104eba4
call ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret