Function at 0x180005270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x320
mov rax, qword [0x180085040]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov qword [r11 - 0x1e0], r14
mov qword [r11 - 0x1b0], r14
mov qword [r11 - 0x1c0], r14
mov qword [r11 - 0x98], 0x57
mov dword [r11 - 0x8c], r14d
mov dword [r11 - 0x80], r14d
mov qword [r11 - 0x78], 1
mov dword [rsp + 0x2c0], 0x20
mov dword [r11 - 0x7c], 3
mov dword [rsp + 0x2c4], 2
mov dword [rsp + 0x2b8], 1
mov dword [rsp + 0x2a8], 1
mov dword [rsp + 0x2ac], 1
lea rcx, str.d3d12.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180005a5e
lea rdx, str.D3D12CreateDevice
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180005a5e
mov qword [rsp + 0x170], r14
lea r8, [rsp + 0x170]
mov rdx, rax
lea ecx, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x180005394
mov r8, rbx
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x1f0]
call fcn.18004cf40
movzx eax, byte [rsp + 0x208]
jmp 0x18000539d
xor al, al
mov byte [rsp + 0x208], al
test al, al
je 0x18000560b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x278], xmm0
mov qword [rsp + 0x288], rax
mov rdx, qword [rsp + 0x1f8]
sub rdx, qword [rsp + 0x1f0]
lea rcx, [rsp + 0x278]
call fcn.180006dc0
nop
mov r8, qword [rsp + 0x1f8]
sub r8, qword [rsp + 0x1f0]
mov rdx, rbx
mov rcx, qword [rsp + 0x278]
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movups xmmword [rsp + 0x210], xmm0
movups xmmword [rsp + 0x220], xmm0
mov rdx, qword [rsp + 0x1f8]
sub rdx, qword [rsp + 0x1f0]
lea r13, vtable.ProtectionOverride.0
mov qword [rsp + 0x210], r13
mov qword [rsp + 0x218], rbx
mov qword [rsp + 0x220], rdx
lea r9, [rsp + 0x228]
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180005f6b
mov r8, qword [rsp + 0x1f8]
mov rdx, qword [rsp + 0x1f0]
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x188]
lea r8, [0x18006fcb8]
mov edx, 0xb000
xor ecx, ecx
call rbx
mov r8, qword [rsp + 0x280]
mov rdx, qword [rsp + 0x278]
mov rcx, rbx
sub r8, rdx
test eax, eax
jns 0x18000558f
call sub.VCRUNTIME140.dll_memcpy
nop
mov qword [rsp + 0x210], r13
lea r9, [rsp + 0x228]
mov r8d, dword [rsp + 0x228]
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rcx, qword [rsp + 0x278]
test rcx, rcx
je 0x180005535
mov rdx, qword [rsp + 0x288]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000551c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800055fd
call fcn.18004fbe4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x278], xmm0
mov qword [rsp + 0x288], r14
cmp byte [rsp + 0x208], 0
je 0x180005a5e
mov rcx, qword [rsp + 0x1f0]
test rcx, rcx
je 0x180005a5e
mov rdx, qword [rsp + 0x200]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005a59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005a59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call sub.VCRUNTIME140.dll_memcpy
nop
mov qword [rsp + 0x210], r13
lea r9, [rsp + 0x228]
mov r8d, dword [rsp + 0x228]
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rcx, qword [rsp + 0x278]
test rcx, rcx
je 0x180005632
mov rdx, qword [rsp + 0x288]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005604
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005604
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004fbe4
jmp 0x180005632
lea r9, [rsp + 0x188]
lea r8, [0x18006fcb8]
mov edx, 0xb000
xor ecx, ecx
call rbx
test eax, eax
js 0x180005a12
lea r13, vtable.ProtectionOverride.0
lea rcx, str.dxgi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180005a12
lea rdx, str.CreateDXGIFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005a12
mov qword [rsp + 0x180], r14
lea rdx, [rsp + 0x180]
lea rcx, [0x18006fce8]
call rax
test eax, eax
js 0x180005a12
mov qword [rsp + 0x2d8], r14
mov qword [rsp + 0x2e0], r14
mov qword [rsp + 0x160], r14
mov rcx, qword [rsp + 0x188]
mov rax, qword [rcx]
lea r9, [rsp + 0x160]
lea r8, [0x18006fcf8]
lea rdx, [rsp + 0x2d8]
call qword [rax + 0x40]
test eax, eax
js 0x180005a12
mov qword [rsp + 0x190], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x1a0], xmm0
movups xmmword [rsp + 0x1b0], xmm0
movups xmmword [rsp + 0x1c0], xmm0
movups xmmword [rsp + 0x1d0], xmm0
movups xmmword [rsp + 0x1e0], xmm0
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x2e8], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x2f0], rax
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x2f8], rax
xor eax, eax
movups xmmword [rsp + 0x260], xmm0
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x218], rax
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x220], rax
lea rax, [rsp + 0x168]
mov qword [rsp + 0x228], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_bool___cdecl_D3D12Hook::Hook_void____ptr64::_2::_lambda_2___bool___.0
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x210]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rsp + 0x220]
movups xmmword [rsp + 0x58], xmm1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x218], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x220], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x228], rax
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x230], rax
lea rax, [rsp + 0x168]
mov qword [rsp + 0x238], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_bool___cdecl_D3D12Hook::Hook_void____ptr64::_2::_lambda_3___bool___.0
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rsp + 0x210]
movups xmmword [rsp + 0x88], xmm0
movups xmm1, xmmword [rsp + 0x220]
movups xmmword [rsp + 0x98], xmm1
movups xmm0, xmmword [rsp + 0x230]
movups xmmword [rsp + 0xa8], xmm0
lea rax, [rsp + 0x80]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x218], rax
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x220], rax
lea rax, [rsp + 0x168]
mov qword [rsp + 0x228], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_bool___cdecl_D3D12Hook::Hook_void____ptr64::_2::_lambda_4___bool___.0
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0x210]
movups xmmword [rsp + 0xc8], xmm0
movups xmm1, xmmword [rsp + 0x220]
movups xmmword [rsp + 0xd8], xmm1
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x178], rax
movaps xmm0, xmmword [rsp + 0x170]
movdqa xmmword [rsp + 0x170], xmm0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x260]
call fcn.180006c10
nop
lea r9, [0x180005010]
mov edx, 0x40
lea r8d, [rdx - 0x3d]
lea rcx, [rsp + 0x40]
call fcn.18004fd38
mov byte [rsp + 0x20], 0
mov ebx, r14d
mov dword [rsp + 0x170], ebx
mov rax, qword [rsp + 0x268]
mov rdx, qword [rsp + 0x260]
sub rax, rdx
sar rax, 6
movsxd rcx, ebx
cmp rcx, rax
jae 0x1800059a9
shl rcx, 6
mov rcx, qword [rcx + rdx + 0x38]
test rcx, rcx
jne 0x18000597a
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x18000598b
mov byte [rsp + 0x20], 1
jmp 0x1800059e0
inc ebx
jmp 0x180005940
cmp byte [rsp + 0x20], 0
jne 0x1800059e0
mov rcx, qword [rsp + 0x190]
test rcx, rcx
je 0x1800059c3
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x180005a04
mov rdx, qword [rsp + 0x1b8]
call qword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x180005a04
mov rcx, qword [rsp + 0x168]
mov rax, qword [rcx]
lea r8, [rsp + 0x198]
lea rdx, [0x18006fc70]
call qword [rax]
test eax, eax
jns 0x180005a8d
lea rcx, [rsp + 0x260]
call fcn.180006e80
nop
cmp byte [rsp + 0x208], 0
je 0x180005a5e
mov rcx, qword [rsp + 0x1f0]
test rcx, rcx
je 0x180005a5e
mov rdx, qword [rsp + 0x200]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x180005a59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005f57
call fcn.18004fbe4
xor al, al
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.18004fb80
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ebx, r14d
mov rdi, r14
mov r15, qword [rsp + 0x168]
add r15, rdi
mov r8d, 0x30
lea rdx, [rsp + 0x210]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180005aed
mov eax, dword [rsp + 0x234]
test eax, 0x101
jne 0x180005aed
test al, 0xee
je 0x180005aed
mov rax, qword [r15]
cmp rax, qword [rsp + 0x160]
je 0x180005aea
add ebx, 8
add rdi, 8
cmp ebx, 0x1000
jb 0x180005a93
jmp 0x180005aed
mov dword [rsi + 0x40], ebx
cmp dword [rsi + 0x40], 0
jne 0x180005bfe
mov r15d, r14d
mov r12, r14
nop dword [rax]
mov rbx, qword [rsp + 0x168]
add rbx, r12
mov r8d, 0x30
lea rdx, [rsp + 0x210]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180005bf4
mov eax, dword [rsp + 0x234]
test eax, 0x101
jne 0x180005bf4
test al, 0xee
je 0x180005bf4
mov rbx, qword [rbx]
test rbx, rbx
je 0x180005bdf
mov r8d, 0x30
lea rdx, [rsp + 0x210]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180005bdf
mov eax, dword [rsp + 0x234]
test eax, 0x101
jne 0x180005bdf
test al, 0xee
je 0x180005bdf
mov edi, r14d
mov r8d, 0x30
lea rdx, [rsp + 0x210]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180005bd9
mov eax, dword [rsp + 0x234]
test eax, 0x101
jne 0x180005bd9
test al, 0xee
je 0x180005bd9
mov rax, qword [rbx]
cmp rax, qword [rsp + 0x160]
je 0x180005bce
add edi, 8
add rbx, 8
cmp edi, 0x1000
jb 0x180005b82
jmp 0x180005bd9
mov dword [rsi + 0x40], edi
mov dword [rsi + 0x44], r15d
mov byte [rsi + 0x4c], 1
cmp byte [rsi + 0x4c], 0
jne 0x180005bf4
add r15d, 8
add r12, 8
cmp r15d, 0x1000
jb 0x180005b00
cmp dword [rsi + 0x40], 0
je 0x180005a04
xorps xmm0, xmm0
movups xmmword [rsp + 0x240], xmm0
movups xmmword [rsp + 0x250], xmm0
lea rcx, [rsp + 0x240]
call fcn.18004da70
nop
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], r14
test rcx, rcx
je 0x180005c36
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rsi + 0x58]
mov qword [rsi + 0x58], r14
test rcx, rcx
je 0x180005c4d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov byte [rsi + 0x49], 1
mov rax, qword [rsp + 0x198]
mov rbx, qword [rax]
add rbx, 0x40
mov ecx, 0x20
call fcn.18004fba0
mov rdi, rax
mov qword [rsp + 0x170], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
lea rax, vtable.PointerHook.0
mov qword [rdi], rax
test rbx, rbx
je 0x180005f94
mov r8d, 0x30
lea rdx, [rsp + 0x278]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180005fe4
mov eax, dword [rsp + 0x29c]
test eax, 0x101
jne 0x180005fe4
test al, 0xee
je 0x180005fe4
mov qword [rsp + 0x228], r14
mov qword [rsp + 0x210], r13
mov qword [rsp + 0x218], rbx
mov qword [rsp + 0x220], 8
lea r9, [rsp + 0x228]
mov edx, 8
lea r8d, [rdx + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180005fbc
mov qword [rdi + 8], rbx
lea rcx, [0x180006100]
mov qword [rdi + 0x18], rcx
mov rax, qword [rbx]
mov qword [rdi + 0x10], rax
mov qword [rbx], rcx
mov qword [rsp + 0x210], r13
lea r9, [rsp + 0x228]
mov r8d, dword [rsp + 0x228]
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], rdi
test rcx, rcx
je 0x180005d71
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
lea r15, [rsi + 0x48]
mov byte [r15], 1
jmp 0x180005d87
mov rsi, qword [rsp + 0x250]
mov rbx, qword [rsp + 0x248]
cmp rbx, rsi
je 0x180005dee
nop dword [rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180005dc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
cmp rbx, rsi
jne 0x180005da0
mov rsi, qword [rsp + 0x250]
mov rbx, qword [rsp + 0x248]
cmp rbx, rsi
je 0x180005dee
mov qword [rsp + 0x250], rbx
mov rcx, qword [rsp + 0x188]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x160]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x180]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x168]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x198]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x190]
test rcx, rcx
je 0x180005e47
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x180005e62
mov rdx, qword [rsp + 0x1b8]
call qword [sym.imp.USER32.dll_UnregisterClassW]
movzx ebx, byte [r15]
lea rax, vtable.utility::ThreadSuspender.0
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x250]
cmp qword [rsp + 0x248], rax
je 0x180005e94
lea rcx, [rsp + 0x240]
call fcn.18004dcd0
lea rcx, [0x180086c10]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [rsp + 0x248]
test rcx, rcx
je 0x180005f06
mov rax, qword [rsp + 0x258]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005eed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005eed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004fbe4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x248], xmm0
mov qword [rsp + 0x258], r14
lea rcx, [rsp + 0x260]
call fcn.180006e80
nop
cmp byte [rsp + 0x208], 0
je 0x180005f63
mov rcx, qword [rsp + 0x1f0]
test rcx, rcx
je 0x180005f63
mov rdx, qword [rsp + 0x200]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005f5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005f5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004fbe4
movzx eax, bl
jmp 0x180005a60
lea rdx, str.VirtualProtect_failed
lea rcx, [rsp + 0x100]
call fcn.180007d50
lea rdx, [0x1800821e8]
lea rcx, [rsp + 0x100]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.pOld_cannot_be_nullptr
lea rcx, [rsp + 0x118]
call fcn.18004d620
lea rdx, [0x180082270]
lea rcx, [rsp + 0x118]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.VirtualProtect_failed
lea rcx, [rsp + 0x130]
call fcn.180007d50
lea rdx, [0x1800821e8]
lea rcx, [rsp + 0x130]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.pOld_is_not_readable
lea rcx, [rsp + 0x148]
call fcn.18004d620
lea rdx, [0x180082270]
lea rcx, [rsp + 0x148]
call sub.VCRUNTIME140.dll__CxxThrowException
int3