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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x188], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, 0x114
push esi
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x158]
push ebx
push eax
mov byte [ebp - 0x159], bl
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x164], 0xffff
call fcn.004a63e0
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x148], 1
jne 0x477fba
push dword [ebp - 0x164]
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 0x478297
push dword [ebp - 0x164]
push 0xf0000
push edi
call fcn.004a5470
add esp, 0xc
jmp 0x478216
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 - 0x178], eax
pop eax
push 0x2e
mov word [ebp - 0x17c], ax
pop eax
mov word [ebp - 0x17a], ax
lea eax, [ebp - 0x17c]
push str.ntdll.dll
mov dword [ebp - 0x198], 0xf0000
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x1a4], 0x40
mov dword [ebp - 0x1b0], 0x18
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x19c], 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 - 0x168], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x16c], eax
call esi
mov edi, eax
cmp dword [ebp - 0x168], ebx
je 0x478120
cmp dword [ebp - 0x16c], ebx
je 0x478120
cmp edi, ebx
je 0x478120
lea eax, [ebp - 0x1b0]
push eax
push 4
lea eax, [ebp - 0x184]
push eax
call dword [ebp - 0x168]
test eax, eax
jne 0x478120
push 2
push ebx
push 1
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x198]
push eax
push 0xffff
push ebx
lea eax, [ebp - 0x170]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x184]
call dword [ebp - 0x16c]
test eax, eax
jne 0x478120
push dword [ebp - 0x164]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x160], eax
cmp eax, ebx
je 0x478111
push dword [ebp - 0x164]
push dword [ebp - 0x170]
push eax
call fcn.004a5470
add esp, 0xc
push dword [ebp - 0x170]
push 0xffffffffffffffff
call edi
jmp 0x478210
push 0x4de0b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x180], eax
cmp eax, 0x20
jb 0x478297
push str.GetSystemFirmwareTable
push eax
call esi
mov dword [ebp - 0x190], eax
cmp eax, ebx
je 0x478204
push ebx
push ebx
mov edi, 0xe0000
push edi
mov esi, 0x4649524d
push esi
call eax
mov dword [ebp - 0x16c], eax
cmp eax, ebx
je 0x478204
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x478204
mov eax, dword [ebp - 0x16c]
push eax
push ebx
mov dword [ebp - 0x174], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x168], eax
cmp eax, ebx
je 0x478204
push dword [ebp - 0x16c]
push eax
push edi
push esi
call dword [ebp - 0x190]
cmp eax, ebx
je 0x4781f8
cmp eax, dword [ebp - 0x174]
ja 0x4781f8
cmp eax, 0x1ffff
jb 0x4781f8
push dword [ebp - 0x164]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x160], eax
cmp eax, ebx
je 0x4781f8
push dword [ebp - 0x164]
mov ecx, dword [ebp - 0x168]
add ecx, 0x10000
push ecx
push eax
call fcn.004a5470
add esp, 0xc
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x160]
cmp edi, ebx
je 0x478297
lea eax, [ebp - 0x160]
push eax
mov dword [ebp - 0x160], edi
call fcn.004782ac
pop ecx
cmp eax, ebx
jne 0x478253
lea eax, [ebp - 0x160]
push eax
call fcn.0047836a
pop ecx
cmp eax, ebx
jne 0x478253
lea eax, [ebp - 0x160]
push eax
call fcn.00478428
pop ecx
cmp eax, ebx
je 0x478288
push 0x31
pop esi
cmp eax, esi
jae 0x47825c
mov esi, eax
cmp esi, ebx
jbe 0x478288
push esi
push dword [ebp - 0x160]
push dword [ebp - 0x188]
call fcn.004a5a30
mov eax, dword [ebp - 0x18c]
add esp, 0xc
cmp eax, ebx
je 0x478281
mov dword [eax], esi
mov byte [ebp - 0x159], 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 - 0x159]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a545d
leave
ret