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

Disassembly:
push rbp
push r13
push r14
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r13, rcx
test rcx, rcx
je 0x1400045db
xor r14d, r14d
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], r14d
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x1400045db
xor edx, edx
mov qword [rsp + 0x6d8], rdi
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
lea r8d, [r14 + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
mov rdi, rax
mov rcx, r15
test rax, rax
jne 0x140004196
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi - 1]
jmp 0x140004563
mov r9d, 0x1000
mov qword [rsp + 0x6d0], rsi
mov r8d, r9d
mov dword [rsp + 0x20], 0x40
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x38], rax
mov rsi, rax
test rax, rax
jne 0x1400041ed
mov r9d, 0x8000
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rsi - 1]
jmp 0x14000455b
mov qword [rsp + 0x6c8], rbx
lea rcx, str.kernel32
mov qword [rsp + 0x690], r12
mov dword [rsp + 0x50], r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140004237
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x50]
call rbx
cmp dword [rsp + 0x50], r14d
lea rcx, [rbp - 0x80]
mov eax, 0x14
mov dword [rsp + 0x4c], r14d
mov ebx, 0x10
mov r8d, 0x400
cmovne ebx, eax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x380]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
xor r8d, r8d
mov edx, 0x418
mov rcx, r13
mov r12d, r14d
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x64
cmp eax, ecx
cmovl ecx, eax
mov dword [rsp + 0x50], ecx
test ecx, ecx
jle 0x14000450b
lea eax, [rsi + rbx]
mov qword [rsp + 0x40], rax
nop dword [rax + rax]
movsxd rbx, r12d
mov r9, rdi
mov r8, rbx
mov edx, 0x41d
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rsi
mov r8, rbx
mov edx, 0x417
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 0x10
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x380]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x4c]
mov r9d, 4
mov qword [rsp + 0x20], r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rsp + 0x4c]
cmp eax, 0xffffffff
je 0x1400044fd
mov edx, eax
mov qword [rsp + 0x20], r14
mov r9d, 0x400
lea r8, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xorps xmm0, xmm0
mov word [rbp + 0x1b6], r14w
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r14
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], r14
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140004363
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.140005760
mov rsi, qword [rsp + 0x70]
lea r11, [rsp + 0x58]
mov rdi, qword [rsp + 0x58]
cmp rsi, 8
mov rbx, qword [rsp + 0x68]
cmovae r11, rdi
cmp rbx, 0xc
jb 0x140004414
lea r10, [rbx - 0xb]
mov rcx, r11
lea r10, [r11 + r10*2]
nop dword [rax + rax]
mov rax, r10
sub rax, rcx
sar rax, 1
je 0x140004414
nop dword [rax + rax]
cmp word [rcx], 0x51
je 0x1400043d2
add rcx, 2
sub rax, 1
jne 0x1400043c0
jmp 0x140004414
test rcx, rcx
je 0x140004414
lea rax, [0x140009bc0]
mov r9, rcx
mov rdx, rax
sub r9, rax
mov r8d, 0xc
nop dword [rax]
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x140004462
add rdx, 2
sub r8, 1
jne 0x1400043f0
sub rcx, r11
sar rcx, 1
cmp rcx, 0xffffffffffffffff
jne 0x140004592
cmp rsi, 8
lea r10, [rsp + 0x58]
cmovae r10, rdi
cmp rbx, 0xc
jb 0x1400044b8
lea r11, [rbx - 0xb]
mov rax, r10
lea r11, [r10 + r11*2]
nop word [rax + rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
je 0x1400044b8
nop dword [rax + rax]
cmp word [rax], 0x71
je 0x14000446b
add rax, 2
sub rcx, 1
jne 0x140004450
jmp 0x1400044b8
add rcx, 2
jmp 0x1400043b0
test rax, rax
je 0x1400044b8
lea rcx, str.qshelper.exe
mov r9, rax
mov rdx, rcx
sub r9, rcx
mov r8d, 0xc
nop word [rax + rax]
movzx ecx, word [rdx]
cmp word [rdx + r9], cx
jne 0x140004589
add rdx, 2
sub r8, 1
jne 0x140004490
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
jne 0x140004592
cmp rsi, 8
jb 0x1400044f3
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400044eb
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400045d4
mov rcx, rdi
call fcn.1400066b0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
inc r12d
cmp r12d, dword [rsp + 0x50]
jl 0x1400042b0
mov rdx, qword [rsp + 0x30]
mov r9d, 0x8000
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0x38]
mov r9d, 0x8000
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x6c8]
mov eax, r14d
mov r12, qword [rsp + 0x690]
mov rsi, qword [rsp + 0x6d0]
mov rdi, qword [rsp + 0x6d8]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140006690
add rsp, 0x698
pop r15
pop r14
pop r13
pop rbp
ret
add rax, 2
jmp 0x140004440
cmp rsi, 8
jb 0x1400045c9
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400045c1
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400045d4
mov rcx, rdi
call fcn.1400066b0
mov r14d, 1
jmp 0x14000450b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, 0xffffffff
jmp 0x14000456b