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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push str.kernel32
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x401101
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004039b9
mov esp, ebp
pop ebp
ret
push dword [edi + 0x54]
push ebx
push esi
call fcn.00406280
movzx edx, word [edi + 0x14]
xor eax, eax
mov ecx, dword [ebp - 0x10]
add edi, 0x18
add edx, edi
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x18], edx
cmp ax, word [ecx + 6]
jae 0x40115e
nop word [eax + eax]
movzx eax, di
lea eax, [eax + eax*4]
push dword [edx + eax*8 + 0x10]
lea ecx, [edx + eax*8]
mov eax, dword [ecx + 0x14]
add eax, ebx
push eax
mov eax, dword [ecx + 0xc]
add eax, esi
push eax
call fcn.00406280
mov ecx, dword [ebp - 0x10]
inc edi
mov edx, dword [ebp - 0x18]
add esp, 0xc
cmp di, word [ecx + 6]
jb 0x401130
mov eax, dword [ecx + 0x80]
test eax, eax
je 0x401203
cmp dword [ecx + 0x84], 0x14
jbe 0x401203
cmp dword [eax + esi + 0xc], 0
lea ebx, [eax + esi]
mov dword [ebp - 0xc], ebx
je 0x401203
nop word [eax + eax]
push str.LoadLibraryA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebx + 0xc]
add ecx, esi
push ecx
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4011f4
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx]
test ecx, ecx
lea ebx, [edx + esi]
cmovne edx, ecx
mov eax, dword [edx + esi]
lea edi, [edx + esi]
test eax, eax
je 0x4011f1
jns 0x4011d4
movzx eax, ax
jmp 0x4011d9
add eax, 2
add eax, esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add edi, 4
mov dword [ebx], eax
add ebx, 4
mov eax, dword [edi]
test eax, eax
jne 0x4011cd
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0xc], ebx
cmp dword [ebx + 0xc], 0
jne 0x401190
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x3c]
mov ebx, esi
sub ebx, dword [ecx + 0x34]
mov edx, dword [eax + esi + 0xa4]
test edx, edx
je 0x401276
mov eax, dword [eax + esi + 0xa0]
test eax, eax
je 0x401276
lea edi, [eax + edx]
add edi, esi
lea edx, [eax + esi]
mov dword [ebp - 0xc], edi
cmp edx, edi
jae 0x401276
cmp dword [edx], 0
je 0x401273
mov edi, dword [edx + 4]
lea eax, [edx + 4]
mov dword [ebp - 0x14], eax
cmp edi, 8
jb 0x40126c
add edi, 0xfffffff8
mov ecx, 0
shr edi, 1
je 0x40126c
nop
movzx eax, word [edx + ecx*2 + 8]
test ax, ax
je 0x401264
and eax, 0xfff
add eax, dword [edx]
add dword [eax + esi], ebx
inc ecx
cmp ecx, edi
jb 0x401250
mov eax, dword [ebp - 0x14]
add edx, dword [eax]
cmp edx, dword [ebp - 0xc]
jb 0x401230
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push 2
push dword [ecx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
xor edi, edi
cmp cx, word [eax + 6]
jae 0x401312
mov ecx, dword [ebp - 0x18]
movzx eax, di
lea eax, [eax + eax*4]
mov ebx, dword [ecx + eax*8 + 0xc]
lea edx, [ecx + eax*8]
mov eax, dword [edx + 0x24]
add ebx, esi
mov dword [ebp - 0xc], eax
test eax, 0x2000000
je 0x4012c3
push 0x4000
push dword [edx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401308
mov ecx, eax
shr eax, 0x1e
and eax, 1
shr ecx, 0x1d
and ecx, 1
lea ecx, [eax + ecx*2]
mov eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0x4000000
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ecx, dword [eax*4 + 0x415878]
lea eax, [ebp - 8]
push eax
mov eax, ecx
or eax, 0x200
cmp dword [ebp - 0xc], 0
cmove eax, ecx
push eax
push dword [edx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10]
inc edi
cmp di, word [eax + 6]
jb 0x401293
cmp dword [eax + 0xc4], 0
je 0x401342
mov eax, dword [eax + 0xc0]
mov edi, dword [eax + esi + 0xc]
test edi, edi
je 0x401342
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x401342
push 0
push 1
push esi
call eax
add edi, 4
jne 0x401330
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004039b9
mov esp, ebp
pop ebp
ret