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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x100e5dd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100a9128
mov dword [ebp - 0x16c], eax
mov byte [0x100eb0b0], 1
call fcn.100057b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10006869
push str.d3d9_init:_Failed_to_load_D3D11
call fcn.10003740
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
push 0x100a9168
call fcn.100057b0
add esp, 4
test eax, eax
jne 0x1000689a
push str.d3d9_init:_Failed_to_load_DXGI
call fcn.10003740
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateDXGIFactory1
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x100068ce
push str.d3d9_init:_Failed_to_get_CreateDXGIFactory1_address
call fcn.10003740
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
push str.D3D11CreateDevice
push esi
call edi
mov edi, eax
test edi, edi
jne 0x100068fc
push str.d3d9_init:_Failed_to_get_D3D11CreateDevice_address
call fcn.10003740
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x158]
push eax
push 0x100a9c30
call ebx
test eax, eax
jns 0x1000692f
push eax
push str.d3d9_init:_Failed_to_create_factory_object
call fcn.100037f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x158]
lea edx, [ebp - 0x15c]
push edx
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x158]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x10006977
push esi
push str.d3d9_init:_Failed_to_get_adapter
call fcn.100037f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x154]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [0x100ea980]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push 0x100eb0bc
mov dword [eax + 0x94], ecx
mov dword [eax + 0x98], edx
lea eax, [ebp - 0x168]
push eax
push 0x100eb0b8
push 7
push 3
push 0x100a9ba8
push 0
push 0
push 0
push dword [ebp - 0x15c]
call edi
mov ecx, dword [ebp - 0x15c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x100069fc
push esi
push str.d3d9_init:_Failed_to_create_D3D11_device
call fcn.100037f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100eb0a0]
lea edx, [ebp - 0x30]
mov ecx, dword [0x100eb0b8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x100eb0a4]
push 0x100eb0c0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100eb0ac]
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 2
mov dword [ebp - 0x10], 0x28
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
mov esi, eax
test esi, esi
jns 0x10006a8b
mov eax, 0x100a9d88
push esi
push eax
call fcn.100037f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x100eb0c0]
lea edx, [ebp - 0x158]
push edx
push 0x100a9d78
push ecx
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
jns 0x10006aca
mov eax, str.d3d9_shtex_init_shtex:_Failed_to_query_IDXGIResource
push esi
push eax
call fcn.100037f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x158]
push 0x100eb0c8
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jns 0x10006b0f
mov eax, str.d3d9_shtex_init_shtex:_Failed_to_get_shared_handle
push esi
push eax
call fcn.100037f0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100ea980]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x158], ebx
xor edi, edi
movups xmm0, xmmword [eax + 0x48]
mov ecx, dword [eax + 0x58]
psrldq xmm0, 0xc
movd edx, xmm0
test edx, edx
je 0x10006b54
test ecx, ecx
je 0x10006b54
mov eax, dword [0x100eb09c]
mov edi, dword [eax + edx]
add edi, ecx
je 0x10006bb1
mov eax, dword [edi]
mov dword [ebp - 0x158], eax
mov dword [edi], 1
jmp 0x10006bb1
mov edx, dword [0x100eb0cc]
cmp edx, 0xffffffff
jne 0x10006b63
xor esi, esi
jmp 0x10006bb1
mov esi, dword [0x100eb098]
add esi, 0xc
add esi, dword [edx*4 + 0x100a9bb8]
je 0x10006bb1
mov ebx, dword [edx*8 + 0x100a9b28]
lea eax, [ebp - 0x160]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
lea eax, [ebp - 0x15c]
push esi
push eax
call fcn.1007b220
mov eax, dword [0x100eb0cc]
push ebx
push dword [eax*8 + 0x100a9b2c]
push esi
call fcn.1007b220
add esp, 0x18
mov ecx, dword [0x100eb09c]
lea edx, [ebp - 0x164]
push 0x100eb0c8
push edx
push 0
push dword [0x100eb0a8]
mov eax, dword [ecx]
push 1
push 1
push dword [0x100eb0a4]
push dword [0x100eb0a0]
push ecx
call dword [eax + 0x5c]
mov dword [ebp - 0x168], eax
test edi, edi
je 0x10006bf5
mov eax, dword [ebp - 0x158]
mov dword [edi], eax
jmp 0x10006c23
test esi, esi
je 0x10006c23
test ebx, ebx
je 0x10006c23
push ebx
lea eax, [ebp - 0x15c]
push eax
push esi
call fcn.1007b220
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x160]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp - 0x168]
test ebx, ebx
jns 0x10006c4f
mov eax, str.d3d9_shtex_init_copytex:_Failed_to_create_shared_texture
push ebx
push eax
call fcn.100037f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x164]
push 0x100eb0b4
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ebx, eax
mov eax, dword [ebp - 0x164]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
jns 0x10006c96
mov eax, str.d3d9_shtex_init_copytex:_Failed_to_get_surface_level
push ebx
push eax
call fcn.100037f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077d23
mov esp, ebp
pop ebp
ret
push 9
push dword [0x100eb0c8]
push 0
push dword [0x100eb0ac]
push dword [0x100eb0a4]
push dword [0x100eb0a0]
push dword [ebp - 0x16c]
push 0x100eb0c4
call fcn.10002f30
add esp, 0x20
test al, al
je 0x10006afc
push str.d3d9_shared_texture_capture_successful
call fcn.10003740
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.10077d23
mov esp, ebp
pop ebp
ret