Function at 0x42fc27
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], 0xffff
call fcn.0042fbcf
test eax, eax
je 0x42fc93
push dword [ebp - 0x4c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x42fecf
push dword [ebp - 0x4c]
push 0xf0000
push edi
call fcn.0044bfa0
add esp, 0xc
jmp 0x42fe66
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x2c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x64], eax
pop eax
push 0x2e
mov word [ebp - 0x68], ax
pop eax
mov word [ebp - 0x66], ax
lea eax, [ebp - 0x68]
push str.ntdll.dll
mov dword [ebp - 0x80], 0xf0000
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x98], 0x18
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 0x50], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x54], eax
call esi
mov edi, eax
cmp dword [ebp - 0x50], ebx
je 0x42fda8
cmp dword [ebp - 0x54], ebx
je 0x42fda8
cmp edi, ebx
je 0x42fda8
lea eax, [ebp - 0x98]
push eax
push 4
lea eax, [ebp - 0x74]
push eax
call dword [ebp - 0x50]
test eax, eax
jne 0x42fda8
push 2
push ebx
push 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0xffff
push ebx
lea eax, [ebp - 0x58]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x74]
call dword [ebp - 0x54]
test eax, eax
jne 0x42fda8
push dword [ebp - 0x4c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x42fd9c
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
push eax
call fcn.0044bfa0
add esp, 0xc
push dword [ebp - 0x58]
push 0xffffffffffffffff
call edi
jmp 0x42fe63
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6c], eax
cmp eax, 0x20
jb 0x42fecf
push str.GetSystemFirmwareTable
push eax
call esi
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x42fe5a
push ebx
push ebx
mov edi, 0xe0000
push edi
mov esi, 0x4649524d
push esi
call eax
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x42fe5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42fe5a
mov eax, dword [ebp - 0x54]
push eax
push ebx
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x42fe5a
push dword [ebp - 0x54]
push eax
push edi
push esi
call dword [ebp - 0x5c]
cmp eax, ebx
je 0x42fe51
cmp eax, dword [ebp - 0x78]
ja 0x42fe51
cmp eax, 0x1ffff
jb 0x42fe51
push dword [ebp - 0x4c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x42fe51
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
add ecx, 0x10000
push ecx
push eax
call fcn.0044bfa0
add esp, 0xc
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x48]
cmp edi, ebx
je 0x42fecf
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], edi
call fcn.0042fee1
pop ecx
cmp eax, ebx
jne 0x42fe97
lea eax, [ebp - 0x48]
push eax
call fcn.0042ffa2
pop ecx
cmp eax, ebx
jne 0x42fe97
lea eax, [ebp - 0x48]
push eax
call fcn.00430060
pop ecx
cmp eax, ebx
je 0x42fec0
push 0x31
pop esi
cmp eax, esi
jae 0x42fea0
mov esi, eax
cmp esi, ebx
jbe 0x42fec0
push esi
push dword [ebp - 0x48]
push dword [ebp - 0x70]
call fcn.0044c310
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp eax, ebx
je 0x42febc
mov dword [eax], esi
mov byte [ebp - 0x41], 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x41]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044bf82
leave
ret