Function at 0x140052e60
Capabilities:
Create thread
Enumerate threads
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rbx, r9
xor edi, edi
mov dword [rsp + 0x30], edi
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__msize]
mov dword [rbp + 0xb0], eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov r13d, 2
mov dword [rsp + 0x30], r13d
mov r9d, Ordinal_50
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [0x14017a158]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140052f79
cmp dword [rsp + 0x70], 0x1000
jne 0x140052f4e
mov eax, dword [rsp + 0x74]
bt eax, 8
jb 0x140052f4e
cmp eax, 1
je 0x140052f4e
test dword [rsp + 0x60], 0x200
jne 0x140052f4e
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x28], rax
mov rdx, qword [rsp + 0x40]
cmp rdx, qword [rsp + 0x48]
je 0x140052f40
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdx], xmm0
add qword [rsp + 0x40], 0x10
jmp 0x140052f4e
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x38]
call fcn.140076010
mov rdx, qword [rsp + 0x50]
add rdx, qword [rsp + 0x68]
mov r9d, Ordinal_50
lea r8, [rsp + 0x50]
mov rcx, qword [0x14017a158]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x140052ef0
mov eax, dword [0x14017a160]
test eax, eax
jne 0x1400531ed
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
mov r12d, eax
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x38]
sar rax, 4
dec rax
add rax, r12
xor edx, edx
div r12
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea rax, [0x14017a150]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov rsi, rdi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x40], r12
test r12, r12
je 0x140053110
movabs rax, 0xfffffffffffffff
cmp r12, rax
ja 0x1400533e3
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x70]
call fcn.14006f270
mov rbx, rdi
mov qword [rbp - 0x40], rbx
mov r14, rdi
mov r15, rdi
movsd xmm6, qword [rbp - 0x80]
movups xmm7, xmmword [rsp + 0x70]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x50]
mov rsi, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x68]
nop dword [rax + rax]
cmp rdi, rsi
je 0x1400530c9
mov ecx, 0x40
call fcn.1400cfb28
mov qword [rax], rbx
movups xmmword [rax + 8], xmm9
movups xmmword [rax + 0x18], xmm8
movups xmmword [rax + 0x28], xmm7
movsd qword [rax + 0x38], xmm6
mov qword [rbp - 0x40], rax
or r13d, 1
mov dword [rsp + 0x30], r13d
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140081800]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140053101
add rdi, 0x10
mov qword [rbp - 0x68], rdi
jmp 0x1400530e9
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1400756f0
mov r14, r15
mov rsi, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x68]
lea rbx, [r14 + 1]
mov r14, rbx
mov qword [rbp - 0x40], rbx
cmp rbx, r12
jae 0x140053118
mov r15, rbx
jmp 0x140053060
mov dword [rbx], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov qword [rbp - 0x40], rdi
mov rdi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x70]
mov rbx, r14
cmp r14, rdi
je 0x140053163
cmp dword [rbx + 8], 0
je 0x1400531ca
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1400531be
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x40], xmm0
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x1400531b2
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140053124
test r14, r14
je 0x1400532d9
mov rax, r14
cmp r14, rdi
je 0x140053183
cmp dword [rax + 8], 0
jne 0x1400531d6
add rax, 0x10
cmp rax, rdi
jne 0x140053174
sub rsi, r14
and rsi, 0xfffffffffffffff0
mov rax, r14
cmp rsi, 0x1000
jb 0x1400531dd
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400531dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rdx, rsi
mov rcx, r14
call fcn.1400cfe7c
jmp 0x1400532d9
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
cmp eax, 3
lea rax, [0x14017a150]
jne 0x140053289
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov dword [rbp + 0x28], 0xffffffff
mov dword [rbp - 0x20], r13d
mov dword [rbp + 0x2c], edi
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp - 0x50], xmm0
lea r9, [rbp - 0x70]
call fcn.14006e770
jmp 0x1400532d9
mov qword [rbp - 0x70], rax
lea rax, [rbp + 0xb0]
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0xb8]
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0xc0]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rbx
movups xmm0, xmmword [rbp - 0x70]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rbp - 0x60]
movaps xmmword [rsp + 0x60], xmm1
movsd xmm0, qword [rbp - 0x50]
movsd qword [rsp + 0x70], xmm0
lea r9, [rsp + 0x50]
call fcn.14006e8b0
call fcn.140052950
cmp qword [0x14017a158], 0
je 0x140053371
mov dword [rbp - 0x70], Ordinal_30
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140053371
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140053367
nop word [rax + rax]
mov ecx, dword [0x14017a154]
cmp dword [rbp - 0x64], ecx
jne 0x140053356
mov r8d, dword [rbp - 0x68]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140053356
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140053320
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400533b4
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400533af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400533af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cfe7c
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14006c950
nop
int3