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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x10071040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10076fc8]
lea edx, [ebp - 0x40]
push esi
push edi
push ecx
lea eax, [ecx + 0x12f360]
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x80], eax
lea esi, [ecx + 0x11266dc]
lea eax, [ecx + 0x9e9e40]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], eax
lea eax, [ecx + 0x9ef9d0]
mov dword [ebp - 0x74], eax
lea eax, [ecx + 0x31b180]
mov dword [ebp - 0x6c], eax
lea eax, [ecx + 0x9eb0a0]
mov dword [ebp - 0x64], eax
lea eax, [ecx + 0x9ed7c0]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x50]
mov eax, dword [0x10076f34]
shl eax, 2
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push edx
mov dword [ebp - 0x14], esi
call fcn.100457e0
mov edi, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x50]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1004c997
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1004c988
mov dword [ebp - 0x14], eax
test edx, edx
je 0x1004c9e2
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004c9c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004c9c3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x60], esi
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x2c]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x1004ca22
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004ca13
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x1004ca58
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004ca4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004ca4e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
movzx ecx, di
cmp ecx, 0xffff
je 0x1004cadf
mov dword [ebp - 8], 0
call fcn.1004a610
mov edi, eax
lea eax, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 2
test eax, eax
je 0x1004caa4
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004ca95
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x1004cada
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004cad0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004cad0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov dword [ebp - 0x54], edi
jmp 0x1004cae6
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x2e]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x1004cb23
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004cb14
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x1004cb59
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004cb4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004cb4f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
movzx ecx, di
cmp ecx, 0xffff
je 0x1004cbe0
mov dword [ebp - 8], 0
call fcn.1004a610
mov edi, eax
lea eax, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 2
test eax, eax
je 0x1004cba5
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004cb96
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x1004cbdb
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004cbd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004cbd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov dword [ebp - 0x58], edi
jmp 0x1004cbe7
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x32]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x1004cc24
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004cc15
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x1004cc5a
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004cc50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004cc50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
movzx ecx, di
cmp ecx, 0xffff
je 0x1004cce1
mov dword [ebp - 8], 0
call fcn.1004a610
mov edi, eax
lea eax, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 2
test eax, eax
je 0x1004cca6
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004cc97
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x1004ccdc
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004ccd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004ccd2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov dword [ebp - 0x5c], edi
jmp 0x1004cce8
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov edi, dword [ebp - 0x24]
add esi, 0x30
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub edi, edx
sar edi, 2
test edi, edi
je 0x1004cd20
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1004cd14
test edx, edx
je 0x1004cd56
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004cd4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004cd4c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
movzx ecx, si
cmp ecx, 0xffff
je 0x1004cdd8
mov dword [ebp - 8], 0
lea edi, [ebp - 4]
call fcn.1004a610
push ecx
mov esi, eax
lea ecx, [ebp - 0x28]
push edi
lea eax, [ebp - 8]
push eax
call fcn.100457e0
mov edi, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1004cd9d
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1004cd91
test edx, edx
je 0x1004cdd3
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004cdc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004cdc9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov dword [ebp - 0xc], esi
jmp 0x1004cddf
mov dword [ebp - 0xc], 0
mov esi, dword [0x10076fc8]
lea ecx, [ebp - 0x44]
push ecx
push ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x10
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], 0
add esi, 0x1126508
call fcn.100457e0
mov edi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1004ce2c
nop dword [eax + eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1004ce20
test edx, edx
je 0x1004ce77
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004ce58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004ce58
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [esi + 0x230]
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 4]
lea eax, [esi + 0x1a0]
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 8]
lea eax, [esi + 0x600]
push ecx
mov dword [ebp - 0x68], eax
lea eax, [esi + 0x610]
mov esi, dword [0x10076fc8]
push ecx
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x78], eax
add esi, 0x11265c8
call fcn.100457e0
mov edi, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1004cedc
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1004ced0
test edx, edx
je 0x1004cf12
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004cf08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004cf08
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x14]
call dword [ebp - 0x64]
push 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call dword [ebp - 0x2c]
add ecx, 4
push 1
call dword [ebp - 0x2c]
add ecx, 4
push 1
call dword [ebp - 0x2c]
add ecx, 4
push 1
call dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 0x24
push eax
push 0x40
push 0x10
push esi
call edi
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push dword [ebp - 8]
movups xmmword [esi], xmm0
push 0x10
push esi
call edi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0x40
push 4
lea eax, [ebp - 0x10]
push eax
call edi
mov esi, dword [ebp - 0x14]
add esi, 0x18
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push 4
push eax
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x54]
push 1
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x58]
push 1
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x5c]
push 1
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push 1
call dword [ebp - 0x30]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 4
push esi
call edi
mov edi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
call dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x70]
call dword [ebp - 0x74]
push dword [ebp - 0x60]
push dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call dword [ebp - 0x80]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.1005ae5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret