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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x498070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x114
mov dword [ebp - 0x180], eax
push esi
xor ebx, ebx
mov dword [ebp - 0x17c], ecx
lea eax, [ebp - 0x15c]
mov byte [ebp - 0x15d], 0
push ebx
push eax
mov dword [ebp - 0x168], 0xffff
call fcn.0043bad0
add esp, 0xc
mov dword [ebp - 0x15c], esi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x14c], 1
jne 0x40d65f
push dword [ebp - 0x168]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x40d90d
push dword [ebp - 0x168]
push 0xf0000
push ebx
call fcn.0043c9a0
add esp, 0xc
jmp 0x40d896
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
mov dword [ebp - 0x194], 0xf0000
lea edi, [ebp - 0x44]
mov dword [ebp - 0x1a0], 0x40
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x1ac], 0x18
push 0x2c
xor edx, edx
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x16]
mov dword [ebp - 0x190], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x19c], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x198], edx
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x184], eax
pop eax
push 0x2e
mov word [ebp - 0x188], ax
pop eax
mov word [ebp - 0x186], ax
lea eax, [ebp - 0x188]
push str.ntdll.dll
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.ZwOpenSection
push esi
call edi
push str.ZwMapViewOfSection
push esi
mov dword [ebp - 0x164], eax
call edi
push str.ZwUnmapViewOfSection
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x40d7bc
test edi, edi
je 0x40d7bc
test esi, esi
je 0x40d7bc
lea ecx, [ebp - 0x1ac]
push ecx
push 4
lea ecx, [ebp - 0x170]
push ecx
call eax
test eax, eax
jne 0x40d7bc
push 2
push eax
push 1
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x194]
push eax
push 0xffff
push 0
lea eax, [ebp - 0x16c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x170]
call edi
test eax, eax
jne 0x40d7bc
push dword [ebp - 0x168]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x40d7ad
push dword [ebp - 0x168]
push dword [ebp - 0x16c]
push ebx
call fcn.0043c9a0
add esp, 0xc
push dword [ebp - 0x16c]
push 0xffffffffffffffff
call esi
jmp 0x40d896
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x178], eax
cmp eax, 0x20
jb 0x40d90d
push str.GetSystemFirmwareTable
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x174], eax
test eax, eax
je 0x40d88a
push 0
push 0
push 0xe0000
push 0x4649524d
call eax
mov esi, eax
mov dword [ebp - 0x164], esi
test esi, esi
je 0x40d88a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d88a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40d88a
push dword [ebp - 0x164]
push esi
push 0xe0000
push 0x4649524d
call dword [ebp - 0x174]
test eax, eax
je 0x40d883
cmp eax, dword [ebp - 0x164]
ja 0x40d883
cmp eax, 0x1ffff
jb 0x40d883
push dword [ebp - 0x168]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x40d883
push dword [ebp - 0x168]
lea eax, [esi + 0x10000]
push eax
push ebx
call fcn.0043c9a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x178]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x40d90d
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x164], ebx
call fcn.0040d924
test eax, eax
jne 0x40d8cd
lea ecx, [ebp - 0x164]
call fcn.0040d9de
test eax, eax
jne 0x40d8cd
lea ecx, [ebp - 0x164]
call fcn.0040da98
test eax, eax
je 0x40d901
push 0x31
pop esi
cmp eax, esi
cmovb esi, eax
test esi, esi
je 0x40d901
push esi
push dword [ebp - 0x164]
push dword [ebp - 0x17c]
call fcn.0043cf20
mov eax, dword [ebp - 0x180]
add esp, 0xc
test eax, eax
je 0x40d8fa
mov dword [eax], esi
mov byte [ebp - 0x15d], 1
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x15d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043a99c
mov esp, ebp
pop ebp
ret