Function at 0x17e21d0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov eax, 0x3000
push ebp
push esi
push edi
mov edi, dword [ebx + 0x3c]
push 4
add edi, ebx
push eax
xor eax, eax
push dword [edi + 0x50]
mov esi, dword [edi + 0x3c]
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x17f0348], eax
push dword [edi + 0x54]
push ebx
push eax
call fcn.017e1ec6
mov ebp, dword [edi + 0x54]
xor edx, edx
dec ebp
add esp, 0xc
mov eax, ebp
div esi
movzx eax, word [edi + 6]
sub ebp, edx
mov ecx, eax
add ebp, esi
lea edx, [edi + 0xf8]
mov esi, dword [0x17f0348]
sub esi, ebx
xor ebx, ebx
add esi, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
test ax, ax
je 0x17e2294
lea ebx, [esi + 0x24]
lea esi, [edx + 8]
mov dword [ebx - 0x10], ebp
xor edx, edx
mov ecx, dword [esi]
dec ecx
mov eax, ecx
div dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub eax, edx
add ecx, eax
mov eax, dword [ebx]
mov dword [ebx - 0x14], ecx
test eax, 0x20000000
je 0x17e226f
and eax, 0x7fffffff
mov dword [ebx], eax
mov edx, dword [esp + 0x18]
add ebp, ecx
movzx ecx, word [edi + 6]
inc edx
add esi, 0x28
mov dword [esp + 0x18], edx
add ebx, 0x28
cmp edx, ecx
jne 0x17e2246
mov esi, dword [esp + 0x1c]
lea edx, [edi + 0xf8]
xor ebx, ebx
movzx eax, cx
imul ecx, eax, 0x28
mov dword [esp + 0x18], ebx
mov eax, dword [ecx + esi - 0x18]
add eax, dword [ecx + esi - 0x14]
mov dword [0x17f034c], eax
cmp word [edi + 6], bx
je 0x17e22ec
lea ebx, [esi + 0x14]
mov esi, dword [esp + 0x18]
lea ebp, [edx + 0xc]
push dword [ebx - 4]
mov eax, dword [ebp]
add eax, dword [esp + 0x28]
push eax
mov eax, dword [ebx]
add eax, dword [0x17f0348]
push eax
call fcn.017e1ec6
movzx eax, word [edi + 6]
lea ebp, [ebp + 0x28]
add esp, 0xc
lea ebx, [ebx + 0x28]
inc esi
cmp esi, eax
jne 0x17e22bb
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [0x17f0348]
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [0x17f05c0]
sub eax, dword [0x17f05b0]
mov dword [ecx + 0x80], eax
mov eax, dword [0x17f05c4]
mov dword [ecx + 0x84], eax
cmp dword [0x17f05d4], 0
je 0x17e2381
mov dword [ecx + 0xa4], 0xc
movzx eax, word [edi + 6]
test eax, eax
je 0x17e238d
lea edx, [esi + 0x10]
mov ebp, dword [edx - 4]
cmp dword [ecx + 0xa0], ebp
jb 0x17e234b
mov eax, dword [edx]
add eax, ebp
cmp dword [ecx + 0xa0], eax
jb 0x17e2355
movzx eax, word [edi + 6]
inc ebx
add edx, 0x28
cmp ebx, eax
jne 0x17e2330
jmp 0x17e238d
imul eax, ebx, 0x28
mov edx, dword [eax + esi + 0x14]
sub edx, ebp
add edx, dword [ecx + 0xa0]
je 0x17e238d
mov eax, dword [0x17f0348]
and dword [eax + edx], 0
mov dword [eax + edx + 4], 0xc
mov dword [eax + edx + 8], 0x3000
jmp 0x17e238d
mov dword [ecx + 0xa4], ebx
mov dword [ecx + 0xa0], ebx
mov eax, dword [0x17f05a0]
sub eax, dword [ecx + 0x34]
add eax, dword [0x17f05a8]
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx + 0x28], eax
movzx eax, word [edi + 6]
and dword [esp + 0x10], 0
imul esi, eax, 0x28
lea eax, [edi + 0xf8]
sub esi, ebx
add esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call ebp
xor ecx, ecx
mov edx, ecx
cmp word [edi + 6], cx
je 0x17e23f7
lea ecx, [edi + 0x11c]
mov eax, dword [ecx]
test eax, 0x20000000
je 0x17e23e9
and eax, 0x7fffffff
mov dword [ecx], eax
movzx eax, word [edi + 6]
inc edx
add ecx, 0x28
cmp edx, eax
jne 0x17e23d9
xor ecx, ecx
mov eax, dword [0x17f05c0]
sub eax, dword [0x17f05b0]
mov dword [edi + 0x80], eax
mov eax, dword [0x17f05c4]
mov dword [edi + 0x84], eax
cmp dword [0x17f05d4], 0
je 0x17e2472
push ecx
mov dword [edi + 0xa4], 0xc
push dword [esp + 0x14]
push esi
push ebx
call ebp
mov eax, dword [edi + 0xa4]
lea ecx, [esp + 0x10]
mov esi, dword [edi + 0xa0]
add ebx, esi
push ecx
push 0x40
push eax
push ebx
mov dword [esp + 0x34], eax
call ebp
test esi, esi
je 0x17e2462
xor eax, eax
mov dword [ebx + 4], 0xc
mov dword [ebx], eax
mov dword [ebx + 8], 0x3000
xor eax, eax
push eax
push dword [esp + 0x14]
push dword [esp + 0x2c]
push ebx
call ebp
jmp 0x17e247e
mov dword [edi + 0xa4], ecx
mov dword [edi + 0xa0], ecx
mov eax, dword [0x17f05a0]
sub eax, dword [edi + 0x34]
add eax, dword [0x17f05a8]
mov dword [edi + 0x28], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret