Function at 0x1004d030
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, 0x50
mov eax, dword [0x10071040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10076fc8]
lea edx, [ebp - 0x28]
push esi
push edi
push ecx
lea eax, [ecx + 0x9e9e40]
mov dword [ebp - 0x28], 0x28
mov dword [ebp - 0x4c], eax
lea esi, [ecx + 0x112652c]
mov eax, dword [0x10076f38]
lea ecx, [ebp - 0x40]
shl eax, 2
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
push edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], esi
call fcn.100457e0
mov edi, dword [ebp - 0x3c]
xor eax, eax
mov edx, dword [ebp - 0x40]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1004d0b7
mov ecx, dword [edx + eax*4]
inc eax
add ecx, dword [esi]
mov esi, ecx
cmp eax, edi
jb 0x1004d0a8
mov dword [ebp - 0x2c], ecx
test edx, edx
je 0x1004d0ed
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004d0e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004d0e3
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
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100457e0
mov edi, dword [ebp - 0x24]
add esi, 0xd0
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub edi, edx
mov dword [ebp - 0x10], esi
sar edi, 2
test edi, edi
je 0x1004d12f
nop
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1004d120
mov dword [ebp - 0x10], eax
test edx, edx
je 0x1004d165
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004d15b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004d15b
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 edi, dword [0x10076fc8]
lea ecx, [ebp - 0x34]
push ecx
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x48], esi
add edi, 0x1126508
mov dword [ebp - 0x3c], 0x10
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], edi
call fcn.100457e0
mov esi, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub esi, edx
sar esi, 2
test esi, esi
je 0x1004d1b6
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004d1a7
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1004d201
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004d1e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004d1e2
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 - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
add esi, 0x604
add edi, 0x230
push esi
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea esi, [edi + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [esi], 0
push eax
push dword [ebp - 8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [esi], 0
push eax
push dword [ebp - 8]
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0
push eax
push 0x40
push 4
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [edi + 0x18]
add edi, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push 4
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x40
push 4
lea eax, [ebp - 0xc]
push eax
call esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x244]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push 4
push eax
call esi
add dword [ebp - 0xc], 0x10
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
add esi, 0x280
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
push 1
call dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push edi
call esi
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 4
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005ae5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret