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

Disassembly:
push rsi
push rdi
push r13
sub rsp, 0xe0
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov rsi, rdx
mov r13, rcx
test rdx, rdx
jne 0x1004650d3
lea eax, [rdx + 0x57]
jmp 0x10046553e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1004ae178], eax
je 0x1004650eb
mov eax, 0x10dd
jmp 0x10046553e
mov eax, dword [0x1004adf68]
test eax, eax
jne 0x10046553e
test r13, r13
jne 0x100465107
lea eax, [r13 + 6]
jmp 0x10046553e
mov qword [rsp + 0x110], rbx
mov rbx, qword [r13]
test rbx, rbx
jne 0x100465131
mov dword [0x1004adf68], 6
lea eax, [rbx + 6]
mov qword [0x1004ae598], r13
jmp 0x100465536
cmp byte [rbx], 0xff
mov qword [rsp + 0xd8], rbp
mov rbp, rdi
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xc0], r15
mov r15, rdi
jne 0x100465176
cmp byte [rbx + 1], 0x25
jne 0x100465176
movsxd r14, dword [rbx + 2]
lea rdx, [rbx + 6]
add rdx, r14
mov rcx, rbx
call fcn.100464480
test al, al
je 0x100465176
mov rbx, qword [r14 + rbx + 6]
cmp byte [rbx], 0xeb
jne 0x1004651c1
movsx rax, byte [rbx + 1]
add rbx, 2
add rbx, rax
movzx eax, byte [rbx]
cmp al, 0xff
jne 0x1004651b2
cmp byte [rbx + 1], 0x25
jne 0x1004651c1
movsxd r14, dword [rbx + 2]
lea rdx, [rbx + 6]
add rdx, r14
mov rcx, rbx
call fcn.100464480
test al, al
je 0x1004651c1
mov rbx, qword [r14 + rbx + 6]
jmp 0x1004651c1
cmp al, 0xe9
jne 0x1004651c1
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
cmp byte [rsi], 0xff
jne 0x1004651e8
cmp byte [rsi + 1], 0x25
jne 0x1004651e8
movsxd r14, dword [rsi + 2]
lea rdx, [rsi + 6]
add rdx, r14
mov rcx, rsi
call fcn.100464480
test al, al
je 0x1004651e8
mov rsi, qword [r14 + rsi + 6]
cmp byte [rsi], 0xeb
jne 0x100465233
movsx rax, byte [rsi + 1]
add rsi, 2
add rsi, rax
movzx eax, byte [rsi]
cmp al, 0xff
jne 0x100465224
cmp byte [rsi + 1], 0x25
jne 0x100465233
movsxd r14, dword [rsi + 2]
lea rdx, [rsi + 6]
add rdx, r14
mov rcx, rsi
call fcn.100464480
test al, al
je 0x100465233
mov rsi, qword [r14 + rsi + 6]
jmp 0x100465233
cmp al, 0xe9
jne 0x100465233
movsxd rax, dword [rsi + 1]
add rsi, 5
add rsi, rax
mov qword [rsp + 0xd0], r12
cmp rsi, rbx
jne 0x100465251
cmp dword [0x1004aa01c], edi
jne 0x10046550d
jmp 0x1004654c5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1004654bd
mov rcx, rbx
call fcn.100464940
mov rbp, rax
test rax, rax
je 0x1004654c0
xor eax, eax
mov dword [rsp + 0x24], edi
mov qword [rbp + 0x40], rax
mov r8, rbx
mov r12, rbp
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
test r12, r12
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rdi
cmovne rcx, r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rdi
lea rdx, [0x1004b41a0]
mov dword [rsp + 0x20], edi
mov r14, r8
test r8, r8
jne 0x1004652ec
lea ecx, [r8 + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, rdi
jmp 0x10046530b
movzx eax, byte [r8]
mov r9, r8
shl rax, 4
mov r8, rcx
add rax, rdx
lea rcx, [rsp + 0x30]
mov rdx, rax
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rax
mov r10d, dword [rsp + 0x24]
mov r9d, r8d
movsxd rax, dword [rsp + 0x20]
lea rdx, [r10 + rbp]
sub rax, r14
sub r9d, ebx
add rax, r8
add r12, rax
mov eax, r10d
inc r10d
movzx ecx, r12b
sub cl, bpl
mov dword [rsp + 0x24], r10d
shl cl, 3
movzx eax, r9b
and al, 7
or cl, al
mov byte [rdx + 0x40], cl
cmp r10d, 8
jae 0x1004653b2
movzx ecx, byte [r14]
lea eax, [rcx + 0x3e]
cmp al, 0x29
ja 0x100465369
movabs rdx, 0x28040000403
bt rdx, rax
jb 0x1004653b2
cmp cl, 0xf3
jne 0x100465375
cmp byte [r14 + 1], 0xc3
jmp 0x1004653a5
cmp cl, 0xff
jne 0x100465381
cmp byte [r14 + 1], 0x25
jmp 0x1004653a5
sub cl, 0x26
cmp cl, 0x3f
ja 0x1004653a7
movabs rax, 0xc000000001010101
bt rax, rcx
jae 0x1004653a7
cmp byte [r14 + 1], 0xff
jne 0x1004653a7
cmp byte [r14 + 2], 0x25
je 0x1004653b2
cmp r9d, 5
jae 0x1004653e1
jmp 0x100465296
cmp r9d, 5
jae 0x1004653e1
mov rcx, r8
call fcn.100464550
test eax, eax
je 0x1004653d7
cdqe
add r8, rax
mov r9, r8
sub r9d, ebx
cmp r9d, 5
jb 0x1004653b8
jmp 0x1004653e1
cmp r9d, 5
jb 0x1004654ad
cmp r10d, 8
ja 0x1004654ad
lea rax, [rbp + 0x1e]
cmp r12, rax
jbe 0x1004653f5
int3
sub r12b, bpl
mov r8d, r9d
lea rcx, [rbp + 0x20]
mov byte [rax], r12b
mov rdx, rbx
mov byte [rbp + 0x3e], r9b
mov r14d, r9d
call sub.VCRUNTIME140.dll_memcpy
cmp r14, 0x19
jbe 0x100465421
mov edi, 6
jmp 0x1004654c5
movzx r8d, byte [rbp + 0x1e]
lea rax, [r14 + rbx]
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 0x1e]
add r8, rbp
mov qword [rbp + 0x50], rsi
mov eax, ebp
lea rcx, [r8 + 6]
mov word [r8], 0x25ff
sub eax, ecx
lea rcx, [r8 + 6]
add eax, 0x48
mov dword [r8 + 2], eax
call fcn.100464500
lea r9, [rsp + 0x28]
mov dword [rsp + 0x28], edi
mov r8d, 0x40
mov rcx, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100465480
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1004654c5
mov dword [r15 + 8], edi
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x20], rbp
mov qword [r15 + 0x18], rbx
mov eax, dword [rsp + 0x28]
mov dword [r15 + 0x28], eax
mov rax, qword [0x1004ae5b0]
mov qword [r15], rax
xor eax, eax
mov qword [0x1004ae5b0], r15
jmp 0x100465516
cmp dword [0x1004aa01c], 0
mov edi, 9
jne 0x1004654cb
jmp 0x1004654c5
mov r15, rdi
mov edi, 8
mov dword [0x1004adf68], edi
test rbp, rbp
je 0x1004654f4
xor edx, edx
mov rbx, rbp
and rbx, 0xffffffffffff0000
mov rcx, rbp
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x48], rax
mov qword [rbx + 0x10], rbp
test r15, r15
je 0x10046550d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x1004ae598], r13
mov eax, edi
mov r12, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xd8]
mov r15, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.100469360
add rsp, 0xe0
pop r13
pop rdi
pop rsi
ret