Function at 0x1800ba480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x130
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1801bb0c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, qword [0x1801be7d8]
mov ecx, dword [0x1801bdac4]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov r15, qword [rax + rcx*8]
add r15, rdx
mov eax, dword [r15]
cmp dword [0x1801be810], eax
jle 0x1800ba50a
lea rcx, [0x1801be810]
call fcn.1800fc220
cmp dword [0x1801be810], 0xffffffff
jne 0x1800ba50a
mov qword [0x1801be818], rbx
lea rcx, [0x1801be810]
call fcn.1800fc1b4
mov rdi, qword [0x1801be818]
call fcn.1800bc5b0
mov rbx, rax
test rax, rax
je 0x1800bac95
lea rdx, str.ReShadeRegisterAddon
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800bac95
mov edx, 0xd
mov rcx, rdi
call rax
test al, al
je 0x1800bac95
lea rdx, str.ReShadeGetImGuiFunctionTable
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800bac95
mov ecx, 0x4a60
call rax
mov qword [0x1801be860], rax
test rax, rax
je 0x1800bac95
call fcn.1800c9c30
lea rax, [0x1800c90e0]
mov qword [rsp + 0x20], rax
mov rdx, qword [0x1801bc5f0]
cmp rdx, qword [0x1801bc5f8]
je 0x1800ba5ab
mov qword [rdx], rax
add qword [0x1801bc5f0], 8
jmp 0x1800ba5b5
lea r8, [rsp + 0x20]
call fcn.1800bb970
movsxd rax, dword [0x1801bbd18]
mov dword [0x1801bc0e8], eax
mov rdx, rax
shl rdx, 5
add rdx, qword [0x1801cafb8]
lea rcx, str.Low__Vanilla_
cmp rcx, rdx
je 0x1800ba5ef
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1800ba5ea
mov rdx, qword [rdx]
call fcn.1800c7200
call fcn.1800bc5b0
lea rcx, str.C7_05_________________3A_C1
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0x1b
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movdqa xmm6, xmmword [0x1801a8f30]
movdqa xmmword [rbp - 0x60], xmm6
mov byte [rbp - 0x70], 0
movups xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x40], xmm6
mov byte [rbp - 0x50], 0
xor r14d, r14d
mov qword [rbp - 0x28], r14
movdqa xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x10], r14b
mov qword [rbp - 8], rax
mov qword [rbp], r14
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x70]
call fcn.1800f0660
nop
mov edx, 0xffffffff
lea rcx, [rbp - 0x70]
call fcn.1800f0840
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
sub rax, rcx
test rax, 0xfffffffffffffff8
je 0x1800ba6de
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.1800f0840
mov rax, qword [rbp - 0x28]
mov rbx, qword [rax]
lea r9, [rsp + 0x20]
mov edx, 6
mov r8d, 0x40
lea rcx, [rbx - 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movabs rax, 0x9090909090909090
mov dword [rbx - 0x28], eax
mov word [rbx - 0x24], ax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov edx, 6
lea rcx, [rbx - 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1800ba72c
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ba713
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800bad0b
call fcn.1800fbcc0
mov qword [rbp - 0x28], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm6, xmmword [0x1801a8f30]
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1800ba76f
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ba762
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800bad0b
call fcn.1800fbcc0
movdqa xmm6, xmmword [0x1801a8f30]
movdqa xmmword [rbp - 0x40], xmm6
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1800ba7b3
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ba7ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800bad0b
call fcn.1800fbcc0
lea rax, str.33_C0_48_39_05_________74_2E_48_8B_0D_________48_85_C9_74_22
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x3c
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, 5
lea rcx, [rsp + 0x20]
call fcn.1800b4320
movsxd rcx, dword [rax]
add rax, 4
add rax, rcx
mov qword [0x1801ca340], rax
lea rax, str.0F_29_62_20_8B_81_____00_00
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1b
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, 0xffffffffffffffce
lea rcx, [rsp + 0x20]
call fcn.1800b4320
movsxd rcx, dword [rax]
add rax, 4
add rax, rcx
mov qword [0x1801ca250], rax
lea rax, str.4C_8D_05_________45_33_C9_BA_CE_00_00_00
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x28
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, 3
lea rcx, [rsp + 0x20]
call fcn.1800b4320
movsxd rcx, dword [rax]
add rax, 4
add rcx, rax
lea r8, [0x1801ca258]
lea rdx, [0x1800b5c10]
call fcn.1800f86b0
lea rax, str.84_C3_74_0D_83_C9_FF_E8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x17
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, 0xffffffffffffffec
lea rcx, [rsp + 0x20]
call fcn.1800b4320
mov rcx, rax
xor r8d, r8d
lea rdx, [fcn.1800ba470]
call fcn.1800f86b0
lea rax, str.48_8B_1F_33_D2_48_8B_CB
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x17
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, 0xffffffffffffff7d
lea rcx, [rsp + 0x20]
call fcn.1800b4320
mov rcx, rax
lea r8, [0x1801cae88]
lea rdx, [0x1800ba3f0]
call fcn.1800f86b0
lea rax, str.83_FB_0A_0F_85_________8B
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x19
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, 0xffffffffffffffef
lea rcx, [rsp + 0x20]
call fcn.1800b4320
mov r12, rax
movsxd rcx, dword [rax + 1]
lea rdx, [rax + 5]
add rdx, rcx
mov qword [0x1801cae90], rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
mov rcx, qword [0x1801c51f0]
test rcx, rcx
jne 0x1800baa04
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rsp + 0x38]
cmp rbx, 0x40000000
jbe 0x1800ba993
lea rax, [rbx - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
cmp rbx, rsi
jb 0x1800ba9f8
mov rcx, qword [0x1801c51f0]
nop
mov edi, dword [rsp + 0x58]
xor edx, edx
mov rax, rbx
div rdi
sub rbx, rdx
sub rbx, rdi
cmp rbx, rsi
jb 0x1800ba9ff
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ba9f8
cmp dword [rbp - 0x80], 0x10000
je 0x1800bacc7
mov rbx, qword [rsp + 0x68]
cmp rbx, rdi
jb 0x1800ba9f8
sub rbx, rdi
cmp rbx, rsi
jae 0x1800ba9c0
mov rcx, qword [0x1801c51f0]
test rcx, rcx
je 0x1800baa36
mov r14, rcx
mov word [rcx], 0xb848
lea rax, [0x1800ba430]
mov qword [rcx + 2], rax
mov word [rcx + 0xa], 0xe0ff
movabs rax, 0xcccccccccccccccc
mov qword [rcx + 0xc], rax
lea rax, [rcx + 0x14]
mov qword [0x1801c51f0], rax
mov byte [r12], 0xe8
sub r14d, r12d
sub r14d, 5
mov dword [r12 + 1], r14d
mov eax, dword [r15]
cmp dword [0x1801be800], eax
jle 0x1800baa8f
lea rcx, [0x1801be800]
call fcn.1800fc220
cmp dword [0x1801be800], 0xffffffff
jne 0x1800baa8f
call fcn.1800bc5b0
mov rcx, rax
lea rdx, str.ReShadeRegisterOverlay
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801be808], rax
lea rcx, [0x1801be800]
call fcn.1800fc1b4
mov rax, qword [0x1801be808]
test rax, rax
je 0x1800baaab
lea rdx, [0x1800c8020]
lea rcx, [0x18019c544]
call rax
mov eax, dword [r15]
cmp dword [0x1801cae98], eax
jle 0x1800baaf3
lea rcx, [0x1801cae98]
call fcn.1800fc220
cmp dword [0x1801cae98], 0xffffffff
jne 0x1800baaf3
call fcn.1800bc5b0
mov rcx, rax
lea rdx, str.ReShadeRegisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801caea0], rax
lea rcx, [0x1801cae98]
call fcn.1800fc1b4
mov rax, qword [0x1801caea0]
test rax, rax
je 0x1800bab0d
lea rdx, [0x1800b5630]
mov ecx, 0x4c
call rax
mov eax, dword [r15]
cmp dword [0x1801caea8], eax
jle 0x1800bab55
lea rcx, [0x1801caea8]
call fcn.1800fc220
cmp dword [0x1801caea8], 0xffffffff
jne 0x1800bab55
call fcn.1800bc5b0
mov rcx, rax
lea rdx, str.ReShadeRegisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801caeb0], rax
lea rcx, [0x1801caea8]
call fcn.1800fc1b4
mov rax, qword [0x1801caeb0]
test rax, rax
je 0x1800bab6f
lea rdx, [0x1800b5bd0]
mov ecx, 0x4b
call rax
mov eax, dword [r15]
cmp dword [0x1801caeb8], eax
jle 0x1800babb7
lea rcx, [0x1801caeb8]
call fcn.1800fc220
cmp dword [0x1801caeb8], 0xffffffff
jne 0x1800babb7
call fcn.1800bc5b0
mov rcx, rax
lea rdx, str.ReShadeRegisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801caec0], rax
lea rcx, [0x1801caeb8]
call fcn.1800fc1b4
mov rax, qword [0x1801caec0]
test rax, rax
je 0x1800babd1
lea rdx, [0x1800b5b80]
mov ecx, 0x4e
call rax
mov eax, dword [r15]
cmp dword [0x1801caec8], eax
jle 0x1800bac19
lea rcx, [0x1801caec8]
call fcn.1800fc220
cmp dword [0x1801caec8], 0xffffffff
jne 0x1800bac19
call fcn.1800bc5b0
mov rcx, rax
lea rdx, str.ReShadeRegisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801caed0], rax
lea rcx, [0x1801caec8]
call fcn.1800fc1b4
mov rax, qword [0x1801caed0]
test rax, rax
je 0x1800bac33
lea rdx, [0x1800bcb50]
mov ecx, 0x1b
call rax
mov eax, dword [r15]
cmp dword [0x1801caed8], eax
jle 0x1800bac7b
lea rcx, [0x1801caed8]
call fcn.1800fc220
cmp dword [0x1801caed8], 0xffffffff
jne 0x1800bac7b
call fcn.1800bc5b0
mov rcx, rax
lea rdx, str.ReShadeRegisterEvent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801caee0], rax
lea rcx, [0x1801caed8]
call fcn.1800fc1b4
mov rax, qword [0x1801caee0]
test rax, rax
je 0x1800bac95
lea rdx, [0x1800bcaf0]
mov ecx, 0x1a
call rax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1800fbca0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test rbx, rbx
je 0x1800ba9f8
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
mov qword [0x1801c51f0], rax
test rax, rax
jne 0x1800ba9ff
cmp rbx, rsi
jae 0x1800ba9a0
jmp 0x1800ba9ff
call fcn.1801021a4
int3