Function at 0x140004380
Capabilities:
Enumerate threads

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rdi, r8
mov rbx, rdx
mov r13d, ecx
mov rax, qword [0x14007c498]
xor rax, rsp
mov qword [rsp + 0x88], rax
call fcn.1400024c0
xor esi, esi
test al, al
jne 0x140004937
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14000442a
mov rsi, rax
lea rdx, str.dummy_debug_proc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140004434
mov qword [rsp + 0x50], rsi
lea rcx, str.InjectLibrarySafe:_Injecting_threads
call fcn.140001cb0
mov ecx, 0x200
call fcn.14000e3dc
mov r12, rax
call fcn.140014eb8
mov rsi, rax
call fcn.140014e9c
cmp rsi, 0x989680
jne 0x14000443e
imul rax, rax, 0x64
jmp 0x14000447d
mov esi, 0x75
jmp 0x140004937
mov esi, 0x76
jmp 0x140004937
mov rcx, rax
or rcx, rsi
shr rcx, 0x20
je 0x140004451
cqo
idiv rsi
jmp 0x140004455
xor edx, edx
div esi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rsi
or rdx, rax
shr rdx, 0x20
je 0x140004476
cqo
idiv rsi
jmp 0x14000447a
xor edx, edx
div esi
add rax, rcx
mov rcx, r12
add rcx, 0x200
mov qword [rsp + 0x20], rcx
movabs r14, 0x1bf08eb000
add r14, rax
xor ebx, ebx
xorps xmm6, xmm6
lea rbp, [rsp + 0x68]
mov r15, r12
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x48], r14
jmp 0x1400044d4
mov r15, rax
mov qword [rsp + 0x68], 0x3e8
mov rcx, rbp
call fcn.140004970
call fcn.140014eb8
mov rsi, rax
call fcn.140014e9c
cmp rsi, 0x989680
jne 0x140004500
imul rcx, rax, 0x64
cmp rcx, r14
jl 0x14000454d
jmp 0x1400048ec
mov rcx, rax
or rcx, rsi
shr rcx, 0x20
je 0x140004516
cqo
idiv rsi
mov rcx, rax
jmp 0x14000451c
xor edx, edx
div esi
mov ecx, eax
imul rax, rdx, 0x3b9aca00
mov rdx, rsi
or rdx, rax
shr rdx, 0x20
je 0x140004536
cqo
idiv rsi
jmp 0x14000453a
xor edx, edx
div esi
imul rcx, rcx, 0x3b9aca00
add rcx, rax
cmp rcx, r14
jge 0x1400048ec
cmp r15, r12
je 0x140004650
cmp r12, r15
je 0x1400048a6
mov rdi, r12
jmp 0x14000457f
inc ebx
add rdi, 0x10
cmp rdi, r15
je 0x140004600
mov r9, qword [rdi + 8]
mov ecx, dword [rdi]
mov edx, 0x5b0
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x140004570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x5a4
je 0x1400045ae
cmp esi, 0x718
jne 0x1400045d0
mov dword [rdi], 0
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [rdi + 8], 0
cmp esi, 0x718
jne 0x1400045e9
jmp 0x140004572
mov edx, dword [rdi]
lea rcx, str.InjectLibrarySafe:_PostThreadMessage__x__failed:__x
mov r8d, esi
call fcn.140001cb0
cmp esi, 0x718
je 0x140004572
cmp esi, 0x5a4
je 0x140004572
jmp 0x1400048e5
mov rax, r12
cmp r12, r15
je 0x14000485e
mov rdi, qword [rsp + 0x28]
nop word cs:[rax + rax]
cmp dword [rax], 0
je 0x1400048a9
cmp qword [rax + 8], 0
je 0x1400048a9
add rax, 0x10
cmp rax, r15
jne 0x140004620
jmp 0x1400044c3
mov ecx, 4
mov edx, r13d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
lea rax, [rsp + 0x6c]
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov dword [rsp + 0x68], 0x1c
mov rcx, rsi
mov rdx, rbp
call sub.KERNEL32.dll_Thread32First
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140004865
mov r15, r12
mov qword [rsp + 0x38], rsi
jmp 0x1400046ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InjectLibrarySafe:_SetWindowsHookEx_failed_for_thread_id__x:__x
mov edx, esi
mov r8d, eax
call fcn.140001cb0
mov r13d, ebp
mov rbp, r14
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
mov rdx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14000487c
cmp dword [rsp + 0x74], r13d
jne 0x1400046bb
mov byte [rsp + 0x67], 0
mov ecx, dword [rsp + 0x70]
lea rdx, [0x140004b10]
lea r8, [rsp + 0x67]
call qword [sym.imp.USER32.dll_EnumThreadWindows]
cmp byte [rsp + 0x67], 0
je 0x1400046bb
mov r14, rbp
mov ebp, r13d
mov esi, dword [rsp + 0x70]
mov ecx, 3
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov r9d, esi
mov rax, rdi
call qword [0x140076550]
test rax, rax
je 0x140004699
mov r13, rax
cmp r15, qword [rsp + 0x20]
je 0x14000473f
mov dword [r15], esi
mov qword [r15 + 8], r13
add r15, 0x10
jmp 0x1400046b0
sub r15, r12
mov rcx, r15
sar rcx, 4
lea rdi, [rcx + 1]
mov rax, rcx
shr rax, 1
movabs r8, 0xfffffffffffffff
mov rdx, r8
sub rdx, rax
add rax, rcx
cmp rax, rdi
cmovbe rax, rdi
cmp rcx, rdx
cmova rax, r8
cmp rax, r8
ja 0x140004965
mov rcx, rax
shl rcx, 4
mov qword [rsp + 0x20], rcx
cmp rax, 0x100
mov qword [rsp + 0x30], r12
jb 0x1400047c9
movabs rcx, 0xfffffffffffffff
dec rcx
cmp rax, rcx
jae 0x140004965
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 0x27]
call fcn.14000e3dc
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x1400047e0
test rax, rax
je 0x1400047dd
mov rcx, qword [rsp + 0x20]
call fcn.14000e3dc
mov r12, rax
jmp 0x1400047e0
xor r12d, r12d
mov dword [r12 + r15], esi
mov qword [r12 + r15 + 8], r13
mov rcx, r12
mov rsi, qword [rsp + 0x30]
mov rdx, rsi
mov r8, r15
call fcn.140038e70
test rsi, rsi
mov r13d, ebp
mov rbp, r14
mov rsi, qword [rsp + 0x38]
je 0x140004845
cmp r15, 0x1000
jb 0x140004838
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14000496a
add r15, 0x27
mov rcx, rax
jmp 0x14000483d
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call fcn.14000e420
shl rdi, 4
add rdi, r12
add qword [rsp + 0x20], r12
mov r15, rdi
mov rdi, qword [rsp + 0x28]
jmp 0x1400046bb
mov rdi, qword [rsp + 0x28]
jmp 0x1400048a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.EnumerateInjectableThreads:_failed_to_get_threads_snapshot:__x_n
mov edx, eax
call fcn.140001cb0
mov r15, r12
mov rax, rsi
inc rax
cmp rax, 2
jb 0x140004891
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], 0
je 0x1400048fb
mov r14, qword [rsp + 0x48]
cmp r12, r15
jne 0x14000455f
mov rax, r12
cmp rax, r15
je 0x1400044c0
lea rcx, [rax + 0x10]
jmp 0x1400048c4
add rcx, 0x10
cmp rcx, r15
je 0x1400044c0
cmp dword [rcx], 0
je 0x1400048c0
cmp qword [rcx + 8], 0
je 0x1400048c0
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
add rax, 0x10
jmp 0x1400048c0
mov esi, 0x73
jmp 0x140004900
xor eax, eax
cmp ebx, 6
mov esi, 0x74
cmovge esi, eax
jmp 0x140004900
mov esi, 0x77
test r12, r12
mov rdx, qword [rsp + 0x20]
je 0x140004937
sub rdx, r12
cmp rdx, 0x1000
jb 0x14000492f
mov rax, qword [r12 - 8]
add r12, 0xfffffffffffffff8
sub r12, rax
cmp r12, 0x20
jae 0x14000496a
add rdx, 0x27
mov r12, rax
mov rcx, r12
call fcn.14000e420
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14000e5d0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400023e0
call fcn.1400432ac
int3