Function at 0x1035a71
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 [0x1050170], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov ecx, 0x104ebec
mov dword [0x1050164], eax
call fcn.0102f895
xor ebx, ebx
cmp eax, ebx
jl 0x1035ba7
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x14]
mov ecx, dword [0x100003c]
mov dword [0x104e31c], esi
mov eax, dword [ecx + 0x1000050]
mov ecx, dword [ebp - 0x28]
add eax, 0x1000000
lea edx, [ecx - 0x80000000]
cmp eax, edx
jae 0x1035adc
mov eax, ecx
jmp 0x1035ae1
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 [0x104de4c], edx
jb 0x1035b08
mov eax, 0x81000000
and eax, ecx
mov dword [0x104d420], eax
sub eax, edx
xor edx, edx
div esi
xor edi, edi
cmp dword [0x104d18c], ebx
mov dword [0x104d888], eax
jbe 0x1035b45
mov esi, 0x104e328
lea ecx, [esi + 4]
call fcn.0102f895
cmp eax, ebx
jl 0x1035ba7
mov dword [esi], ebx
add edi, 1
add esi, 0x1c
cmp edi, dword [0x104d18c]
jb 0x1035b29
call fcn.01029137
cmp eax, ebx
jl 0x1035ba7
mov dword [ebp - 8], ebx
mov eax, dword [0x1017b7c]
test eax, eax
je 0x1035ca2
mov edx, dword [0x102f094]
mov eax, dword [0x1017b7c]
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 0x1035bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1035b93
mov eax, 0x54f
jmp 0x1035b95
jle 0x1035b9f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1035ca2
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1035ca2
xor edi, edi
cmp dword [0x104d18c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jbe 0x1035be1
mov esi, 0x104e32c
cmp dword [esi - 4], 0x80000000
je 0x1035bd3
push esi
call ebx
add edi, 1
add esi, 0x1c
cmp edi, dword [0x104d18c]
jb 0x1035bc7
push 0x104ebec
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1017b7c]
test ecx, ecx
mov dword [ebp - 8], ebx
jbe 0x1035ca2
mov edi, dword [0x102f094]
mov esi, dword [0x102f094]
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 0x1035c58
mov edx, dword [0x1050170]
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 0x1035c33
mov ebx, dword [ebp - 8]
mov dword [0x1050170], edx
xor edx, edx
div ecx
lea eax, [edi + 0x1043003]
and eax, 0xfffffffc
add edx, 0x1000003
and edx, 0xfffffffc
shr esi, 2
je 0x1035c84
sub edx, eax
mov ecx, esi
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x1035c77
mov eax, dword [0x1017b7c]
mov dword [ebx*4 + 0x104ec10], 0x29
add ebx, 1
cmp ebx, eax
mov dword [ebp - 8], ebx
jb 0x1035c03
mov ecx, dword [0x1036534]
call ecx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor edi, edi
cmp dword [0x104d18c], edi
mov dword [ebp - 8], eax
jbe 0x1035cdd
mov esi, 0x104e32c
nop
cmp dword [esi - 4], 0x80000000
je 0x1035ccf
push esi
call ebx
add edi, 1
add esi, 0x1c
cmp edi, dword [0x104d18c]
jb 0x1035cc3
push 0x104ebec
call ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret