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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x68]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x1002c380]
call fcn.10026950
xor eax, eax
push fcn.10024020
push ebp
push 0x1000ed20
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x1002c3b0], 0
jle 0x100240a4
cmp dword [0x1002c3a0], 0
je 0x100240a4
cmp dword [0x1002c390], 0
je 0x100240a4
add dword [0x1002c3b0], 1
mov eax, dword [0x1002c3a0]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [0x1002c390]
mov dword [edx], eax
jmp 0x1002439e
cmp dword [ebp - 4], 0
je 0x1002438c
mov eax, dword [ebp - 4]
add eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [eax], 0x4550
jne 0x1002438c
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1002438c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.10002390
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0x18]
add edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 4]
movzx eax, word [eax + 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov bx, word [eax + 6]
sub bx, 1
and ebx, 0xffff
mov dword [ebp - 0x24], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x14]
mov edx, str..reloc
call fcn.1000f560
test eax, eax
jne 0x10024144
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
nop
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x5c]
call fcn.10002390
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
add dword [ebp - 0x14], 0x28
cmp ebx, dword [ebp - 0x24]
ja 0x10024128
cmp dword [ebp - 0x18], 0
je 0x10024344
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
jmp 0x1002423f
mov dword [ebp - 0x28], 8
jmp 0x10024220
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
mov ax, word [eax]
mov word [ebp - 0x60], ax
movzx eax, word [ebp - 0x60]
shr eax, 0xc
and eax, 0xf
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x60]
and eax, 0xfff
mov word [ebp - 0x68], ax
mov ax, word [ebp - 0x64]
cmp ax, 3
jb 0x1002421c
sub ax, 3
jne 0x1002421c
nop
movzx eax, word [ebp - 0x68]
mov edx, dword [ebp - 0x20]
add eax, dword [edx]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
add eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax + 0x34]
mov eax, dword [ecx]
sub eax, edx
add eax, dword [ebp - 0x1c]
mov dword [ecx], eax
lea esi, [esi]
add dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x28]
ja 0x100241b8
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp - 0x24]
ja 0x100241a8
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x80], 0
je 0x10024344
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
jmp 0x10024336
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x48]
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x100242b4
push dword [ebp - 0x48]
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1002439e
mov esi, esi
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
jmp 0x1002432a
mov byte [ebp - 0x58], 0
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
mov eax, edx
and eax, 0x7fffffff
cmp eax, edx
je 0x100242ec
mov byte [ebp - 0x58], 1
and dword [ebp - 0x2c], 0x7fffffff
mov esi, esi
cmp byte [ebp - 0x58], 0
jne 0x1002430c
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
add eax, 2
push eax
push dword [ebp - 0x4c]
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x54], eax
jmp 0x1002431a
push dword [ebp - 0x2c]
push dword [ebp - 0x4c]
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov dword [edx], eax
add dword [ebp - 0x50], 4
add dword [ebp - 0x34], 4
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x100242c8
add dword [ebp - 0x30], 0x14
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x10024278
mov esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
push 0
push 1
push dword [ebp - 0x1c]
call dword [ebp - 0x3c]
test al, al
je 0x1002439e
mov esi, esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov dword [0x1002c3b0], 1
mov eax, dword [ebp - 0xc]
mov dword [0x1002c3a0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [0x1002c390], eax
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.10024020
jmp 0x100243a5
call fcn.10002aa0
jmp 0x100243a5
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret