Function at 0x14016cb10
Capabilities:
Allocate or change rwx memory
Check for time delay via queryperformancecounter
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x370
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
mov rax, qword [0x14049e608]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rax, qword [0x140737750]
test rax, rax
jne 0x14016cba8
mov ecx, 0x110
call fcn.1403195d4
mov qword [rbp - 0x70], rax
mov rcx, rax
call fcn.140082070
nop
mov qword [0x140737750], rax
xor r14d, r14d
mov edi, r14d
mov r13d, 2
cmp qword [rax + 0x58], r13
cmova edi, r13d
mov dword [rsp + 0x78], edi
mov rsi, qword [rax + 0xb0]
mov ebx, r14d
nop word [rax + rax]
mov edx, 3
mov rcx, rsi
call fcn.140304dc0
lea ecx, [rax + 2]
cmp ecx, 1
jbe 0x14016cc11
test rbx, rbx
jne 0x14016cbfc
xor r8d, r8d
mov edx, eax
mov rcx, rsi
call fcn.140304b90
mov rbx, rax
jmp 0x14016cc05
cmp dword [rbx + 0x30], eax
jne 0x14016cc11
mov rbx, qword [rbx + 0x38]
test rbx, rbx
je 0x14016cc11
cmp dword [rbx + 0x10], edi
jne 0x14016cbd0
jmp 0x14016cc14
mov rbx, r14
mov qword [rbp - 0x78], r14
mov r9d, 1
lea r8, [rbp - 0x78]
mov rdx, rbx
mov rcx, rsi
call fcn.140304a30
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14016cc5c
mov esi, dword [rax + 0x10]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x50], esi
cmp esi, edi
jae 0x14016cc66
mov eax, edi
mov dword [rbp - 0x18], eax
mov edi, esi
mov dword [rsp + 0x78], esi
mov esi, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x50], eax
jmp 0x14016cc66
mov esi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x50], edi
mov ecx, edi
call fcn.140098770
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, 0x200000
xor ecx, ecx
call fcn.14013b950
mov ecx, 0x28
call fcn.1403195d4
mov r12, rax
mov qword [rbp - 0x70], rax
mov qword [rax], 0x1000000
mov dword [rax + 8], r14d
mov qword [rax + 0x10], 0x1000000
xor eax, eax
mov dword [r12 + 0x18], eax
mov qword [r12 + 0x20], r14
mov rcx, r12
call fcn.140098960
test al, al
jne 0x14016ccdc
mov edx, 0x40
mov rcx, qword [r12]
call fcn.140343040
mov qword [r12 + 0x20], rax
mov rcx, qword [0x140737750]
test rcx, rcx
jne 0x14016cd09
mov ecx, 0x110
call fcn.1403195d4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.140082070
mov rcx, rax
mov qword [0x140737750], rax
mov rbx, rcx
test rcx, rcx
jne 0x14016cd32
mov ecx, 0x110
call fcn.1403195d4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.140082070
mov rcx, rax
mov qword [0x140737750], rax
mov r9, qword [rcx]
mov r8, qword [r9 + 0xa8]
lea r10, [method.xmrig::HwlocCpuInfo.virtual_168]
cmp r8, r10
jne 0x14016cd51
mov rdx, qword [rcx + 0xe0]
jmp 0x14016cd54
mov rdx, r14
mov rax, qword [rbx]
lea r11, [method.xmrig::HwlocCpuInfo.virtual_184]
cmp qword [rax + 0xb8], r11
jne 0x14016cd70
mov rax, qword [rbx + 0xd0]
jmp 0x14016cd73
mov rax, r14
shr rax, 0x16
cmp rax, rdx
jbe 0x14016cd84
mov r15d, 0x800000
jmp 0x14016cdc0
cmp r8, r10
jne 0x14016cd92
mov rdx, qword [rcx + 0xe0]
jmp 0x14016cd95
mov rdx, r14
cmp qword [r9 + 0xb8], r11
jne 0x14016cda7
mov rax, qword [rcx + 0xd0]
jmp 0x14016cdaa
mov rax, r14
shr rax, 0x16
mov ecx, 0x400000
mov r15d, 0x200000
cmp rax, rdx
cmovae r15d, ecx
mov qword [rsp + 0x38], r15
cmp dword [0x140732900], 0
jbe 0x14016ce10
movzx eax, byte [r12 + 0x18]
and al, 1
lea rdx, [0x14045b1dc]
lea rcx, [0x14045b2b4]
cmovne rcx, rdx
mov rax, r15
shr rax, 0x14
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8d, edi
lea rdx, str.Running_GhostRider_benchmark_on_logical_CPUs__u_and__u__max_scratchpad_size__zu_MB__huge_pages__s_
mov ecx, 6
call fcn.1400265c0
mov rsi, qword [r12 + 0x20]
mov rdi, r14
nop dword [rax + rax]
mov edx, 0x1000
mov ecx, 0x1c0
call fcn.140343040
mov rbx, rax
mov qword [rax + 0xe0], rsi
mov edx, 0x4000
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x118], rax
mov dword [rbx + 0x120], r14d
mov qword [rbx + 0x128], 0xffffffffffffffff
mov qword [rbp + rdi*8 + 0x50], rbx
inc rdi
add rsi, 0x200000
cmp rdi, 8
jb 0x14016ce20
mov rax, qword [0x140737750]
test rax, rax
jne 0x14016cea9
mov ecx, 0x110
call fcn.1403195d4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.140082070
nop
mov qword [0x140737750], rax
movzx eax, byte [rax + 0x94]
and al, 1
lea rcx, [0x1404126f0]
lea rdx, [0x140412678]
cmovne rdx, rcx
mov qword [rsp + 0x60], rdx
cmp dword [0x140732900], 0
jbe 0x14016cf09
lea r8, str.Algorithm
lea rdx, str._24s___N___Hashrate
mov ecx, 6
call fcn.1400265c0
cmp dword [0x140732900], 0
jbe 0x14016cf04
lea rdx, str.___________________________________________
mov ecx, 6
call fcn.1400265c0
mov rdx, qword [rsp + 0x60]
lea rax, [0x140412710]
mov qword [rbp - 0x80], rax
mov rcx, rax
mov qword [rsp + 0x48], rax
mov rax, r14
mov qword [rsp + 0x40], rax
mov rsi, r14
mov qword [rsp + 0x58], 6
movsd xmm8, qword [0x14045b480]
movsd xmm13, qword [0x14045b4b8]
movsd xmm10, qword [0x14045b460]
nop dword [rax + rax]
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], r13d
mov dword [rbp + 0x40], 4
lea r13, [rbp + 0x38]
mov qword [rsp + 0x68], 3
nop
lea r14, [0x140000000]
movsxd r12, dword [r13]
mov r14, qword [rax + r14 + 0x4126c0]
imul r14, r12
cmp r14, r15
ja 0x14016d157
mov eax, dword [rcx]
mov dword [rsp + 0x7c], eax
mov r8d, 1
mov edx, dword [rdx + r12*4]
lea rcx, [rsp + 0x7c]
call fcn.1400a2bf0
mov r15, rax
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm7, xmm7
cvtsi2sd xmm7, qword [rbp - 0x10]
mulsd xmm7, xmm8
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0x68]
divsd xmm7, xmm0
movaps xmm9, xmm13
xor edi, edi
mov ebx, edi
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm6, xmm6
cvtsi2sd xmm6, qword [rbp - 0x60]
mulsd xmm6, xmm8
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0x58]
divsd xmm6, xmm0
cmp ebx, 0xa
jb 0x14016d026
movaps xmm0, xmm6
subsd xmm0, xmm7
comisd xmm0, xmm10
jae 0x14016d088
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x50]
lea r8, [rbp + 0xe0]
mov edx, 0x50
lea rcx, [rbp + 0x90]
call r15
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x50]
mulsd xmm1, xmm8
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0x48]
divsd xmm1, xmm0
subsd xmm1, xmm6
minsd xmm1, xmm9
movaps xmm9, xmm1
inc ebx
jmp 0x14016cfe4
xorps xmm6, xmm6
test r12d, r12d
js 0x14016d097
cvtsi2sd xmm6, r12
jmp 0x14016d0af
mov rcx, r12
shr rcx, 1
mov rax, r12
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
mulsd xmm6, xmm8
divsd xmm6, xmm9
cmp dword [0x140732900], edi
lea rdi, [0x140000000]
jbe 0x14016d0ef
movsd qword [rsp + 0x20], xmm6
mov r9, r12
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + rdi + 0x412690]
lea rdx, str._24s___llux1___.2f_h_s
mov ecx, 6
call fcn.1400265c0
comisd xmm6, xmmword [rsi + rdi + 0x49fc20]
jbe 0x14016d116
movsd qword [rsi + rdi + 0x49fc20], xmm6
mov dword [rsi + rdi + 0x49fc28], r12d
mov dword [rsi + rdi + 0x49fc2c], 1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x38]
cmp r14, 0x800000
jae 0x14016d15e
comisd xmm6, xmmword [rsi + rdi + 0x49fc80]
jbe 0x14016d15e
movsd qword [rsi + rdi + 0x49fc80], xmm6
mov dword [rsi + rdi + 0x49fc88], r12d
mov dword [rsi + rdi + 0x49fc8c], 1
jmp 0x14016d15e
lea rdi, [0x140000000]
add r13, 4
sub qword [rsp + 0x68], 1
mov rdx, qword [rsp + 0x60]
jne 0x14016cf70
add rax, 8
mov qword [rsp + 0x40], rax
add rcx, 4
mov qword [rsp + 0x48], rcx
add rsi, 0x10
sub qword [rsp + 0x58], 1
mov r13d, 2
jne 0x14016cf50
call fcn.1403063c0
mov rbx, rax
mov edx, dword [rsp + 0x30]
mov rcx, rax
call fcn.140307c50
mov ecx, 0x290
call fcn.1403195d4
mov qword [rsp + 0x70], rax
xor r9d, r9d
lea r8d, [r13 + 1]
mov rdx, rbx
mov rcx, rax
call fcn.14016c560
mov rbx, rax
xor r12d, r12d
mov r13d, r12d
mov esi, r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x40], 6
movsd xmm10, qword [0x14045b468]
movsd xmm11, qword [0x14045b488]
movsd xmm12, qword [0x14045b440]
nop word [rax + rax]
mov dword [rbp + 0x28], 1
mov dword [rbp + 0x2c], 2
mov dword [rbp + 0x30], 4
lea r15, [rbp + 0x28]
mov rax, qword [rsp + 0x38]
nop
movsxd rcx, dword [r15]
mov qword [rsp + 0x48], rcx
mov r14, qword [rdi + r13 + 0x4126c0]
imul r14, rcx
add r14, r14
cmp r14, rax
ja 0x14016d4cf
mov rax, qword [rbp - 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov r8d, 1
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + rcx*4]
lea rcx, [rsp + 0x30]
call fcn.1400a2bf0
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm7, xmm7
cvtsi2sd xmm7, qword [rbp - 0x40]
mulsd xmm7, xmm8
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0x38]
divsd xmm7, xmm0
movaps xmm9, xmm13
mov edi, r12d
lea rsi, vtable.xmrig::ghostrider::HelperThread::Task_class__lambda_08bb71d5ce822ecc574a626e45e41866__.0
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm6, xmm6
cvtsi2sd xmm6, qword [rbp - 0x30]
mulsd xmm6, xmm8
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp - 0x28]
divsd xmm6, xmm0
cmp edi, 0xa
jb 0x14016d2fa
movaps xmm0, xmm6
subsd xmm0, xmm7
comisd xmm0, xmm10
jae 0x14016d401
lea rax, [rsp + 0x58]
mov qword [rbp - 8], rax
lea rax, [rbp + 0x90]
mov qword [rbp], rax
lea rax, [rbp + 0xe0]
mov qword [rbp + 8], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0x10], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x18], rax
mov rcx, rbx
call sub.KERNEL32.dll_EnterCriticalSection
mov ecx, dword [rbx + 0x270]
shl rcx, 7
mov eax, dword [rbx + 0x270]
inc eax
mov dword [rbx + 0x270], eax
mov qword [rcx + rbx + 0x70], rsi
movups xmm0, xmmword [rbp - 8]
movups xmmword [rcx + rbx + 0x78], xmm0
movups xmm1, xmmword [rbp + 8]
movups xmmword [rcx + rbx + 0x88], xmm1
movsd xmm0, qword [rbp + 0x18]
movsd qword [rcx + rbx + 0x98], xmm0
lea rcx, [rbx + 0x28]
call sub.KERNEL32.dll_WakeConditionVariable
mov rcx, rbx
call sub.KERNEL32.dll_LeaveCriticalSection
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x50]
lea r8, [rbp + 0xe0]
mov edx, 0x50
lea rcx, [rbp + 0x90]
call qword [rsp + 0x58]
mov eax, dword [rbx + 0x270]
test eax, eax
je 0x14016d3bc
nop dword [rax]
pause
mov eax, dword [rbx + 0x270]
test eax, eax
jne 0x14016d3b0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x20]
mulsd xmm1, xmm8
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x70]
divsd xmm1, xmm0
subsd xmm1, xmm6
minsd xmm1, xmm9
movaps xmm9, xmm1
inc edi
jmp 0x14016d2b4
mov rdx, qword [rsp + 0x48]
xorps xmm6, xmm6
test rdx, rdx
js 0x14016d415
cvtsi2sd xmm6, rdx
jmp 0x14016d42d
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
mulsd xmm6, xmm11
divsd xmm6, xmm9
mulsd xmm6, xmm12
cmp dword [0x140732900], r12d
mov rsi, qword [rsp + 0x68]
lea rdi, [0x140000000]
jbe 0x14016d478
movsd qword [rsp + 0x20], xmm6
mov r9, rdx
mov r8, qword [rdi + r13 + 0x412690]
lea rdx, str._24s___llux2___.2f_h_s
mov ecx, 6
call fcn.1400265c0
mov rdx, qword [rsp + 0x48]
mov eax, 2
comisd xmm6, xmmword [rsi + rdi + 0x49fc20]
jbe 0x14016d49f
movsd qword [rsi + rdi + 0x49fc20], xmm6
mov dword [rsi + rdi + 0x49fc28], edx
mov dword [rsi + rdi + 0x49fc2c], eax
cmp r14, 0x800000
jae 0x14016d4ca
comisd xmm6, xmmword [rsi + rdi + 0x49fc80]
jbe 0x14016d4ca
movsd qword [rsi + rdi + 0x49fc80], xmm6
mov dword [rsi + rdi + 0x49fc88], edx
mov dword [rsi + rdi + 0x49fc8c], eax
mov rax, qword [rsp + 0x38]
add r15, 4
lea rcx, [rbp + 0x34]
cmp r15, rcx
jne 0x14016d230
add r13, 8
add qword [rbp - 0x80], 4
add rsi, 0x10
mov qword [rsp + 0x68], rsi
sub qword [rsp + 0x40], 1
jne 0x14016d210
test rbx, rbx
je 0x14016d50b
mov rcx, rbx
call fcn.14016e810
cmp qword [rbp + 0x50], r12
je 0x14016d524
mov rcx, qword [rbp + r12*8 + 0x50]
call fcn.140343024
inc r12
cmp r12, 8
jb 0x14016d511
mov rcx, qword [rbp - 0x70]
call fcn.14007fcc0
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1403195b0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret