Function at 0x180007490
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov ebx, ecx
xor r12d, r12d
mov r14d, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbp, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsp + 0x58], eax
cmp eax, 0x7fffffff
je 0x1800074e9
lea edx, [r12 + 0xf]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
test ebx, ebx
je 0x180007a3d
mov r13, r12
lea rcx, str.PSAPI.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180007521
lea rdx, str.EnumProcessModules
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rsi, [0x180035070]
mov edi, 0x11
nop
mov rbx, qword [rsi]
cmp qword [rbx + 0x40], 0
jne 0x180007548
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbx + 0x40], rax
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180007566
cmp qword [rbx + 0x48], 0
jne 0x180007566
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
add rsi, 8
sub rdi, 1
jne 0x180007530
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r12d, eax
xor edx, edx
lea ecx, [rdi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
test rax, rax
je 0x180007735
mov dword [rsp + 0x80], 0x1c
lea rdx, [rsp + 0x80]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18000772b
nop
nop
cmp dword [rsp + 0x8c], ebp
jne 0x180007713
mov r8d, dword [rsp + 0x88]
cmp r8d, r12d
je 0x180007713
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
mov qword [rsp + 0x118], rax
test rax, rax
je 0x180007713
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18000770a
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x18000765a
mov rcx, rdx
sub rcx, rbx
sar rcx, 3
mov rax, qword [rsp + 0x48]
sub rax, rbx
sar rax, 3
cmp rcx, rax
jae 0x18000765a
mov qword [rdx], rdi
lea rax, [rdx + 8]
mov qword [rsp + 0x40], rax
jmp 0x180007713
mov rdi, rdx
cmp rbx, rdx
jbe 0x180007671
call fcn.180012f20
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
test rbx, rbx
je 0x1800076a4
mov rax, rdx
sub rax, rbx
sar rax, 3
je 0x1800076a4
cmp rbx, rdx
jbe 0x18000769b
call fcn.180012f20
sub rdi, rbx
sar rdi, 3
jmp 0x1800076a6
xor edi, edi
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0xa0], xmm0
lea r9, [rsp + 0x118]
mov r8d, 1
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.180007120
mov r11, qword [rsp + 0x38]
mov rbx, r11
mov rcx, qword [rsp + 0x40]
cmp r11, rcx
jbe 0x1800076f5
call fcn.180012f20
mov rcx, qword [rsp + 0x40]
mov r11, qword [rsp + 0x38]
lea rax, [rbx + rdi*8]
cmp rax, rcx
ja 0x180007703
cmp rax, r11
jae 0x180007713
call fcn.180012f20
jmp 0x180007713
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800075d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x110], 0
test r13, r13
je 0x180007923
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x110]
mov r8d, 0x2000
lea rbx, [0x1800392a0]
mov qword [rsp + 0x120], rbx
mov rdx, rbx
mov rcx, rax
call r13
mov r14d, eax
mov dword [rsp + 0x118], eax
test eax, eax
je 0x180007923
mov ecx, dword [rsp + 0x110]
shr ecx, 3
je 0x180007923
mov eax, ecx
mov qword [rsp + 0x128], rax
lea rcx, [0x180000000]
nop
nop
mov r15, qword [rbx]
test r15, r15
je 0x1800078d4
cmp r15, rcx
je 0x1800078d4
xor esi, esi
lea r14d, [rsi + 1]
lea rbp, [0x180035070]
cmp esi, 0x11
jae 0x1800078ac
mov rbx, qword [rbp]
mov r12, qword [rbx + 0x18]
cmp qword [rbx + 0x40], 0
jne 0x1800077fc
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800078ac
mov r13, qword [rbx + 0x28]
cmp byte [rbx + 0x38], 0
jne 0x180007818
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x180007818
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x180007825
mov rdi, qword [rbx + 0x48]
test rdi, rdi
je 0x180007837
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x18000786c
xor edi, edi
mov rax, qword [rbx + 0x40]
test rax, rax
jne 0x180007851
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180007861
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
cmp qword [rbx + 8], 0
je 0x18000786c
mov qword [rbx + 0x10], rdi
cmp byte [rbx + 0x38], 0
jne 0x180007881
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x180007881
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test rdi, rdi
je 0x1800078ac
mov rcx, rdi
call fcn.18000a060
test al, al
jne 0x1800078ac
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, rdi
mov rdx, r12
mov rcx, r15
call fcn.1800060a0
test eax, eax
jne 0x1800078af
xor r14d, r14d
add esi, 1
add rbp, 8
cmp esi, 0x11
jb 0x1800077d2
test r14d, r14d
jne 0x1800078e1
mov rbx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x128]
xor r14d, r14d
mov dword [rsp + 0x118], r14d
jmp 0x1800078f9
mov rbx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x128]
mov r14d, dword [rsp + 0x118]
add rbx, 8
mov qword [rsp + 0x120], rbx
sub rax, 1
mov qword [rsp + 0x128], rax
lea rcx, [0x180000000]
jne 0x1800077b0
mov r15, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x180007936
xor edx, edx
jmp 0x180007940
mov rdx, rax
sub rdx, rcx
sar rdx, 3
xor edi, edi
test edx, edx
je 0x180007999
mov esi, edx
test rcx, rcx
je 0x180007959
sub rax, rcx
sar rax, 3
cmp rdi, rax
jb 0x180007963
call fcn.180012f20
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rcx + rdi*8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 1
sub rsi, 1
je 0x18000798f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
jmp 0x180007948
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rdi, rax
cmp rcx, rax
jbe 0x1800079b0
call fcn.180012f20
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rbx, rcx
cmp rcx, rax
jbe 0x1800079c7
call fcn.180012f20
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rbx, rdi
je 0x1800079fc
sub rax, rdi
sar rax, 3
lea rdx, [rax*8]
lea rsi, [rdx + rbx]
test rax, rax
jle 0x1800079f7
mov r9, rdx
mov r8, rdi
mov rcx, rbx
call fcn.1800111d0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rsi
test rcx, rcx
je 0x180007a06
call fcn.180010e90
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
test r15, r15
je 0x180007b09
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x50]
jmp 0x180007b0e
lea rsi, [0x180035070]
mov qword [rsp + 0x118], rsi
mov edi, 0x11
mov rbx, qword [rsi]
cmp byte [rbx + 0x38], 0
jne 0x180007a6c
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x180007a6c
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x180007a79
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x180007a88
call qword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x180007ad0
mov rsi, r12
mov rax, qword [rbx + 0x40]
test rax, rax
jne 0x180007aa3
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180007ab3
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rbx + 8], 0
je 0x180007ac8
mov qword [rbx + 0x10], rsi
mov rsi, qword [rsp + 0x118]
jmp 0x180007ad0
mov rsi, qword [rsp + 0x118]
cmp byte [rbx + 0x38], 0
jne 0x180007ae5
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x180007ae5
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call fcn.18000a4d0
add rsi, 8
mov qword [rsp + 0x118], rsi
sub rdi, 1
jne 0x180007a51
lea r14d, [rdi + 1]
jmp 0x180007b0e
mov rbp, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
cmp edx, 0x7fffffff
je 0x180007b28
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, r14d
jmp 0x180007b2b
mov eax, r14d
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret