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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4744f0]
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.0042081d
test eax, eax
je 0x4208e1
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 0x420b1d
push dword [ebp - 0x4c]
push 0xf0000
push edi
call fcn.004378e0
add esp, 0xc
jmp 0x420ab4
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 0x4209f6
cmp dword [ebp - 0x54], ebx
je 0x4209f6
cmp edi, ebx
je 0x4209f6
lea eax, [ebp - 0x98]
push eax
push 4
lea eax, [ebp - 0x74]
push eax
call dword [ebp - 0x50]
test eax, eax
jne 0x4209f6
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 0x4209f6
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 0x4209ea
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
push eax
call fcn.004378e0
add esp, 0xc
push dword [ebp - 0x58]
push 0xffffffffffffffff
call edi
jmp 0x420ab1
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6c], eax
cmp eax, 0x20
jb 0x420b1d
push str.GetSystemFirmwareTable
push eax
call esi
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x420aa8
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 0x420aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x420aa8
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 0x420aa8
push dword [ebp - 0x54]
push eax
push edi
push esi
call dword [ebp - 0x5c]
cmp eax, ebx
je 0x420a9f
cmp eax, dword [ebp - 0x78]
ja 0x420a9f
cmp eax, 0x1ffff
jb 0x420a9f
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 0x420a9f
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
add ecx, 0x10000
push ecx
push eax
call fcn.004378e0
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 0x420b1d
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], edi
call fcn.00420b2f
pop ecx
cmp eax, ebx
jne 0x420ae5
lea eax, [ebp - 0x48]
push eax
call fcn.00420bed
pop ecx
cmp eax, ebx
jne 0x420ae5
lea eax, [ebp - 0x48]
push eax
call fcn.00420cab
pop ecx
cmp eax, ebx
je 0x420b0e
push 0x31
pop esi
cmp eax, esi
jae 0x420aee
mov esi, eax
cmp esi, ebx
jbe 0x420b0e
push esi
push dword [ebp - 0x48]
push dword [ebp - 0x70]
call fcn.004384c0
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp eax, ebx
je 0x420b0a
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.00435bbb
leave
ret