Function at 0x140273d20
Capabilities:
Resume thread
Suspend thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
movaps xmmword [rsp + 0x2d0], xmm7
movaps xmmword [rsp + 0x2c0], xmm6
mov r13d, edx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
mov qword [rsp + 0x38], rcx
mov r14, qword [rcx]
lea r15, [rsp + 0xf8]
mov dword [r15], 0xaaaaaaaa
mov ecx, 0x4000
call fcn.1401cbf8c
mov rsi, rax
mov r12d, 0x4000
mov edi, 0x14
mov ebx, 0x1000
jmp 0x140273db5
mov r12d, dword [rsp + 0xf8]
add r12d, ebx
test rsi, rsi
je 0x140273da6
mov rcx, rsi
call fcn.1401cbf84
mov ecx, r12d
call fcn.1401cbf8c
mov rsi, rax
dec edi
je 0x140273e0f
mov ecx, 5
mov rdx, rsi
mov r8d, r12d
mov r9, r15
call fcn.1402690c0
mov ebp, eax
cmp eax, 0xc0000023
je 0x140273d8e
cmp ebp, 0xc0000004
je 0x140273d8e
test ebp, ebp
js 0x140273e0f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebp, eax
mov rbx, rsi
cmp dword [rbx + 0x50], ebp
je 0x140273e62
mov eax, dword [rbx]
test rax, rax
je 0x140273dfc
add rbx, rax
jne 0x140273deb
mov ecx, 2
call fcn.140159120
test al, al
je 0x140273e21
jmp 0x140274746
mov ecx, 2
call fcn.140159120
test al, al
jne 0x140273ebf
test rsi, rsi
je 0x140273e2e
mov rcx, rsi
call fcn.1401cbf84
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.1401ce5b0
movaps xmm6, xmmword [rsp + 0x2c0]
movaps xmm7, xmmword [rsp + 0x2d0]
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test rbx, rbx
je 0x140273e21
cmp dword [rbx + 4], 0
je 0x140273e21
mov byte [rsp + 0x2f], r13b
lea rdi, [rsp + 0x100]
lea r14, [rsp + 0x108]
lea r15, [rsp + 0x88]
mov rax, qword [rsp + 0x38]
lea rcx, [rax + 0xa8]
mov qword [rsp + 0x40], rcx
add rax, 0x160
mov qword [rsp + 0x48], rax
lea r13, [rbx + 0x128]
movaps xmm6, xmmword [0x14029ca60]
xorps xmm7, xmm7
xor r12d, r12d
jmp 0x14027403c
mov dword [rsp + 0x20], ebp
lea rdx, str.process_reader_win.cc
lea rdi, [rsp + 0x170]
mov rcx, rdi
mov r8d, 0x5f
mov r9d, 2
call fcn.140269460
lea rcx, [rsp + 0x180]
lea rdx, str.NtQuerySystemInformation
mov r8d, 0x18
call fcn.140206b20
mov rcx, rdi
call fcn.140269490
jmp 0x140273e21
mov ebp, eax
mov ecx, 2
call fcn.140159120
test al, al
je 0x140273ffd
mov dword [rsp + 0x20], ebp
lea rbp, [rsp + 0x170]
mov rcx, rbp
lea rdx, str.process_reader_win.cc
mov r8d, 0x80
mov r9d, 2
call fcn.140269460
mov r8d, 0xc
lea rcx, [rsp + 0x180]
lea rdx, str.NtOpenThread
call fcn.140206b20
mov rcx, rbp
call fcn.140269490
jmp 0x140273ffd
mov rcx, qword [rsp + 0x120]
call fcn.1401cbbbc
mov rax, qword [rsp + 0x180]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rdi + 0x20], xmm0
mov rcx, r15
call fcn.1401427f0
mov rax, qword [rsp + 0x38]
mov r15, qword [rax + 0x168]
cmp r15, qword [rax + 0x170]
jb 0x140273fc8
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0xf8]
call fcn.140143090
mov r15, rax
jmp 0x140273fdc
mov rcx, r15
lea rdx, [rsp + 0xf8]
call fcn.1401433a0
add r15, 0x78
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x168], r15
lea r15, [rsp + 0x88]
mov rbp, qword [rsp + 0x30]
mov rcx, rbp
call fcn.140139420
cmp byte [rsp + 0x137], 0
jns 0x140274014
mov rcx, qword [rsp + 0x120]
call fcn.1401cbbbc
mov qword [rsp + 0x170], r14
lea rcx, [rsp + 0x170]
call fcn.140187470
inc r12
mov eax, dword [rbx + 4]
add r13, 0x50
cmp r12, rax
jae 0x140273e21
movups xmmword [rdi + 0x60], xmm6
movups xmmword [rdi + 0x50], xmm6
movups xmmword [rdi + 0x40], xmm6
movups xmmword [rdi + 0x30], xmm6
movups xmmword [rdi + 0x20], xmm6
movups xmmword [rdi + 0x10], xmm6
movups xmmword [rdi], xmm6
mov qword [rsp + 0xf8], 0
mov byte [rsp + 0x100], 0
xor ecx, ecx
mov dword [r14 + 0x60], ecx
movups xmmword [r14 + 0x50], xmm7
movups xmmword [r14 + 0x40], xmm7
movups xmmword [r14 + 0x30], xmm7
movups xmmword [r14 + 0x20], xmm7
movups xmmword [r14 + 0x10], xmm7
movups xmmword [r14], xmm7
mov rax, qword [r13 + 8]
mov qword [rsp + 0x138], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0x80], 0x30
mov dword [r15 + 0x10], ecx
movups xmmword [r15], xmm7
movups xmmword [r15 + 0x18], xmm7
lea rcx, [rsp + 0xc0]
mov edx, 0x4a
lea r8, [rsp + 0x80]
mov r9, r13
call fcn.140269020
test eax, eax
js 0x140273f0d
mov rbp, qword [rsp + 0xc0]
test rbp, rbp
je 0x140273ffd
mov rax, qword [rsp + 0x38]
mov r15b, byte [rax + 0x190]
mov rax, qword [rsp + 0x138]
mov rcx, qword gs:[0x30]
cmp rax, qword [rcx + 0x48]
mov qword [rsp + 0x30], rbp
je 0x140274221
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x140274580
mov ecx, 2
call fcn.140159120
test al, al
lea r15, [rsp + 0x88]
mov rbp, qword [rsp + 0x30]
je 0x140273ff5
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rbp, [rsp + 0x170]
mov rcx, rbp
lea rdx, str.process_reader_win.cc
mov r8d, 0x9c
mov r9d, 2
call fcn.14023ca20
mov r8d, 0xd
lea rcx, [rsp + 0x180]
lea rdx, [0x1402b9e4c]
call fcn.140206b20
mov rcx, rbp
mov rbp, qword [rsp + 0x30]
call fcn.14023caa0
jmp 0x140273ff5
mov ebp, eax
mov ecx, 2
call fcn.140159120
test al, al
je 0x140273fe8
mov dword [rsp + 0x20], ebp
lea r15, [rsp + 0x170]
mov rcx, r15
lea rdx, str.process_reader_win.cc
mov r8d, 0x1ab
mov r9d, 2
call fcn.140269460
mov r8d, 0x18
lea rcx, [rsp + 0x180]
lea rdx, str.NtQueryInformationThread
call fcn.140206b20
mov rcx, r15
call fcn.140269490
jmp 0x140273fe8
mov dword [rsp + 0x160], 0
mov edx, 0x4d0
mov rcx, r14
call fcn.14017ae10
mov byte [rsp + 0x100], 1
mov rcx, qword [rsp + 0x108]
add rcx, qword [rsp + 0xf8]
call fcn.1401ce260
mov dword [rsp + 0x164], 0x20
mov eax, dword [r13 + 0x10]
mov dword [rsp + 0x168], eax
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rsp + 0x20], 0
mov rcx, rbp
xor edx, edx
lea r8, [rsp + 0xc0]
mov r9d, 0x30
call fcn.140269160
test eax, eax
js 0x1402741bf
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0x140], rdx
mov qword [rsp + 0x148], 0x1788
mov r8d, 0x38
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x80]
call fcn.14026d4a0
test al, al
je 0x1402743ba
cmp byte [rsp + 0x2f], 0
jne 0x14027432c
mov rbp, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
jmp 0x14027438e
movups xmmword [rsp + 0x17c], xmm6
movaps xmmword [rsp + 0x170], xmm6
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x140], rdx
mov qword [rsp + 0x148], 0xf98
mov r8d, 0x1c
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x170]
call fcn.14026d4a0
mov ebp, dword [rsp + 0x174]
mov r15d, dword [rsp + 0x178]
test al, al
mov eax, 0
cmove rbp, rax
cmove r15, rax
mov qword [rsp + 0x150], r15
mov rax, rbp
sub rax, r15
jae 0x1402743b2
mov ecx, 2
call fcn.140159120
test al, al
jne 0x1402744d4
xor eax, eax
mov qword [rsp + 0x158], rax
mov eax, dword [0x1402e6e28]
mov ecx, dword [0x1402db110]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
mov r15, qword [rsp + 0x30]
jg 0x1402746fc
mov rax, qword [0x1402e6e20]
test rax, rax
je 0x140273f9c
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x78], rcx
mov rcx, r15
lea rdx, [rsp + 0x78]
call qword [0x1402f5008]
test eax, eax
js 0x14027445a
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0x68], r15
test r15, r15
je 0x140274743
mov rcx, r15
call fcn.1401cc340
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x170]
lea rdx, [rsp + 0x68]
call fcn.14017d440
cmp byte [rsp + 0x137], 0
jns 0x140273f7c
jmp 0x140273f6f
mov ebp, eax
mov ecx, 1
call fcn.140159120
test al, al
je 0x140273f9c
lea rcx, [rsp + 0x170]
lea rdx, str.process_reader_win.cc
mov r8d, 0x1dc
mov r9d, 1
call fcn.1400036d0
mov r8d, 0x16
lea rcx, [rsp + 0x180]
lea rdx, str.GetThreadDescription:
call fcn.140206b20
mov r15, rax
lea rcx, [rsp + 0x50]
mov edx, ebp
call fcn.140063d40
movzx r8d, byte [rsp + 0x67]
test r8b, r8b
js 0x14027454b
and r8d, 0x7f
lea rdx, [rsp + 0x50]
jmp 0x140274555
lea rcx, [rsp + 0x170]
lea rdx, str.process_reader_win.cc
mov r8d, 0x1cb
mov r9d, 2
call fcn.1400036d0
mov r8d, 0x15
lea rcx, [rsp + 0x180]
lea rdx, str.invalid_stack_range:
call fcn.140206b20
mov rcx, rax
mov rdx, rbp
call fcn.14011cc40
mov r8d, 3
mov rcx, rax
lea rdx, [0x1402a49ba]
call fcn.140206b20
mov rcx, rax
mov rdx, r15
call fcn.14011cc40
lea rcx, [rsp + 0x170]
call fcn.1400038d0
jmp 0x1402743b0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140206b20
cmp byte [rsp + 0x67], 0
jns 0x14027456e
mov rcx, qword [rsp + 0x50]
call fcn.1401cbbbc
lea rcx, [rsp + 0x170]
call fcn.1400038d0
jmp 0x140273f9c
mov ebp, eax
test r15b, r15b
je 0x14027461b
test ebp, ebp
jne 0x14027461b
mov ecx, 1
call fcn.140159120
xor ebp, ebp
test al, al
je 0x140274621
lea r15, [rsp + 0x170]
mov rcx, r15
lea rdx, str.process_reader_win.cc
mov r8d, 0xa1
mov r9d, 1
call fcn.1400036d0
mov r8d, 7
lea rcx, [rsp + 0x180]
lea rdx, str.Thread
call fcn.140206b20
mov rdx, qword [rsp + 0x138]
mov rcx, rax
call fcn.14011cc40
mov r8d, 0x34
mov rcx, rax
lea rdx, str._should_be_suspended__but_previous_suspend_count_is
call fcn.140206b20
xor ebp, ebp
mov rcx, rax
xor edx, edx
call fcn.140037690
mov rcx, r15
call fcn.1400038d0
jmp 0x140274621
movzx eax, r15b
sub ebp, eax
mov dword [rsp + 0x160], ebp
cmp byte [rsp + 0x2f], 0
lea r15, [rsp + 0x88]
jne 0x140274663
mov ecx, 0x800
call fcn.140281bd0
test al, al
mov rbp, qword [rsp + 0x30]
lea rcx, [rsp + 0xf8]
mov rdx, rbp
je 0x14027465c
call fcn.140273700
jmp 0x140274678
call fcn.140273540
jmp 0x140274678
lea rcx, [rsp + 0xf8]
mov rbp, qword [rsp + 0x30]
mov rdx, rbp
call fcn.140273620
test al, al
je 0x140273ff5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x140274256
mov ecx, 2
call fcn.140159120
test al, al
lea r15, [rsp + 0x88]
je 0x140273ff5
lea r15, [rsp + 0x180]
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.process_reader_win.cc
lea rbp, [rsp + 0x170]
mov rcx, rbp
mov r8d, 0xc0
mov r9d, 2
call fcn.14023ca20
lea rdx, [0x1402b9e97]
mov r8d, 0xc
mov rcx, r15
lea r15, [rsp + 0x88]
jmp 0x1402741a8
lea rcx, [0x1402e6e28]
call fcn.1401cc16c
cmp dword [0x1402e6e28], 0xffffffff
jne 0x1402743e4
lea rcx, [0x1402a4d98]
lea rdx, str.::GetThreadDescription
xor r8d, r8d
call fcn.14013c860
mov qword [0x1402e6e20], rax
lea rcx, [0x1402e6e28]
call fcn.1401cc1d4
jmp 0x1402743e4
int3
lea rdx, str.process_reader_win.cc
lea rdi, [rsp + 0x170]
mov rcx, rdi
mov r8d, 0x71
mov r9d, 2
call fcn.1400036d0
lea rcx, [rsp + 0x180]
lea rdx, str.process
mov r8d, 8
call fcn.140206b20
mov rcx, rax
mov edx, ebp
call fcn.140037690
lea rdx, str._not_found
mov r8d, 0xa
mov rcx, rax
call fcn.140206b20
mov rcx, rdi
call fcn.1400038d0
jmp 0x140273e21