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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x48], eax
push esi
push edi
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0xffff
call fcn.004b0720
test eax, eax
je 0x4b07e6
mov eax, dword [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b07e1
mov ecx, dword [ebp - 4]
push ecx
push 0xf0000
mov edx, dword [ebp - 0xc]
push edx
call fcn.004452f0
add esp, 0xc
jmp 0x4b0aa3
mov dword [ebp - 0x90], 0xf0000
mov dword [ebp - 0x8c], 0
mov ecx, 0xb
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov dword [ebp - 0x56], eax
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov word [ebp - 0x4a], ax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x34], ecx
mov edx, 0x2c
mov word [ebp - 0x38], dx
mov eax, 0x2e
mov word [ebp - 0x36], ax
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x24], 0x18
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
push str.ZwOpenSection
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
push str.ZwMapViewOfSection
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
push str.ZwUnmapViewOfSection
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x44], 0
je 0x4b093a
cmp dword [ebp - 0x40], 0
je 0x4b093a
cmp dword [ebp - 0x28], 0
je 0x4b093a
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 0x44]
test eax, eax
jne 0x4b093a
push 2
push 0
push 1
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0xffff
push 0
lea eax, [ebp - 0x3c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x30]
push ecx
call dword [ebp - 0x40]
test eax, eax
jne 0x4b093a
mov edx, dword [ebp - 4]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b092c
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004452f0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x28]
jmp 0x4b0aa3
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x20
jb 0x4b0aa3
push str.GetSystemFirmwareTable
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x4b0a96
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa0]
push eax
push 0xe0000
push 0x4649524d
call dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x4b0a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0x7a
jne 0x4b0a96
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x9c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x4b0a96
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
push 0xe0000
push 0x4649524d
call dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x4b0a89
mov edx, dword [ebp - 0x9c]
cmp edx, dword [ebp - 0xa4]
ja 0x4b0a89
cmp dword [ebp - 0x9c], 0x1ffff
jb 0x4b0a89
mov eax, dword [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b0a89
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, 0x10000
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004452f0
add esp, 0xc
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xc], 0
je 0x4b0b89
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.004b0600
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x4b0b07
lea edx, [ebp - 0xb0]
push edx
call fcn.004b04e0
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x4b0b07
lea eax, [ebp - 0xb0]
push eax
call fcn.004b0380
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x4b0b76
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [ebp + 0xc]
jae 0x4b0b29
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb8], edx
jmp 0x4b0b32
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb4], 0
jbe 0x4b0b76
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00447f00
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4b0b72
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xb4]
mov dword [edx], eax
mov byte [ebp - 5], 1
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 5]
pop edi
pop esi
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret