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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067fb1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x10089374], 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jne 0x100226e7
push 0x15
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push str.IDXGISwapChainPresent
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.10003f80
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0x40
push 4
push dword [ebx]
mov dword [ebp - 0x14], 0
call esi
test eax, eax
jne 0x100225e2
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x10022bd2
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100225c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c11
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push 0x28
mov esi, dword [eax + 0x20]
call fcn.10041665
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10003d70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x10021dc0
mov byte [edi + 0x24], 0
cmp edx, 0x10
jb 0x10022655
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002264b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c11
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, dword [0x10089374]
mov dword [0x10089374], edi
test eax, eax
je 0x1002266a
push eax
call fcn.10023b60
cmp byte [edi + 0x24], 0
jne 0x100226da
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.100403a0
test eax, eax
jne 0x100226a0
mov ecx, dword [edi + 0x1c]
call fcn.10040810
test eax, eax
jne 0x10022692
mov byte [edi + 0x24], 1
jmp 0x100226a0
mov ecx, dword [edi + 0x1c]
call fcn.10040660
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x100226da
mov eax, dword [0x10089374]
mov dword [0x10089374], 0
test eax, eax
je 0x10022bd2
push eax
call fcn.10023b60
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x10089330], eax
cmp dword [0x10089378], 0
jne 0x10022888
push 0x1b
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push str.IDXGISwapChainResizeBuffers
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.10003f80
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 0x40
push 4
push dword [ebx]
mov dword [ebp - 0x14], 0
call esi
test eax, eax
jne 0x10022789
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x10022bd2
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022768
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c16
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push 0x28
mov esi, dword [eax + 0x34]
call fcn.10041665
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10003d70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x10022180
mov byte [edi + 0x24], 0
cmp edx, 0x10
jb 0x100227fc
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100227f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c16
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, dword [0x10089378]
mov dword [0x10089378], edi
test eax, eax
je 0x10022811
push eax
call fcn.10023b60
cmp byte [edi + 0x24], 0
jne 0x10022881
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.100403a0
test eax, eax
jne 0x10022847
mov ecx, dword [edi + 0x1c]
call fcn.10040810
test eax, eax
jne 0x10022839
mov byte [edi + 0x24], 1
jmp 0x10022847
mov ecx, dword [edi + 0x1c]
call fcn.10040660
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x10022881
mov eax, dword [0x10089378]
mov dword [0x10089378], 0
test eax, eax
je 0x10022bd2
push eax
call fcn.10023b60
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov dword [0x10089328], eax
cmp dword [0x1008937c], 0
jne 0x10022a2d
push 0x1a
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push str.IDXGISwapChainResizeTarget
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.10003f80
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push eax
push 0x40
push 4
push dword [ebx]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002292e
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x10022bd2
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002290d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c1b
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push 0x28
mov esi, dword [eax + 0x38]
call fcn.10041665
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10003d70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x10022310
mov byte [edi + 0x24], 0
cmp edx, 0x10
jb 0x100229a1
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022997
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c1b
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, dword [0x1008937c]
mov dword [0x1008937c], edi
test eax, eax
je 0x100229b6
push eax
call fcn.10023b60
cmp byte [edi + 0x24], 0
jne 0x10022a26
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.100403a0
test eax, eax
jne 0x100229ec
mov ecx, dword [edi + 0x1c]
call fcn.10040810
test eax, eax
jne 0x100229de
mov byte [edi + 0x24], 1
jmp 0x100229ec
mov ecx, dword [edi + 0x1c]
call fcn.10040660
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x10022a26
mov eax, dword [0x1008937c]
mov dword [0x1008937c], 0
test eax, eax
je 0x10022bd2
push eax
call fcn.10023b60
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov dword [0x10089334], eax
cmp dword [0x10089380], 0
jne 0x10022bfd
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
push 0x1007b170
push ebx
mov dword [ebp - 0x10], 0
call dword [eax]
test eax, eax
js 0x10022bfd
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
push 0x16
mov dword [ebp - 0x30], 0
push str.IDXGISwapChain1Present
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.10003f80
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 6
push eax
push 0x40
push 4
push dword [esi]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10022ae8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x10022bc5
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022ad9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c20
push edx
push ecx
call fcn.10041ac4
add esp, 8
jmp 0x10022bc5
mov eax, dword [esi]
push 0x28
mov esi, dword [eax + 0x58]
call fcn.10041665
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
lea ecx, [edi + 4]
mov dword [edi], 0
push eax
call fcn.10003d70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0x10021fa0
mov byte [edi + 0x24], 0
cmp edx, 0x10
jb 0x10022b5b
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022b51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022c20
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, dword [0x10089380]
mov dword [0x10089380], edi
test eax, eax
je 0x10022b70
push eax
call fcn.10023b60
cmp byte [edi + 0x24], 0
jne 0x10022be9
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edi
call fcn.100403a0
test eax, eax
jne 0x10022ba6
mov ecx, dword [edi + 0x1c]
call fcn.10040810
test eax, eax
jne 0x10022b98
mov byte [edi + 0x24], 1
jmp 0x10022ba6
mov ecx, dword [edi + 0x1c]
call fcn.10040660
mov dword [edi], 0
cmp byte [edi + 0x24], 0
jne 0x10022be9
mov eax, dword [0x10089380]
mov dword [0x10089380], 0
test eax, eax
je 0x10022bc5
push eax
call fcn.10023b60
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10022bd2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi]
mov dword [0x1008932c], eax
test ecx, ecx
je 0x10022bfd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1004a021
call fcn.1004a021
call fcn.1004a021
call fcn.1004a021
int3