Function at 0x10023cc0
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 [0x1002a380]
call fcn.10026990
xor eax, eax
push fcn.10023cb0
push ebp
push 0x1000ed80
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x1002a3b0], 0
jle 0x10023d34
cmp dword [0x1002a3a0], 0
je 0x10023d34
cmp dword [0x1002a390], 0
je 0x10023d34
add dword [0x1002a3b0], 1
mov eax, dword [0x1002a3a0]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [0x1002a390]
mov dword [edx], eax
jmp 0x1002402e
cmp dword [ebp - 4], 0
je 0x1002401c
mov eax, dword [ebp - 4]
add eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [eax], 0x4550
jne 0x1002401c
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 0x1002401c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.10002420
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 0x10023dd4
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.10002420
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 0x10023db8
cmp dword [ebp - 0x18], 0
je 0x10023fd4
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 0x10023ecf
mov dword [ebp - 0x28], 8
jmp 0x10023eb0
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 0x10023eac
sub ax, 3
jne 0x10023eac
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 0x10023e48
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 0x10023e38
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x80], 0
je 0x10023fd4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
jmp 0x10023fc6
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 0x10023f44
push dword [ebp - 0x48]
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1002402e
mov esi, esi
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
jmp 0x10023fba
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 0x10023f7c
mov byte [ebp - 0x58], 1
and dword [ebp - 0x2c], 0x7fffffff
mov esi, esi
cmp byte [ebp - 0x58], 0
jne 0x10023f9c
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 0x10023faa
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 0x10023f58
add dword [ebp - 0x30], 0x14
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x10023f08
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 0x1002402e
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 [0x1002a3b0], 1
mov eax, dword [ebp - 0xc]
mov dword [0x1002a3a0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [0x1002a390], eax
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.10023cb0
jmp 0x10024035
call fcn.10002b30
jmp 0x10024035
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret