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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100cf61d
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10071bac
cmp byte [ebp + 0xc], 0
je 0x10071cf4
push str.Aborting_UnhookFunc_because_pRealFunctionAddr_is_null_n
call fcn.10084630
add esp, 4
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x1010eb14
mov dword [ebp - 0x28], 0x1010eb14
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp + 8], esi
push eax
mov ecx, 0x1010eb04
call fcn.10051b60
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0xd], 0
jne 0x10071e2a
cmp esi, dword [eax + 0x10]
jb 0x10071e2a
cmp eax, dword [0x1010eb04]
je 0x10071e2a
push edi
lea esi, [eax + 0x14]
mov ecx, 0x10
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x1010eb04
call fcn.10053010
push 0x54
push eax
call fcn.100a576e
add esp, 8
mov dword [ebp - 4], 0xffffffff
push 0x1010eb14
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x1010eb50]
test edi, edi
jne 0x10071c68
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xb0]
push eax
push str.System_page_size:__u_n
mov dword [0x1010eb50], eax
call fcn.10084630
mov edi, dword [0x1010eb50]
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp - 0x74]
xor edx, edx
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x70]
lea eax, [esi - 1]
mov byte [ebp + 8], 0xeb
add eax, ebx
mov dword [ebp - 0x28], eax
div edi
xor edx, edx
mov dword [ebp - 0x1c], eax
mov eax, esi
div edi
push 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
sub cl, al
sub cl, 2
push eax
push dword [ebp - 0x14]
mov byte [ebp + 9], cl
mov cx, word [ebp + 8]
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x1c
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10071e16
cmp dword [ebp - 0x80], 0x1000
jne 0x10071e16
cmp byte [esi], 0xe9
je 0x10071d03
cmp byte [ebp + 0xc], 0
je 0x10071cf2
push str.UnhookFunc_not_restoring_original_bytes___jump_instruction_not_found_n
call fcn.10084630
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 1]
add eax, 5
add eax, esi
cmp eax, dword [ebp - 0x6c]
je 0x10071d1d
cmp byte [ebp + 0xc], 0
je 0x10071cf2
push str.UnhookFunc_not_restoring_original_bytes___jump_target_has_changed_n
jmp 0x10071cea
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
call edi
test eax, eax
jne 0x10071d4b
cmp byte [ebp + 0xc], al
je 0x10071cf2
push str.Warning:_VirtualProtect_call_failed_during_unhook_n
jmp 0x10071cea
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x10071d87
lea eax, [ebp - 0x20]
push eax
push 0x40
lea eax, [esi - 1]
push 1
add eax, ebx
push eax
call edi
test eax, eax
jne 0x10071d87
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push 1
push esi
call edi
cmp byte [ebp + 0xc], 0
je 0x10071cf2
push str.Warning:_VirtualProtect__2__call_failed_during_unhook_n
jmp 0x10071cea
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.100a74e0
add esp, 0xc
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp - 0x18]
mov bl, byte [ebp + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x10071ddb
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
je 0x10071ddb
cmp eax, 0x80
je 0x10071ddb
lea ecx, [ebp - 0x24]
push ecx
push eax
push 1
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x10071ddb
test bl, bl
je 0x10071ddb
push str.Warning:_VirtualProtect__2__call_failed_to_restore_protection_flags_during_unhook_n
call fcn.10084630
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 0x40
je 0x10071cf2
cmp eax, 0x80
je 0x10071cf2
lea ecx, [ebp - 0x24]
push ecx
push eax
push 1
push esi
call edi
test eax, eax
jne 0x10071cf2
test bl, bl
je 0x10071cf2
push str.Warning:_VirtualProtect_call_failed_to_restore_protection_flags_during_unhook_n
jmp 0x10071cea
cmp byte [ebp + 0xc], 0
je 0x10071cf2
push str.UnhookFunc_not_restoring_original_bytes___function_is_unmapped_n
jmp 0x10071cea
cmp byte [ebp + 0xc], 0
je 0x10071e3d
push str.Aborting_UnhookFunc_because_pRealFunctionAddr_is_not_hooked_n
call fcn.10084630
add esp, 4
push 0x1010eb14
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret