Function at 0x1006f1a0
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 0x100cb7bd
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1006f1ec
cmp byte [ebp + 0xc], 0
je 0x1006f334
push str.Aborting_UnhookFunc_because_pRealFunctionAddr_is_null_n
call fcn.10081660
add esp, 4
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x10107afc
mov dword [ebp - 0x28], 0x10107afc
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, 0x10107aec
call fcn.1004f820
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0xd], 0
jne 0x1006f46a
cmp esi, dword [eax + 0x10]
jb 0x1006f46a
cmp eax, dword [0x10107aec]
je 0x1006f46a
push edi
lea esi, [eax + 0x14]
mov ecx, 0x10
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x10107aec
call fcn.10050ca0
push 0x54
push eax
call fcn.100a1a2e
add esp, 8
mov dword [ebp - 4], 0xffffffff
push 0x10107afc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x10107b38]
test edi, edi
jne 0x1006f2a8
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 [0x10107b38], eax
call fcn.10081660
mov edi, dword [0x10107b38]
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 0x1006f456
cmp dword [ebp - 0x80], 0x1000
jne 0x1006f456
cmp byte [esi], 0xe9
je 0x1006f343
cmp byte [ebp + 0xc], 0
je 0x1006f332
push str.UnhookFunc_not_restoring_original_bytes___jump_instruction_not_found_n
call fcn.10081660
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 0x1006f35d
cmp byte [ebp + 0xc], 0
je 0x1006f332
push str.UnhookFunc_not_restoring_original_bytes___jump_target_has_changed_n
jmp 0x1006f32a
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 0x1006f38b
cmp byte [ebp + 0xc], al
je 0x1006f332
push str.Warning:_VirtualProtect_call_failed_during_unhook_n
jmp 0x1006f32a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x1006f3c7
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 0x1006f3c7
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push 1
push esi
call edi
cmp byte [ebp + 0xc], 0
je 0x1006f332
push str.Warning:_VirtualProtect__2__call_failed_during_unhook_n
jmp 0x1006f32a
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.100a37a0
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 0x1006f41b
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
je 0x1006f41b
cmp eax, 0x80
je 0x1006f41b
lea ecx, [ebp - 0x24]
push ecx
push eax
push 1
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x1006f41b
test bl, bl
je 0x1006f41b
push str.Warning:_VirtualProtect__2__call_failed_to_restore_protection_flags_during_unhook_n
call fcn.10081660
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 0x40
je 0x1006f332
cmp eax, 0x80
je 0x1006f332
lea ecx, [ebp - 0x24]
push ecx
push eax
push 1
push esi
call edi
test eax, eax
jne 0x1006f332
test bl, bl
je 0x1006f332
push str.Warning:_VirtualProtect_call_failed_to_restore_protection_flags_during_unhook_n
jmp 0x1006f32a
cmp byte [ebp + 0xc], 0
je 0x1006f332
push str.UnhookFunc_not_restoring_original_bytes___function_is_unmapped_n
jmp 0x1006f32a
cmp byte [ebp + 0xc], 0
je 0x1006f47d
push str.Aborting_UnhookFunc_because_pRealFunctionAddr_is_not_hooked_n
call fcn.10081660
add esp, 4
push 0x10107afc
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