Function at 0x10009010
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x10048070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov dword [ebp - 0x474], 0
push 0
push eax
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
call fcn.100167e0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.100167e0
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
add esp, 0xc
push 0x104
push eax
call esi
push 0x104
lea eax, [ebp - 0x418]
push eax
call esi
push str.D3D11.dll
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1001ea99
add esp, 0xc
lea eax, [ebp - 0x418]
push str.dxgi.dll
push 0x104
push eax
call fcn.1001ea99
mov eax, dword [0x10048c10]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x100090ea
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x210]
push eax
call esi
mov dword [0x10048c10], eax
test eax, eax
jne 0x1000913f
lea eax, [ebp - 0x210]
push eax
push str._DDAPrivacy__Load__ls_failed
push 0x19a
push str.CDDAHook::InitD3DHook
push str...DwmHookDwmBlackScreenDDAHook.cpp
push 4
push 0x1004a248
call fcn.100026e0
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001347d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10048c14]
test eax, eax
je 0x1000914b
push eax
call edi
lea eax, [ebp - 0x418]
push eax
call esi
mov dword [0x10048c14], eax
test eax, eax
jne 0x10009191
lea eax, [ebp - 0x418]
push eax
push str._DDAPrivacy__Load__ls_failed
push 0x1a6
push str.CDDAHook::InitD3DHook
push str...DwmHookDwmBlackScreenDDAHook.cpp
push 4
push 0x1004a248
call fcn.100026e0
add esp, 0x1c
mov ebx, 0x80004005
jmp 0x1000943a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateDXGIFactory
push eax
call esi
mov edi, eax
test edi, edi
jne 0x100091cf
push str._DDAPrivacy__Get_CreateDxgiFactory_failed
push 0x1ae
push str.CDDAHook::InitD3DHook
push str...DwmHookDwmBlackScreenDDAHook.cpp
push 4
push 0x1004a248
call fcn.100026e0
mov ebx, 0x80004005
jmp 0x10009437
push str.D3D11CreateDevice
push dword [0x10048c10]
call esi
mov esi, eax
test esi, esi
jne 0x100091ee
push str._DDAPrivacy__Get_D3D11CreateDevice_failed
push 0x1b6
jmp 0x100091af
lea eax, [ebp - 0x474]
push eax
push 0x10041794
call edi
mov ebx, eax
test ebx, ebx
jns 0x1000922b
push ebx
push str._DDAPrivacy__CreateDxgiFactory_failed__hr0x_x
push 0x1be
push str.CDDAHook::InitD3DHook
push str...DwmHookDwmBlackScreenDDAHook.cpp
push 4
push 0x1004a248
call fcn.100026e0
add esp, 0x1c
jmp 0x1000943a
lea eax, [ebp - 0x470]
mov dword [ebp - 0x424], 0xb000
push eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x420], 0xa100
push eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x41c], 0xa000
push eax
push 7
push 3
lea eax, [ebp - 0x424]
push eax
push 0
push 0
push 1
push 0
call esi
mov ebx, eax
test ebx, ebx
jns 0x10009286
push ebx
push str._DDAPrivacy__D3D11CreateDevice_failed__hr0x_x
push 0x1cf
jmp 0x1000920d
mov eax, dword [ebp - 0x46c]
lea edx, [ebp - 0x464]
push edx
push 0x10041740
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
jns 0x100092b3
push ebx
push str._DDAPrivacy__Query_IUnknown_Interface_failed__hr0x_x
push 0x1d6
jmp 0x1000920d
push 0x30
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.100167e0
mov eax, dword [ebp - 0x474]
lea edx, [ebp - 0x468]
add esp, 0xc
mov dword [ebp - 0x444], 1
mov dword [ebp - 0x460], 0x100
mov dword [ebp - 0x45c], 0x100
mov dword [ebp - 0x448], 0x20
push edx
push 0
lea edx, [ebp - 0x460]
mov dword [ebp - 0x458], 0x1c
push edx
push dword [ebp - 0x464]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x450], 1
mov dword [ebp - 0x43c], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
jns 0x10009362
push ebx
push str._DDAPrivacy__CreateSwapChain_failed__hr0x_x
push 0x1eb
jmp 0x1000920d
mov eax, dword [ebp - 0x468]
lea ecx, [ebp - 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
push 0x40
mov eax, dword [eax]
push 0x64
push eax
mov dword [0x10048c04], eax
mov dword [ebp - 0x428], 0x20
call esi
test eax, eax
jne 0x100093c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._DDAPrivacy__VirtualProtect_failed__LastError_d
push 0x1f5
push str.CDDAHook::InitD3DHook
push str...DwmHookDwmBlackScreenDDAHook.cpp
push 4
push 0x1004a248
call fcn.100026e0
add esp, 0x1c
mov ebx, 0x80004005
call fcn.10009750
jmp 0x1000943a
mov ecx, dword [0x10048c04]
mov eax, dword [ecx + 0x40]
mov dword [ecx + 0x40], 0x1000a7b0
mov ecx, dword [0x10048c04]
mov dword [0x1004a240], eax
mov eax, dword [ecx + 0x5c]
mov dword [0x1004a210], eax
mov dword [ecx + 0x5c], 0x1000a860
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x10009417
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push ecx
push eax
push 0x64
push dword [0x10048c04]
call esi
push str._DDAPrivacy__Hook_present_succeed
push 0x207
push str.CDDAHook::InitD3DHook
push str...DwmHookDwmBlackScreenDDAHook.cpp
push 8
push 0x1004a248
call fcn.100026e0
add esp, 0x18
mov ecx, dword [ebp - 0x464]
test ecx, ecx
je 0x10009454
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x464], 0
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x1000946e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x468], 0
mov ecx, dword [ebp - 0x470]
test ecx, ecx
je 0x10009488
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x470], 0
mov ecx, dword [ebp - 0x46c]
test ecx, ecx
je 0x100094a2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x46c], 0
mov ecx, dword [ebp - 0x474]
test ecx, ecx
je 0x100094b2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
not ebx
shr ebx, 0x1f
xor ecx, ebp
pop edi
pop esi
mov al, bl
pop ebx
call fcn.1001347d
mov esp, ebp
pop ebp
ret