Function at 0x100023e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor eax, eax
push esi
push edi
xor edi, edi
push str.kernel32.dll
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call ebx
mov esi, eax
cmp esi, edi
je 0x100025da
push str.ntdll.dll
call ebx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100025da
push 0x28
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x100025da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
push 0x10010b5c
mov dword [ebx + 0x20], eax
push esi
mov dword [ebx + 0x24], eax
call edi
push 0x10010b64
push esi
mov dword [ebx + 0x1c], eax
call edi
push 0x10010b74
push esi
mov dword [ebx + 8], eax
call edi
push 0x10010b80
push esi
mov dword [ebx + 0xc], eax
call edi
push 0x10010b90
push esi
mov dword [ebx + 0x10], eax
call edi
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 8]
push str.memcpy
push eax
call edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x28], edi
mov esi, edi
mov dword [ebp - 4], 0
push 0x1c
lea ecx, [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10002594
add esi, dword [ebp - 0x20]
inc dword [ebp - 4]
cmp dword [ebp - 0x28], edi
je 0x100024c4
mov eax, dword [ebp - 4]
lea edx, [eax*8]
sub edx, eax
add edx, edx
mov dword [ebx], edi
sub esi, dword [ebp - 0x20]
add edx, edx
push edx
sub esi, edi
push 0
mov dword [ebx + 4], esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0x24], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10002594
mov edi, dword [ebx + 0x24]
add edi, dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 8], 0x1c
mov ecx, 7
lea esi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
cmp dword [ebp - 0x28], eax
je 0x10002521
push 0x40
mov esi, 0x100023d0
push 0x1000
sub esi, 0x10002270
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10002594
push esi
mov esi, eax
push 0x10002270
push esi
call fcn.1000b320
add esp, 0xc
push ebx
call esi
mov dword [ebp - 0x10], 1
mov eax, dword [ebx + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x100025ad
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100025ce
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4