Function at 0x1006da80
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100cb74d
push eax
mov dword fs:[0], esp
sub esp, 0x58
push 0x3e8
push dword [0x10107b14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1006dabd
push str.Couldnt_get_trampoline_region_lock__will_continue_possibly_unsafely._n
call fcn.10081660
add esp, 4
push ebx
lea eax, [ebp + 8]
mov ecx, 0x10107af4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1004f820
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
cmp byte [eax + 0xd], 0
jne 0x1006db04
cmp ebx, dword [eax + 0x10]
jb 0x1006db04
cmp eax, dword [0x10107af4]
je 0x1006db04
push dword [0x10107b14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x10107b38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1006db49
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x60]
push ecx
push str.System_page_size:__u_n
mov dword [0x10107b38], ecx
call fcn.10081660
mov esi, dword [0x10107b38]
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], esi
test ebx, ebx
jne 0x1006dba2
push 0x40
push 0x3000
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x1006db7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_allocating_memory_during_hooking:__d_n
call fcn.10081660
add esp, 8
jmp 0x1006de0d
mov eax, dword [0x10107b28]
mov dword [ebp - 0x34], esi
cmp eax, dword [0x10107b2c]
je 0x1006db9a
mov dword [eax], esi
add dword [0x10107b28], 4
jmp 0x1006dd3d
lea ecx, [ebp - 0x34]
jmp 0x1006dd31
mov eax, ebx
push 0
cdq
mov ebx, edx
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ebx
call fcn.100a21e0
mov ecx, edi
sub ecx, eax
mov eax, ebx
mov edi, ecx
mov dword [ebp - 0x34], ecx
sbb eax, edx
sub edi, esi
mov ebx, eax
mov dword [ebp - 0x20], eax
sbb ebx, 0
mov edx, 0
add esi, ecx
mov dword [ebp - 0x1c], esi
adc edx, eax
xor al, al
mov dword [ebp - 0x14], edx
mov byte [ebp - 0xe], al
sub ecx, edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x24], ecx
mov eax, esi
mov ecx, dword [ebp - 0x20]
sbb ecx, ebx
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, edx
sbb eax, dword [ebp - 0x20]
cmp ecx, eax
jg 0x1006dc17
jl 0x1006dc0d
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x38]
jae 0x1006dc17
mov eax, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
jmp 0x1006dc23
mov byte [ebp - 0xd], 1
mov eax, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], edx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006dc61
cmp byte [ebp - 0xe], al
jne 0x1006dc4a
push str.VirtualQuery_failures_n
call fcn.10081660
add esp, 4
mov byte [ebp - 0xe], 1
cmp byte [ebp - 0xd], 0
mov edx, dword [ebp - 0x14]
je 0x1006dcb6
add esi, dword [ebp - 0x50]
mov dword [ebp - 0x1c], esi
adc edx, 0
mov dword [ebp - 0x14], edx
jmp 0x1006dcbc
cmp dword [ebp - 0x4c], 0x10000
jne 0x1006dc4a
push 0x40
push 0x3000
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x1006dd13
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
cmp byte [ebp - 0xd], al
je 0x1006dca8
add esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
adc edx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edx
jmp 0x1006dbe4
sub edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
sbb ebx, 0
jmp 0x1006dbe4
sub edi, dword [ebp - 0x50]
sbb ebx, 0
mov eax, dword [ebp - 0x18]
mov ecx, 0
add eax, esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
adc ecx, edx
add eax, 0x7fffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
adc eax, 0
cmp ecx, eax
jl 0x1006dd0b
jg 0x1006dcea
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x24]
jb 0x1006dd0b
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
add ecx, 0x80000000
adc eax, 0
cmp ebx, eax
jl 0x1006dd86
jg 0x1006dd0b
cmp edi, ecx
jbe 0x1006dd86
mov ecx, dword [ebp - 0x34]
jmp 0x1006dbe4
mov eax, dword [0x10107b28]
mov dword [ebp - 0x38], esi
cmp eax, dword [0x10107b2c]
je 0x1006dd2e
mov dword [eax], esi
add dword [0x10107b28], 4
jmp 0x1006dd3d
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, 0x10107b24
call fcn.1006d450
mov edi, dword [ebp - 0x18]
add edi, 0xffffffc0
add edi, esi
cmp esi, edi
ja 0x1006de0d
lea ecx, [ecx]
mov eax, dword [0x10107b1c]
mov dword [ebp - 0x38], esi
cmp eax, dword [0x10107b20]
je 0x1006dd6b
mov dword [eax], esi
add dword [0x10107b1c], 4
jmp 0x1006dd7a
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, 0x10107b18
call fcn.1006d450
add esi, 0x40
cmp esi, edi
jbe 0x1006dd50
jmp 0x1006de0d
push str.Could_not_find_page_for_trampoline_in____2GB_range_of_function_to_hook_n
call fcn.10081660
add esp, 4
lea eax, [ebp + 8]
mov ecx, 0x10107af4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1004f820
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x1006ddbb
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jae 0x1006de0d
cmp dword [0x10107af8], 0xccccccc
je 0x1006de2a
mov esi, dword [0x10107af4]
mov dword [ebp - 0x3c], 0x10107af4
push 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
call fcn.100a19fe
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, 0x10107af4
push eax
mov dword [eax], esi
mov dword [eax + 4], esi
push ebx
mov dword [eax + 8], esi
push edi
mov word [eax + 0xc], 0
call fcn.10050f60
push dword [0x10107b14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10051250
int3