Function at 0x10005220
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5bc
mov eax, dword [0x100ce16c]
xor eax, esp
mov dword [esp + 0x5b8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x4d6]
push esi
push edi
push 0xe2
mov esi, ecx
mov word [esp + 0x4c4], 0x9c60
push 0
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x4ce], 0xbf
mov dword [esp + 0x4d3], 0xc683f48b
mov dword [esp + 0x4d7], 0x20b904
mov dword [esp + 0x4db], 0xa4f30000
mov byte [esp + 0x4df], 0xb8
mov dword [esp + 0x4e4], 0x619dd0ff
mov word [esp + 0x4e8], 0x9090
call fcn.10062e60
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0x4d4], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x4c3], esi
mov dword [esp + 0x20], 0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x20
push ebx
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
call eax
test eax, eax
jne 0x10005324
call fcn.10006f60
mov eax, dword [0x100d05dc]
lea ecx, [esp + 0x20]
push ecx
push 0x40
lea ecx, [esp + 0x14]
mov dword [0x100d05d8], eax
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
je 0x10005324
cmp dword [esi + 0x30], 0
je 0x10005324
push ebx
push str.VirtualProtect_0x_p__Error___
jmp 0x100054db
mov eax, dword [ebx]
push 0x40
push 0x1000
mov dword [esi + 0x28], eax
mov al, byte [ebx + 4]
push 0x100
push 0
mov byte [esi + 0x2c], al
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1000536b
push str.VirtualAlloc_Error___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push str.AddHook_Failed:0x_p
call fcn.10006e40
add esp, 8
jmp 0x100054ee
xor eax, eax
lea esi, [ecx + 0x1e]
push 0x26f
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x24], esi
call fcn.10062e60
add esp, 0xc
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x7c], 0x1010000
mov dword [esp + 0x80], 0
push eax
call fcn.1005d360
mov edi, eax
add esp, 4
cmp edi, 1
jl 0x100054d2
nop word [eax + eax]
lea eax, [esp + 0x38]
push eax
push edi
push dword [esp + 0x30]
push str.Addr__0x_p_nInstLen___d__s
call fcn.10006e40
add esp, 0x10
cmp dword [esp + 0xa4], 0xd
je 0x100055fd
add dword [esp + 0xc], edi
lea eax, [esp + 0x298]
push 0x228
push 0
push eax
call fcn.10062e60
add esp, 0xc
mov dword [esp + 0x2a0], esi
lea eax, [esp + 0x2c0]
mov dword [esp + 0x2a4], 0
push 0x100
push 0
push eax
call fcn.10062e60
movups xmm0, xmmword [esp + 0x44]
add esp, 0xc
lea ecx, [esp + 0x298]
movups xmmword [esp + 0x2c0], xmm0
movups xmm0, xmmword [esp + 0x48]
movups xmmword [esp + 0x2d0], xmm0
movups xmm0, xmmword [esp + 0x58]
movups xmmword [esp + 0x2e0], xmm0
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp + 0x2f0], xmm0
call fcn.10007300
test eax, eax
je 0x100055eb
mov esi, dword [esp + 0x2a8]
lea eax, [esp + 0x2b0]
push esi
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c8]
sub eax, dword [esp + 0x24]
add eax, ecx
push eax
call fcn.100657e0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x28]
add ecx, esi
add edx, edi
mov dword [esp + 0x18], ecx
cmp dword [esp + 0xc], 5
mov dword [esp + 0x28], edx
jge 0x10005507
lea eax, [esp + 0x28]
push eax
call fcn.1005d360
mov esi, dword [esp + 0x1c]
mov edi, eax
add esp, 4
cmp edi, 1
jge 0x100053c0
push dword [esp + 0x28]
push str.Disasm__p__Error___
call fcn.10006e40
push ebx
push str.AddHook_Failed:0x_p
call fcn.10006e40
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5b8]
xor ecx, esp
call fcn.1005fb30
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x4c0]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x11], edx
mov byte [esp + 0x10], 0x68
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ebx
mov eax, dword [esp + 0x10]
mov dword [esp + ecx + 0x4c0], eax
mov byte [esp + 0x15], 0xc3
mov ax, word [esp + 0x14]
mov word [esp + ecx + 0x4c4], ax
mov ecx, 0x40
mov eax, dword [esp + 0x1c]
mov edi, eax
sub eax, ebx
sub eax, 5
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov dword [esp + 0x1c], eax
shr edx, 8
mov ecx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
mov byte [ebx], 0xe9
mov byte [ebx + 1], dl
mov edx, dword [esp + 0x10]
mov byte [ebx + 2], dl
shr ecx, 0x10
mov byte [ebx + 3], cl
shr eax, 0x18
mov byte [ebx + 4], al
lea eax, [esp + 0x20]
mov esi, dword [esp + 0x20]
push eax
push esi
push 5
push ebx
mov dword [esp + 0x20], 5
mov dword [esp + 0x1c], ebx
call dword [esp + 0x34]
test eax, eax
jne 0x100055c4
call fcn.10006f60
mov eax, dword [0x100d05dc]
lea ecx, [esp + 0x20]
push ecx
push esi
lea ecx, [esp + 0x18]
mov dword [0x100d05d8], eax
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
call eax
push ebx
push str.AddHook_Success:0x_p
call fcn.10006e40
mov ecx, dword [esp + 0x5cc]
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005fb30
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x3c0]
push eax
push str.Parse_Error:_s
jmp 0x100054db
push str.hook
call fcn.10006e40
add esp, 4
push ebx
push str.AddHook_Failed:0x_p
call fcn.10006e40
add esp, 8
jmp 0x100054ee