Function at 0x10072050
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.100d81e0
mov eax, dword [0x10145040]
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 [0x10172ca0]
mov dword [ebp - 0x104c], ecx
push edi
mov edi, edx
mov ecx, dword [eax + esi*4]
mov eax, dword [0x101a2370]
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x1050], ecx
cmp eax, dword [ecx + 4]
jle 0x100720e0
push 0x101a2370
call fcn.100967dd
add esp, 4
cmp dword [0x101a2370], 0xffffffff
jne 0x100720e0
cmp dword [0x101709a8], 0xffffffff
jne 0x100720d3
lea eax, [ebp - 0x1038]
push eax
call ebx
mov eax, dword [ebp - 0x1034]
mov dword [0x101709a8], eax
push 0x101a2370
call fcn.1009678c
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 0x1048], edx
test ecx, ecx
je 0x100723e5
nop word [eax + eax]
mov edx, dword [ebp - 0x1050]
mov esi, 0x1000
mov eax, dword [0x101a2368]
cmp ecx, esi
cmovb esi, ecx
mov ecx, esi
mov dword [ebp - 0x1054], esi
mov dword [ebp - 0x103c], ecx
cmp eax, dword [edx + 4]
jle 0x10072177
push 0x101a2368
call fcn.100967dd
add esp, 4
cmp dword [0x101a2368], 0xffffffff
jne 0x10072171
mov eax, dword [0x101709a8]
cmp eax, 0xffffffff
jne 0x1007215f
lea eax, [ebp - 0x1038]
push eax
call ebx
mov eax, dword [ebp - 0x1034]
mov dword [0x101709a8], eax
push 0x101a2368
mov dword [0x101a236c], eax
call fcn.1009678c
add esp, 4
mov ecx, dword [ebp - 0x103c]
mov dword [ebp - 0x1008], 0
lea ebx, [ebp - 0x1004]
mov dword [ebp - 0x1040], 0
mov eax, 1
test esi, esi
je 0x1007225b
nop
mov esi, dword [0x101a236c]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x1044], 1
div esi
push 0xee
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
mov ecx, edi
mov edx, esi
call fcn.10071fc0
add esp, 4
test al, al
je 0x1007220d
lea eax, [ebp - 0x1008]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10072203
push esi
push eax
push ebx
mov dword [ebp - 0x1044], eax
call fcn.100af4a0
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x1040], eax
jmp 0x1007221b
mov dword [ebp - 0x1040], 1
push esi
push edi
push ebx
call fcn.100af6b0
mov eax, dword [ebp - 0x1040]
add esp, 0xc
test eax, eax
je 0x10072237
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1008]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x103c]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x103c], ecx
jne 0x100721a0
mov eax, dword [ebp - 0x1044]
mov esi, dword [ebp - 0x1054]
mov edx, dword [ebp - 0x1050]
xor ecx, ecx
test eax, eax
mov eax, dword [0x101a2374]
cmovne ecx, dword [ebp - 0x1048]
mov dword [ebp - 0x1048], ecx
mov ecx, esi
mov dword [ebp - 0x103c], ecx
cmp eax, dword [edx + 4]
jle 0x100722d7
push 0x101a2374
call fcn.100967dd
add esp, 4
cmp dword [0x101a2374], 0xffffffff
jne 0x100722d1
mov eax, dword [0x101709a8]
cmp eax, 0xffffffff
jne 0x100722bf
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1034]
mov dword [0x101709a8], eax
push 0x101a2374
mov dword [0x101a2378], eax
call fcn.1009678c
add esp, 4
mov ecx, dword [ebp - 0x103c]
mov edi, dword [ebp - 0x104c]
lea ebx, [ebp - 0x1004]
mov dword [ebp - 0x100c], 0
mov eax, 1
mov dword [ebp - 0x1044], 0
test esi, esi
je 0x100723aa
mov esi, dword [0x101a2378]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x1040], 1
div esi
push 0xcc
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
mov ecx, edi
mov edx, esi
call fcn.10071fc0
add esp, 4
test al, al
je 0x1007235d
lea eax, [ebp - 0x100c]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10072353
mov dword [ebp - 0x1040], eax
jmp 0x10072368
mov dword [ebp - 0x1044], 1
push esi
push ebx
push edi
call fcn.100af6b0
add esp, 0xc
cmp dword [ebp - 0x1044], 0
je 0x10072386
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x100c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x103c]
add edi, esi
add ebx, esi
sub ecx, esi
mov dword [ebp - 0x103c], ecx
jne 0x10072304
mov eax, dword [ebp - 0x1040]
mov esi, dword [ebp - 0x1054]
mov ecx, dword [ebp + 8]
xor edx, edx
mov edi, dword [ebp - 0x1058]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmovne edx, dword [ebp - 0x1048]
sub ecx, esi
add dword [ebp - 0x104c], esi
add edi, esi
mov dword [ebp - 0x1048], edx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x1058], edi
test ecx, ecx
jne 0x10072100
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10096753
mov esp, ebp
pop ebp
ret