Function at 0x180008290
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x2a0
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor eax, eax
mov r12d, ecx
xor ebp, ebp
lea ecx, [rbp + 4]
xor edx, edx
mov dword [rsp + 0x38], 0x1c
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800082f6
xor eax, eax
jmp 0x180008558
lea rdx, [rsp + 0x38]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18000854d
mov qword [rsp + 0x2b0], rbx
mov qword [rsp + 0x2b8], rdi
nop dword [rax + rax]
cmp dword [rsp + 0x44], r12d
jne 0x180008521
mov edi, dword [rsp + 0x40]
lea rcx, [0x1800809b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180008521
lea rdx, str.NtQueryInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180008521
xor edx, edx
mov r8d, edi
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
je 0x180008521
lea rcx, [rsp + 0x30]
mov r9d, 8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 1]
mov rcx, rax
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x30], ebp
call rbx
test eax, eax
jne 0x180008521
mov rdi, qword [rsp + 0x58]
test edi, edi
je 0x180008521
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x70], bpl
call fcn.180055310
xor eax, eax
lea rdx, str._08X
lea rcx, [rsp + 0x60]
mov r8d, edi
mov byte [rsp + 0x60], bpl
mov qword [rsp + 0x61], rax
mov word [rsp + 0x69], ax
mov byte [rsp + 0x6b], al
call fcn.18005151c
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180051c00
lea rdx, str.6FC8
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180069618
test eax, eax
je 0x1800084ce
lea rdx, str.70C4
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180069618
test eax, eax
je 0x1800084ce
lea rdx, str.6F9C
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180069618
test eax, eax
je 0x1800084ce
lea rdx, str.6D90
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180069618
test eax, eax
je 0x1800084ce
lea rdx, str.6B6C
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180069618
test eax, eax
je 0x1800084ce
lea rdx, str.6E1C
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180069618
test eax, eax
je 0x1800084ce
lea rdx, str.6B58
lea rcx, [rsp + 0x70]
mov r8d, 4
call fcn.180069618
test eax, eax
jne 0x180008521
mov r8d, dword [rsp + 0x44]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180008521
lea rcx, [rsp + 0x181]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x180], bpl
call fcn.180055310
lea r8, [rsp + 0x180]
mov edx, edi
mov r9d, 0x104
mov rcx, rbx
call sub.PSAPI.DLL_GetMappedFileNameA
test eax, eax
je 0x180008538
lea rdx, [rsp + 0x38]
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180008320
jmp 0x18000853d
mov ebp, 1
mov rbx, qword [rsp + 0x2b0]
mov rdi, qword [rsp + 0x2b8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180050540
lea r11, [rsp + 0x2a0]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret