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

Disassembly:
sub esp, 0x374
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x370], eax
mov eax, dword [esp + 0x378]
push ebx
mov dword [esp + 0x36c], eax
mov eax, dword [0x100836c4]
push ebp
push edi
mov dword [esp + 0x10], ecx
mov ebx, edx
test eax, eax
jne 0x1000f980
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100836c4], eax
push 0
push 0x18
lea edx, [esp + 0x38]
push edx
push 0
push esi
call eax
test eax, eax
jns 0x1000f9ac
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.100201e8
add esp, 0x374
ret
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1000f992
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0x1d8
lea ecx, [esp + 0xa8]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x1000f992
mov ebp, dword [esp + 0xa8]
push 0
push 0x40
lea edx, [esp + 0x68]
push edx
push ebp
push esi
call edi
test eax, eax
je 0x1000f992
mov ecx, dword [esp + 0x9c]
push 0
push pe_nt_image_headers32
lea eax, [esp + 0x280]
push eax
add ecx, ebp
push ecx
push esi
call edi
test eax, eax
je 0x1000f992
call fcn.1001e290
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx + eax + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
add ecx, eax
push 0x1000
push edx
push 0
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
call edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000f992
cmp dword [esp + 0x10], 0
mov dword [0x100836e6], 0
mov dword [0x100836ea], ebx
je 0x1000fa9b
test ebx, ebx
jle 0x1000fa9b
push 0x40
push 0x1000
push ebx
push 0
push esi
call edi
mov edi, eax
test edi, edi
je 0x1000fa9b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ebx
push ecx
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1000fa9b
mov edx, dword [esp + 0xc]
mov dword [0x100836ea], edx
mov dword [0x100836e6], edi
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x2a0]
mov dword [0x100836c8], eax
mov eax, dword [esp + 0x338]
add edi, ebp
mov dword [0x100836d4], ebp
mov dword [esp + 0x10], edi
mov byte [0x100836e5], 0
test eax, eax
je 0x1000fb18
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0x18
lea edx, [esp + 0x50]
push edx
add eax, ebp
push eax
push esi
call ebx
test eax, eax
je 0x1000fb18
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1000fb18
push 0
push 4
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov dword [esp + 0x38], 0
call ebx
test eax, eax
je 0x1000fb18
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000fb18
mov dword [esp + 0x10], eax
mov byte [0x100836e5], 1
mov edi, eax
mov ebx, dword [esp + 0x374]
push ebp
push ebx
mov dword [0x100836d0], edi
mov byte [0x100836e4], 1
mov byte [0x100836ee], 1
mov dword [0x100836dc], 2
mov dword [0x100836e0], 0
call fcn.1000fce0
add ebx, dword [ebx + 0x3c]
mov dword [esp + 0x37c], eax
movzx eax, word [ebx + 0x14]
xor ecx, ecx
add esp, 8
lea eax, [eax + ebx + 0x18]
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
cmp cx, word [ebx + 6]
jae 0x1000fbfc
lea edi, [eax + 0xc]
mov eax, dword [edi - 4]
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push 4
push eax
add ecx, ebp
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1000fbe4
mov edx, dword [edi - 4]
mov eax, dword [edi]
mov ecx, dword [esp + 0x374]
push 0
push edx
lea edx, [eax + ecx]
push edx
add eax, ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000fbca
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [edi - 4]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi]
push ecx
push edx
add eax, ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [esp + 0x20]
movzx ecx, word [ebx + 6]
inc eax
add edi, 0x28
mov dword [esp + 0x20], eax
cmp eax, ecx
jl 0x1000fb82
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x374]
push 0x8000
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 5
push 0x100836ef
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x1000fc85
lea ecx, [esp + 0x2c]
push ecx
mov eax, ebx
sub eax, edi
sub eax, dword [esp + 0x20]
push 0x40
push 5
add eax, 0x1001e2c9
push edi
sub eax, 5
push esi
mov byte [esp + 0x388], 0xe9
mov dword [esp + 0x389], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1000fc85
mov edx, dword [esp + 0x2c]
push 0
push 5
lea eax, [esp + 0x37c]
push eax
push edi
push esi
mov dword [0x100836d8], edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, 1
test eax, eax
jne 0x1000fc89
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x50]
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1000fcb2
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
jmp 0x1000fcc4
test edi, edi
jne 0x1000fcc4
push 0x8000
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [esp + 0x37c]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100201e8
add esp, 0x374
ret