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

Disassembly:
push 0x14
mov eax, 0x13007568
call fcn.13001a19
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, 0x5a4d
mov dword [ebp - 4], ebx
cmp word [eax], cx
jne 0x13001316
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x13001316
mov eax, 0x10b
cmp word [esi + 0x18], ax
jne 0x13001316
movzx eax, word [esi + 6]
cmp ax, bx
je 0x13001316
movzx eax, word [esi + 0x14]
lea ecx, [eax + esi + 0x18]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
xor edi, edi
movzx eax, word [esi + 6]
cmp bx, ax
jae 0x1300108c
mov edx, dword [ecx + 8]
test edx, edx
je 0x13001086
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebp - 0x18]
jae 0x1300107e
mov dword [ebp - 0x18], eax
add eax, edx
cmp eax, edi
jbe 0x13001086
mov edi, eax
inc ebx
add ecx, 0x28
jmp 0x13001063
sub edi, dword [ebp - 0x18]
mov eax, dword [esi + 0x34]
add eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push edi
push eax
mov dword [ebp - 0x20], edi
call ebx
mov ecx, dword [esi + 0x28]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov edi, dword [esi + 0x34]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x130010e2
test byte [esi + 0x16], 1
jne 0x13001316
push 0x40
push 0x3000
push dword [ebp - 0x20]
push eax
call ebx
mov edi, eax
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x13001316
push dword [esi + 0x38]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.13001a70
add esp, 0xc
and dword [ebp - 0x18], 0
movzx eax, word [esi + 6]
cmp dword [ebp - 0x18], eax
jge 0x13001151
dec eax
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
jne 0x13001111
mov eax, dword [esi + 0x50]
jmp 0x13001114
mov eax, dword [eax + 0x34]
push 4
sub eax, ecx
add ecx, dword [ebp - 0x14]
push 0x1000
push eax
push ecx
mov dword [ebp - 0x20], ecx
call ebx
cmp eax, dword [ebp - 0x20]
jne 0x13001316
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push eax
push dword [ebp - 0x20]
call fcn.13001a70
add esp, 0xc
inc dword [ebp - 0x18]
add dword [ebp - 0x1c], 0x28
jmp 0x130010f7
mov ebx, dword [esi + 0x34]
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x13001220
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x13001220
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x13001220
mov edx, edi
sub edx, ebx
add eax, edi
lea ecx, [ecx + eax - 8]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ecx
cmp eax, dword [ebp - 0x20]
jae 0x13001220
and dword [ebp + 8], 0
lea ecx, [eax + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], ecx
jae 0x13001218
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx]
mov ebx, ecx
shr ebx, 0xc
test ebx, ebx
je 0x1300120c
cmp ebx, 3
je 0x13001201
push 0
push 0
call fcn.13001dd1
mov eax, 0x13001316
ret
mov eax, dword [ebp - 0x14]
jmp 0x13001318
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + edi], edx
inc dword [ebp + 8]
add dword [ebp - 0x1c], 2
mov ecx, dword [ebp - 0x18]
jmp 0x130011ab
add eax, dword [eax + 4]
jmp 0x1300118d
mov ebx, dword [esi + 0x80]
test ebx, ebx
je 0x130012b0
cmp dword [esi + 0x84], 0
je 0x130012b0
add ebx, edi
mov dword [ebp - 0x1c], ebx
cmp dword [ebx], 0
je 0x130012b0
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x13001316
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x1c]
add ebx, edi
cmp dword [eax + 4], 0
je 0x13001277
mov eax, dword [eax]
test eax, eax
je 0x13001316
add eax, edi
mov dword [ebp + 8], eax
jmp 0x1300127a
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x130012a7
jns 0x1300128a
movzx eax, ax
jmp 0x1300128e
lea eax, [eax + edi + 2]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
test eax, eax
je 0x13001316
add dword [ebp + 8], 4
add ebx, 4
jmp 0x1300127a
add dword [ebp - 0x1c], 0x14
mov ebx, dword [ebp - 0x1c]
jmp 0x1300123c
xor ebx, ebx
lea edi, [esi + 0x104]
movzx eax, word [esi + 6]
cmp ebx, eax
jge 0x130011e9
dec eax
cmp ebx, eax
mov eax, dword [edi]
jne 0x130012d0
mov ecx, dword [esi + 0x50]
jmp 0x130012d3
mov ecx, dword [edi + 0x28]
mov edx, dword [ebp - 0x14]
sub ecx, eax
add edx, eax
mov eax, dword [edi + 0x18]
mov dword [ebp + 8], 4
test eax, 0x60000000
je 0x130012fd
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x13001316
inc ebx
add edi, 0x28
jmp 0x130012b8
xor eax, eax
call fcn.13001a4f
ret