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

Disassembly:
sub esp, 0x140
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], bl
mov esi, str.devicephysicalmemory
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xb
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ecx, [esp + 0x4c]
movsw word es:[edi], word [esi]
mov dword [esp + 0x7a], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x7e], eax
push str.ntdll.dll
mov dword [esp + 0x86], eax
mov dword [esp + 0x30], 0xf0000
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0xffff
mov word [esp + 0x8a], ax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
mov word [esp + 0x20], 0x2c
mov word [esp + 0x22], 0x2e
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
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 ebp, eax
call edi
push str.ZwUnmapViewOfSection
push esi
mov dword [esp + 0x18], eax
call edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push 4
push ecx
call ebp
test eax, eax
jne 0x41688b
push 2
push ebx
lea edx, [esp + 0x30]
push 1
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x34]
push eax
push 0xffff
lea ecx, [esp + 0x30]
push ebx
push ecx
push 0xffffffffffffffff
push edx
call dword [esp + 0x38]
test eax, eax
jne 0x41688b
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
call fcn.00416960
cmp eax, ebx
jne 0x416859
lea edx, [esp + 0x10]
push edx
call fcn.00416a00
cmp eax, ebx
jne 0x416859
lea eax, [esp + 0x10]
push eax
call fcn.00416aa0
cmp eax, ebx
je 0x416880
cmp eax, 0xc7
jb 0x416865
mov eax, 0xc7
mov esi, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
lea edi, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
push eax
push 0xffffffffffffffff
call dword [esp + 0x1c]
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0xfffffffd
mov dword [esp + 0x14], esi
jbe 0x4168ad
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x154]
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x4168e7
mov al, byte [ecx - 1]
cmp al, bl
je 0x4168e7
cmp al, 0xff
je 0x4168e7
cmp esi, ebx
jne 0x41691a
dec al
pop edi
mov byte [ecx - 1], al
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x140
ret 4
cmp esi, ebx
jne 0x416904
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x140
ret 4
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x416910
cmp eax, esi
jae 0x416923
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
pop edi
mov dword [ebp + 8], eax
pop esi
mov byte [ecx + eax], bl
pop ebp
mov al, 1
pop ebx
add esp, 0x140
ret 4