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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10033010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.d3d11.dll
mov dword [ebp - 0x48], eax
mov byte [0x10033df8], 1
call fcn.10004120
mov esi, eax
add esp, 4
test esi, esi
jne 0x100051a3
push str.d3d9_init:_Failed_to_load_D3D11
call fcn.10001f10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
push str.dxgi.dll
call fcn.10004120
add esp, 4
test eax, eax
jne 0x100051d4
push str.d3d9_init:_Failed_to_load_DXGI
call fcn.10001f10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
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 0x10005208
push str.d3d9_init:_Failed_to_get_CreateDXGIFactory1_address
call fcn.10001f10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
push str.D3D11CreateDevice
push esi
call edi
mov edi, eax
test edi, edi
jne 0x10005236
push str.d3d9_init:_Failed_to_get_D3D11CreateDevice_address
call fcn.10001f10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
push eax
push 0x100269c0
call ebx
test eax, eax
jns 0x10005266
push eax
push str.d3d9_init:_Failed_to_create_factory_object
call fcn.10001fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
push edx
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x38]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x100052a5
push esi
push str.d3d9_init:_Failed_to_get_adapter
call fcn.10001fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
push 0x10033e04
lea eax, [ebp - 0x44]
push eax
push 0x10033e00
push 7
push 3
push 0x10026938
push 0
push 0
push 0
push dword [ebp - 0x34]
call edi
mov ecx, dword [ebp - 0x34]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x100052f7
push esi
push str.d3d9_init:_Failed_to_create_D3D11_device
call fcn.10001fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10033de8]
lea edx, [ebp - 0x30]
mov ecx, dword [0x10033e00]
mov dword [ebp - 0x30], eax
mov eax, dword [0x10033dec]
push 0x10033e08
mov dword [ebp - 0x2c], eax
mov eax, dword [0x10033df4]
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 0x10005386
mov eax, 0x10026b18
push esi
push eax
call fcn.10001fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10033e08]
lea edx, [ebp - 0x34]
push edx
push 0x10026b08
push ecx
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
jns 0x100053c2
mov eax, str.d3d9_shtex_init_shtex:_Failed_to_query_IDXGIResource
push esi
push eax
call fcn.10001fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
push 0x10033e10
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jns 0x10005401
mov eax, str.d3d9_shtex_init_shtex:_Failed_to_get_shared_handle
push esi
push eax
call fcn.10001fc0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10033918]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x34], ebx
xor edi, edi
movups xmm0, xmmword [eax + 0x48]
mov ecx, dword [eax + 0x58]
psrldq xmm0, 0xc
movd edx, xmm0
test edx, edx
je 0x10005440
test ecx, ecx
je 0x10005440
mov eax, dword [0x10033de4]
mov edi, dword [edx + eax]
add edi, ecx
je 0x10005497
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
mov dword [edi], 1
jmp 0x10005497
mov edx, dword [0x10033e14]
cmp edx, 0xffffffff
jne 0x1000544f
xor esi, esi
jmp 0x10005497
mov esi, dword [0x10033de0]
add esi, 0xc
add esi, dword [edx*4 + 0x10026948]
je 0x10005497
mov ebx, dword [edx*8 + 0x100268b8]
lea eax, [ebp - 0x3c]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.100101e0
mov eax, dword [0x10033e14]
push ebx
push dword [eax*8 + 0x100268bc]
push esi
call fcn.100101e0
add esp, 0x18
mov ecx, dword [0x10033de4]
lea edx, [ebp - 0x40]
push 0x10033e10
push edx
push 0
push dword [0x10033df0]
mov eax, dword [ecx]
push 1
push 1
push dword [0x10033dec]
push dword [0x10033de8]
push ecx
call dword [eax + 0x5c]
mov dword [ebp - 0x44], eax
test edi, edi
je 0x100054d2
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
jmp 0x100054f7
test esi, esi
je 0x100054f7
test ebx, ebx
je 0x100054f7
push ebx
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.100101e0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp - 0x44]
test ebx, ebx
jns 0x10005520
mov eax, str.d3d9_shtex_init_copytex:_Failed_to_create_shared_texture
push ebx
push eax
call fcn.10001fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40]
push 0x10033dfc
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ebx, eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
jns 0x10005561
mov eax, str.d3d9_shtex_init_copytex:_Failed_to_get_surface_level
push ebx
push eax
call fcn.10001fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f329
mov esp, ebp
pop ebp
ret
push dword [0x10033e10]
push 0
push dword [0x10033df4]
push dword [0x10033dec]
push dword [0x10033de8]
push dword [ebp - 0x48]
push 0x10033e0c
call fcn.100017a0
add esp, 0x1c
test al, al
je 0x100053ee
push str.d3d9_shared_texture_capture_successful
call fcn.10001f10
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.1000f329
mov esp, ebp
pop ebp
ret