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

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0xe0
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor esi, esi
mov rdi, rdx
mov r12, rcx
test rdx, rdx
jne 0x180002183
lea eax, [rdx + 0x57]
jmp 0x180002519
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006c35c], eax
je 0x18000219b
mov eax, 0x10dd
jmp 0x180002519
mov eax, dword [0x18006c358]
test eax, eax
jne 0x180002519
test r12, r12
je 0x1800021c8
mov rcx, qword [r12]
test rcx, rcx
jne 0x1800021d2
mov dword [0x18006c358], 6
mov qword [0x18006c368], r12
mov eax, 6
jmp 0x180002519
mov qword [rsp + 0x110], rbx
mov rbx, rsi
mov qword [rsp + 0xd8], rbp
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0xc8], r14
mov r14, rsi
mov qword [rsp + 0xc0], r15
call fcn.180001980
mov rcx, rdi
mov rbp, rax
call fcn.180001980
mov qword [rsp + 0x20], rax
cmp rax, rbp
jne 0x18000222b
cmp dword [0x18006c148], ebx
jne 0x1800024e8
jmp 0x18000249b
mov ecx, 0x30
call fcn.1800551f4
mov rcx, rbp
mov r14, rax
call fcn.1800017b0
mov rbx, rax
test rax, rax
jne 0x180002250
lea esi, [rax + 8]
jmp 0x18000249b
xor eax, eax
mov r8, rbp
mov qword [rbx + 0x40], rax
mov r15, rbx
mov r13d, esi
xorps xmm0, xmm0
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x68]
test r15, r15
movups xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x28]
cmovne rcx, r15
mov qword [rsp + 0x58], rax
lea r9, [0x180074350]
mov rdi, r8
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x68], rsi
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
test r8, r8
jne 0x1800022da
lea ecx, [r8 + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, rsi
jmp 0x1800022f9
movzx edx, byte [r8]
shl rdx, 4
add rdx, r9
mov r9, r8
mov r8, rcx
lea rcx, [rsp + 0x30]
mov rax, qword [rdx + 8]
call rax
mov r8, rax
movsxd rax, dword [rsp + 0x28]
mov r9d, r8d
sub rax, rdi
mov edx, r13d
add rax, r8
sub r9d, ebp
add r15, rax
inc r13d
movzx r10d, r15b
movzx eax, r9b
sub r10b, bl
and al, 7
movzx ecx, r10b
shl cl, 3
or cl, al
mov byte [rdx + rbx + 0x40], cl
cmp r13d, 8
jae 0x180002392
movzx ecx, byte [rdi]
lea eax, [rcx + 0x3e]
cmp al, 0x29
ja 0x18000234d
movabs rdx, 0x28040000403
bt rdx, rax
jb 0x180002392
cmp cl, 0xf3
jne 0x180002358
cmp byte [rdi + 1], 0xc3
je 0x180002392
cmp cl, 0xff
jne 0x180002363
cmp byte [rdi + 1], 0x25
je 0x180002392
sub cl, 0x26
cmp cl, 0x3f
ja 0x180002387
movabs rax, 0xc000000001010101
bt rax, rcx
jae 0x180002387
cmp byte [rdi + 1], 0xff
jne 0x180002387
cmp byte [rdi + 2], 0x25
je 0x180002392
cmp r9d, 5
jae 0x1800023c1
jmp 0x18000225f
cmp r9d, 5
jae 0x1800023c1
mov rcx, r8
call fcn.180001250
test eax, eax
je 0x1800023b7
cdqe
add r8, rax
mov r9, r8
sub r9d, ebp
cmp r9d, 5
jb 0x180002398
jmp 0x1800023c1
cmp r9d, 5
jb 0x18000248d
cmp r13d, 8
ja 0x18000248d
lea r13, [rbx + 0x1e]
cmp r15, r13
jbe 0x1800023d5
int3
lea rcx, [rbx + 0x20]
mov r8d, r9d
mov rdx, rbp
mov byte [r13], r10b
mov byte [rbx + 0x3e], r9b
mov edi, r9d
call sub.VCRUNTIME140.dll_memcpy
cmp rdi, 0x19
jbe 0x1800023ff
mov esi, 6
jmp 0x18000249b
movzx edx, byte [r13]
lea rax, [rdi + rbp]
mov qword [rbx + 0x48], rax
add rdx, rbx
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x50], rax
mov eax, ebx
lea rcx, [rdx + 6]
mov word [rdx], 0x25ff
sub eax, ecx
lea rcx, [rdx + 6]
add eax, 0x48
mov dword [rdx + 2], eax
mov rdx, r13
call fcn.180001200
lea r9, [rsp + 0x2c]
mov dword [rsp + 0x2c], esi
mov r8d, 0x40
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002460
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x18000249b
mov dword [r14 + 8], esi
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x20], rbx
mov qword [r14 + 0x18], rbp
mov eax, dword [rsp + 0x2c]
mov dword [r14 + 0x28], eax
mov rax, qword [0x18006c380]
mov qword [r14], rax
xor eax, eax
mov qword [0x18006c380], r14
jmp 0x1800024f1
cmp dword [0x18006c148], 0
mov esi, 9
jne 0x1800024a1
mov dword [0x18006c358], esi
test rbx, rbx
je 0x1800024d6
xorps xmm0, xmm0
mov r8, rbx
movups xmmword [rbx], xmm0
and r8, 0xffffffffffff0000
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov rax, qword [r8 + 0x10]
mov qword [rbx + 0x48], rax
mov qword [r8 + 0x10], rbx
test r14, r14
je 0x1800024e8
mov edx, 0x30
mov rcx, r14
call fcn.1800551e4
mov qword [0x18006c368], r12
mov eax, esi
mov r14, qword [rsp + 0xc8]
mov r13, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x110]
mov r15, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0xe0
pop r12
pop rdi
pop rsi
ret