Function at 0x1000d100
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x1001c040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
call fcn.10004970
cmp byte [0x1001d230], 0
jne 0x1000d12a
call fcn.10005150
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.d3d9.dll
call edi
test eax, eax
je 0x1000d130
push str.xx____xx____xx
push 0x10012670
mov ecx, eax
call fcn.100042a0
add esp, 8
mov ecx, dword [eax + 2]
push 0x10012680
push str.user32.dll
mov eax, dword [ecx + 0xa8]
mov dword [0x1001d3c4], eax
mov eax, dword [ecx + 0xc]
mov dword [0x1001d3d4], eax
mov eax, dword [ecx + 0x1c]
mov dword [0x1001d3d8], eax
mov eax, dword [ecx + 0xe4]
mov dword [0x1001d3c8], eax
mov eax, dword [ecx + 0x164]
mov dword [0x1001d3cc], eax
mov eax, dword [ecx + 0xc0]
mov dword [0x1001d3d0], eax
mov eax, dword [ecx + 0x68]
mov dword [0x1001d3e0], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [0x1001d22c], eax
add eax, 5
push str.keybd_event
push str.user32.dll
mov dword [0x1001d2c8], eax
call edi
push eax
call esi
mov dword [0x1001d73c], eax
add eax, 5
push str.D3DXVec3Project
push str.d3dx9_38.dll
mov dword [0x1001d178], eax
call edi
push eax
call esi
push str.D3DXCreateFontA
push str.d3dx9_38.dll
mov dword [0x1001d2cc], eax
call edi
push eax
call esi
mov dword [0x1001d2bc], eax
add eax, 5
push str.D3DXCreateLine
push str.d3dx9_38.dll
mov dword [0x1001d3f4], eax
call edi
push eax
call esi
mov dword [0x1001d4a8], eax
add eax, 5
mov dword [0x1001d408], eax
call fcn.100059c0
push 0
push 0
push 0
push 0x10004400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x1001e7e0]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [eax], 0xffffffff
jne 0x1000d27c
nop word [eax + eax]
push 0x64
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x1000ef90
push fcn.1000d490
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x1001e7e0]
cmp dword [eax], 0xffffffff
je 0x1000d250
push 0x3e8
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
push fcn.1000d490
call edi
mov eax, dword [0x1001e7ec]
mov ecx, fcn.1000d490
mov dword [ecx + 0x1f], eax
mov eax, dword [0x1001eaf4]
mov dword [ecx + 0x33], eax
mov eax, dword [0x1001e944]
mov dword [ecx + 0x92], eax
mov dword [ecx + 0x9e], eax
mov eax, dword [0x1001e860]
mov dword [ecx + 0xaf], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 4
push fcn.1000d490
call edi
mov ecx, dword [0x1001e8b4]
mov edx, 0x1000cfe0
push 6
call fcn.10004350
mov esi, dword [0x1001e8e4]
lea eax, [esp + 0x10]
add esp, 4
push eax
push 0x40
push 5
push esi
call edi
push 1
call ebx
push 1
call ebx
push 5
push 0x10015088
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push 1
call ebx
push 1
call ebx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 5
push esi
call edi
mov esi, dword [0x1001eaec]
lea eax, [esp + 0xc]
push eax
push 0x40
push 5
push esi
call edi
push 1
call ebx
push 1
call ebx
push 5
push 0x10015088
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push 1
call ebx
push 1
call ebx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 5
push esi
call edi
mov ecx, dword [0x1001d3c8]
mov edx, 0x1001d6ac
push 5
call fcn.10004350
mov ecx, dword [0x1001d3cc]
add esp, 4
mov edx, 0x1001d68c
push 5
call fcn.10004350
mov ecx, dword [0x1001d3d0]
add esp, 4
mov edx, 0x1001d64c
push 5
call fcn.10004350
mov ecx, dword [0x1001d3d8]
add esp, 4
mov edx, 0x1001d6ec
push 5
call fcn.10004350
mov ecx, dword [0x1001d3d4]
add esp, 4
mov edx, 0x1001d66c
push 5
call fcn.10004350
mov ecx, dword [0x1001d3e0]
add esp, 4
mov edx, 0x1001d6cc
push 5
call fcn.10004350
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010158
mov esp, ebp
pop ebp
ret