Function at 0x45c1b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], 0
push edi
mov edi, ecx
test esi, esi
jle 0x45c1d5
mov dword [edi + 8], 0
imul eax, esi, 0x70
push eax
call fcn.004f5145
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x45c204
mov eax, dword [0x5c0c00]
test eax, eax
je 0x45c1fb
push str.mhooks:_cant_allocate_buffer_
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x5bfe24], 0
jne 0x45c222
push 0x5c02b0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5bfe24], 1
push 0x5c02b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test esi, esi
jle 0x45c3a5
mov esi, dword [ebp - 0x10]
mov ecx, edi
mov edi, dword [0x5c0c00]
add esi, 4
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
push 0x58
push 0
mov eax, dword [eax]
mov dword [esi - 4], eax
mov eax, dword [ecx + 4]
mov dword [esi], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.004e67e0
add esp, 0xc
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
test edi, edi
je 0x45c299
push dword [esi]
push dword [esi - 4]
push str.mhooks:_Mhook_SetHook:_Started_on_the_job:__p____p
call edi
mov edi, dword [0x5c0c00]
add esp, 0xc
mov ecx, dword [esi - 4]
call fcn.0045b620
mov ecx, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [esi - 4], eax
call fcn.0045b620
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [esi], eax
test ebx, ebx
jle 0x45c2d3
mov eax, dword [ebp - 0x10]
nop
cmp dword [eax], edx
je 0x45c353
inc ecx
add eax, 0x70
cmp ecx, ebx
jl 0x45c2c0
mov eax, dword [ebp - 0x24]
test edi, edi
je 0x45c2e3
push eax
push edx
push str.mhooks:_Mhook_SetHook:_Started_on_the_job:__p____p
call edi
add esp, 0xc
mov ecx, dword [esi - 4]
lea edi, [esi + 0xc]
push edi
call fcn.0045bea0
mov ecx, dword [esi - 4]
add esp, 4
mov edx, 0x102
mov dword [esi + 4], eax
call fcn.0045bfa0
mov ecx, dword [esi - 4]
mov edx, 0x103
mov dword [esi + 0x64], eax
call fcn.0045bfa0
mov ecx, dword [esi + 4]
mov dword [esi + 0x68], eax
cmp ecx, 5
jb 0x45c371
cmp dword [esi + 0x64], 0
je 0x45c327
test eax, eax
jne 0x45c371
mov eax, dword [0x5c0c00]
test eax, eax
je 0x45c33b
push ecx
push str.mhooks:_Mhook_SetHook:_disassembly_signals__d_bytes
call eax
add esp, 8
mov ecx, dword [esi - 4]
sub esp, 8
push dword [edi + 4]
push dword [edi]
call fcn.0045b9c0
add esp, 0x10
mov dword [esi + 8], eax
jmp 0x45c386
test edi, edi
je 0x45c368
push edx
push str.mhooks:_Mhook_SetHook:_already_hooked:__p
call edi
mov edi, dword [0x5c0c00]
add esp, 8
mov dword [esi + 8], 0
jmp 0x45c38c
mov edi, dword [0x5c0c00]
test edi, edi
je 0x45c38c
push ecx
push str.mhooks:_error__disassembly_signals__d_bytes__unacceptable_
call edi
add esp, 8
mov edi, dword [0x5c0c00]
mov ecx, dword [ebp - 0x18]
inc ebx
add ecx, 0xc
add esi, 0x70
mov dword [ebp - 0x18], ecx
cmp ebx, dword [ebp - 0xc]
jl 0x45c248
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.0045bc90
test eax, eax
jne 0x45c3d1
mov eax, dword [0x5c0c00]
test eax, eax
je 0x45c816
push str.mhooks:_cant_get_process_snapshot_
call eax
jmp 0x45c813
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
mov eax, ecx
test ecx, ecx
je 0x45c3f5
cmp dword [eax + 0x44], edx
je 0x45c3f5
mov ecx, dword [eax]
test ecx, ecx
je 0x45c3f3
add eax, ecx
jne 0x45c3e2
jmp 0x45c3f5
xor eax, eax
mov ebx, dword [ebp - 0x10]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0045bd20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x24], eax
test esi, esi
jle 0x45c806
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebx + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x5c0c00]
nop dword [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x45c7ea
test edx, edx
je 0x45c449
push eax
push str.mhooks:_Mhook_SetHook:_allocated_structure_at__p
call edx
add esp, 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x40
push dword [esi - 4]
mov dword [ebp - 0x14], 0
push dword [esi - 0xc]
call ebx
test eax, eax
je 0x45c747
mov eax, dword [0x5c0c00]
test eax, eax
je 0x45c480
push str.mhooks:_Mhook_SetHook:_readwrite_set_on_system_function
call eax
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x74
push dword [esi]
call ebx
test eax, eax
je 0x45c70d
mov ebx, dword [0x5c0c00]
test ebx, ebx
je 0x45c4ae
push str.mhooks:_Mhook_SetHook:_readwrite_set_on_trampoline_structure
call ebx
mov ebx, dword [0x5c0c00]
add esp, 4
mov edi, dword [esi]
xor edx, edx
add edi, 0x2c
cmp dword [esi - 4], edx
jbe 0x45c4d5
nop word [eax + eax]
mov eax, dword [esi - 0xc]
mov cl, byte [edx + eax]
mov byte [edx + edi], cl
mov eax, dword [esi]
mov byte [eax + edx + 0x4c], cl
inc edx
cmp edx, dword [esi - 4]
jb 0x45c4c0
cmp dword [esi + 0x5c], 0
jne 0x45c4e6
cmp dword [esi + 0x60], 0
jne 0x45c4e6
add edi, dword [esi - 4]
jmp 0x45c4f8
mov edx, dword [esi - 0xc]
mov ecx, edi
call fcn.0045c050
mov ebx, dword [0x5c0c00]
mov edi, eax
mov ecx, dword [esi - 0xc]
lea eax, [edi + 5]
add ecx, dword [esi - 4]
mov dword [ebp - 8], eax
mov edx, ecx
sub edx, dword [ebp - 8]
sub eax, ecx
cmp dword [ebp - 8], ecx
mov dword [ebp - 0x28], ecx
cmova edx, eax
mov dword [ebp - 8], edx
test ebx, ebx
je 0x45c537
push edx
push ecx
lea eax, [edi + 5]
push eax
push str.mhooks:_EmitJump:_Jumping_from__p_to__p__diff_is__p
call ebx
mov ebx, dword [0x5c0c00]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
cmp edx, 0x7fff0000
ja 0x45c54c
lea eax, [edi + 5]
mov byte [edi], 0xe9
sub ecx, eax
mov dword [edi + 1], ecx
jmp 0x45c559
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ecx
test ebx, ebx
je 0x45c56d
push str.mhooks:_Mhook_SetHook:_updated_the_trampoline
call ebx
mov ebx, dword [0x5c0c00]
add esp, 4
mov edx, dword [esi - 0xc]
mov ecx, edx
mov edi, dword [esi - 8]
sub ecx, edi
mov eax, edi
mov dword [ebp - 0x2c], edx
sub eax, edx
cmp edi, edx
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x45c66d
mov ecx, dword [esi]
mov edx, edi
add ecx, 0xc
mov dword [ebp - 0x28], ecx
lea eax, [ecx + 5]
mov dword [ebp - 8], eax
sub eax, edi
sub edx, dword [ebp - 8]
cmp dword [ebp - 8], edi
cmova edx, eax
mov dword [ebp - 0x2c], edx
test ebx, ebx
je 0x45c5cb
push edx
push edi
push dword [ebp - 8]
push str.mhooks:_EmitJump:_Jumping_from__p_to__p__diff_is__p
call ebx
mov ebx, dword [0x5c0c00]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x7fff0000
ja 0x45c5dc
mov byte [ecx], 0xe9
inc ecx
sub edi, dword [ebp - 8]
jmp 0x45c5e9
lea eax, [ecx + 6]
mov word [ecx], 0x25ff
mov dword [ecx + 2], eax
mov ecx, eax
mov dword [ecx], edi
lea edi, [ecx + 4]
test ebx, ebx
je 0x45c5fc
push str.mhooks:_Mhook_SetHook:_created_reverse_trampoline
call ebx
add esp, 4
mov eax, dword [esi]
sub edi, eax
sub edi, 0xc
add eax, 0xc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edi, dword [esi - 0xc]
mov ebx, dword [esi]
add ebx, 0xc
mov ecx, ebx
lea edx, [edi + 5]
mov eax, edx
sub ecx, edx
sub eax, ebx
cmp edx, ebx
cmova ecx, eax
mov eax, dword [0x5c0c00]
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x45c64c
push ecx
push ebx
push edx
push str.mhooks:_EmitJump:_Jumping_from__p_to__p__diff_is__p
call eax
mov ecx, dword [ebp - 0x2c]
lea edx, [edi + 5]
add esp, 0x10
cmp ecx, 0x7fff0000
ja 0x45c65e
sub ebx, edx
mov byte [edi], 0xe9
mov dword [edi + 1], ebx
jmp 0x45c6be
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ebx
jmp 0x45c6be
lea eax, [edx + 5]
mov ecx, edi
mov dword [ebp - 8], eax
sub eax, edi
sub ecx, dword [ebp - 8]
cmp dword [ebp - 8], edi
cmova ecx, eax
mov dword [ebp - 0x28], ecx
test ebx, ebx
je 0x45c69c
push ecx
push edi
push dword [ebp - 8]
push str.mhooks:_EmitJump:_Jumping_from__p_to__p__diff_is__p
call ebx
mov edx, dword [ebp - 0x2c]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x7fff0000
ja 0x45c6b1
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub edi, eax
mov dword [edx + 1], edi
jmp 0x45c6be
lea eax, [edx + 6]
mov word [edx], 0x25ff
mov dword [edx + 2], eax
mov dword [eax], edi
mov ecx, dword [esi]
mov eax, dword [esi - 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov eax, dword [esi - 0xc]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi - 8]
mov dword [ecx + 8], eax
mov ecx, dword [esi]
cmp dword [ecx], 0
je 0x45c6e6
mov eax, dword [ebp - 4]
add ecx, 0x2c
mov eax, dword [eax]
mov dword [eax], ecx
push dword [esi - 4]
mov eax, dword [esi]
add eax, 0x2c
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 0x74
push dword [esi]
call ebx
jmp 0x45c727
cmp dword [0x5c0c00], 0
je 0x45c727
call edi
push eax
push str.mhooks:_Mhook_SetHook:_failed_VirtualProtect_2:__d
call dword [0x5c0c00]
add esp, 8
push dword [esi - 4]
push dword [esi - 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [esi - 4]
push dword [esi - 0xc]
call ebx
jmp 0x45c762
mov edx, dword [0x5c0c00]
test edx, edx
je 0x45c768
call edi
push eax
push str.mhooks:_Mhook_SetHook:_failed_VirtualProtect_1:__d
call dword [0x5c0c00]
add esp, 8
mov edx, dword [0x5c0c00]
mov ecx, dword [esi]
cmp dword [ecx], 0
je 0x45c792
mov edi, dword [ebp - 4]
inc dword [ebp - 0x20]
mov dword [edi + 8], 1
test edx, edx
je 0x45c7ed
push str.mhooks:_Mhook_SetHook:_Hooked_the_function_
call edx
mov edx, dword [0x5c0c00]
add esp, 4
jmp 0x45c7ed
mov edi, dword [ecx + 0x6c]
test edi, edi
je 0x45c79f
mov eax, dword [ecx + 0x70]
mov dword [edi + 0x70], eax
mov edi, dword [ecx + 0x70]
test edi, edi
je 0x45c7ac
mov eax, dword [ecx + 0x6c]
mov dword [edi + 0x6c], eax
cmp dword [0x5bfe2c], ecx
jne 0x45c7bc
mov eax, dword [ecx + 0x70]
mov dword [0x5bfe2c], eax
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x6c], 0
mov eax, dword [0x5bfe1c]
mov dword [ecx + 0x70], eax
mov eax, dword [0x5bfe1c]
test eax, eax
je 0x45c7de
mov dword [eax + 0x6c], ecx
mov dword [0x5bfe1c], ecx
mov dword [esi], 0
mov edi, dword [ebp - 4]
add edi, 0xc
add esi, 0x70
sub dword [ebp - 0xc], 1
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x45c430
call fcn.0045bc00
push dword [ebp - 0x1c]
call fcn.004f4033
add esp, 4
push dword [ebp - 0x10]
call fcn.004f4033
add esp, 4
push 0x5c02b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret