joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004af70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18004afb3
xor eax, eax
jmp 0x18004b1b6
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18004afed
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18004afed
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x18004b1b6
cmp qword [rbx + 0x90], 0
jne 0x18004afff
or eax, 0xffffffff
jmp 0x18004b1b6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x80]
cmp qword [r8], rax
jne 0x18004b029
mov rdx, qword [rbx + 0x70]
mov rcx, qword [rbx + 0x68]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x78], 0
jne 0x18004b04d
movsx ecx, sil
mov rdx, qword [rbx + 0x90]
call fcn.180095330
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x18004b1b4
mov byte [rbp - 1], sil
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], r15b
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.180018fd0
nop
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
nop word [rax + rax]
lea rdx, [rbp + 7]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp + 7]
cmovae r8, r10
mov rcx, qword [rbx + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 1]
lea rdx, [rbx + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x18004b191
cmp eax, 1
jg 0x18004b172
lea rax, [rbp + 7]
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, r10
mov rdi, qword [rbp - 9]
sub rdi, rax
je 0x18004b139
lea rcx, [rbp + 7]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rbx + 0x90]
mov r8, rdi
mov edx, 1
call fcn.180095dbc
cmp rdi, rax
jne 0x18004b191
mov r9, qword [rbp + 0x1f]
mov r10, qword [rbp + 7]
mov byte [rbx + 0x81], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x18004b16e
test rdi, rdi
jne 0x18004b090
cmp qword [rbp + 0x17], 0x20
jae 0x18004b191
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.18000ace0
jmp 0x18004b07d
mov ebx, esi
jmp 0x18004b194
cmp eax, 3
jne 0x18004b191
movsx ecx, byte [rbp - 1]
mov rdx, qword [rbx + 0x90]
call fcn.180095330
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x18004b194
or ebx, 0xffffffff
cmp qword [rbp + 0x1f], 0x10
jb 0x18004b1a4
mov rcx, qword [rbp + 7]
call fcn.180071ef0
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], 0
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180093670
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004bed0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x18004c047
cmp byte [rcx + 0x81], 0
je 0x18004c047
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x18004bf2c
xor al, al
jmp 0x18004c049
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.180018fd0
nop
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x18004bfa0
dec eax
jne 0x18004c017
jmp 0x18004bfa7
mov byte [rdi + 0x81], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x18004bff1
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.180095dbc
cmp rbx, rax
jne 0x18004c01c
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x81], 0
je 0x18004c020
test rbx, rbx
jne 0x18004bf60
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.18000ace0
jmp 0x18004bf58
sub eax, 2
je 0x18004c020
xor bl, bl
jmp 0x18004c022
mov bl, 1
cmp qword [rbp - 0x18], 0x10
jb 0x18004c032
mov rcx, qword [rbp - 0x30]
call fcn.180071ef0
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x18004c049
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180093670
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800518b0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 0
call fcn.1800517c0
mov dword [rsp + 0x68], 0
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180051720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov rcx, rdi
call fcn.1800635f0
mov dword [rsp + 0x30], 1
mov rax, qword [rdi]
test rax, rax
je 0x180051976
cmp qword [rax], 0
je 0x180051976
lea rbx, [0x18013d230]
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, rdi
call fcn.180051be0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
jmp 0x1800519a3
lea rax, str.wtf__cannot_create_the_thread
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1800936e0
lea rdx, [0x18012a800]
lea rcx, [rsp + 0x50]
call fcn.180099a38
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180093670
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x1800519d0
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.1800517c0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.180051840
nop
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x50], rdi
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rbx
cmp rbx, rdi
je 0x180051a56
mov rcx, qword [rbx]
test rcx, rcx
je 0x180051a3d
mov rcx, qword [rcx]
mov edx, 0x29a
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rbx, 0x10
cmp rbx, rdi
jne 0x180051a32
mov qword [rsp + 0x48], rbx
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x180051ac3
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
je 0x180051aa9
nop
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180051a96
lock dec dword [rbx + 8]
jne 0x180051a96
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x180051a96
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
add rdi, 0x10
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jne 0x180051a70
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180071ef0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180093670
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180056310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x18013f3f0]
lea rcx, [rsp + 0x20]
lea edx, [rax + 8]
mov r9d, 0x453a
mov dword [rsp + 0x20], 0x455b454d
mov dword [rsp + 0x24], 0x455b455b
mov dword [rsp + 0x28], 0x4552455d
mov qword [rsp + 0x2c], 0x453a4549
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.180048f00
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180093670
add rsp, 0x130
pop rbp
ret
Function at 0x180073670
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180073779
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180073770
cmp dword [rsp + 0x20], 0x10
jb 0x180073752
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180073752
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180073752
mov r8, qword [rbx]
test r8, r8
jne 0x180073713
mov rcx, qword [0x18013d060]
xor edx, edx
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180073770
jmp 0x180073742
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180073742
mov rcx, qword [0x18013d060]
lea r9d, [rax + rax]
xor edx, edx
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180073770
mov ecx, dword [rbx + 8]
mov qword [rbx], rax
add ecx, ecx
mov dword [rbx + 8], ecx
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rcx + rdx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800736c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180093670
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1800737a0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov ebp, r8d
mov r14d, edx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov rdi, rcx
call fcn.180073670
cmp qword [rdi], rbx
je 0x180073828
cmp dword [rdi + 0xc], ebx
jbe 0x180073828
mov qword [rsp + 0x30], rsi
nop dword [rax + rax]
mov rax, qword [rdi]
mov ecx, ebx
xor edx, edx
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18007381c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800734a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800737e0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180073840
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
cmp dword [rcx + 0xc], ebx
jbe 0x180073898
mov qword [rsp + 0x30], rdi
nop dword [rax]
mov rax, qword [rsi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18007388c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rsi + 0xc]
jb 0x180073860
mov rdi, qword [rsp + 0x30]
mov r8, qword [rsi]
mov rcx, qword [0x18013d060]
xor edx, edx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x1800738c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
mov ebp, 5
imul rbx, rax, 0x38
add rbx, qword [0x180140850]
test byte [rbx + 0x20], 1
mov rdi, qword [rbx]
je 0x180073908
sub rdi, rbp
mov ebp, 7
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18007392a
mov eax, 0xa
jmp 0x18007399d
test esi, esi
je 0x18007394c
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18007396f
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18007396f
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180073968
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18007396f
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [rbx + 0x20], 0xfffffff9
and esi, 1
lea eax, [rsi + rsi]
mov ecx, esi
and ecx, 0xfffffffd
or ecx, eax
add ecx, ecx
or dword [rbx + 0x20], ecx
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180093670
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800739c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x28], rsp
mov r15d, ecx
xor ecx, ecx
mov edi, ecx
cmp edi, dword [0x18014085c]
jae 0x180073b5c
mov eax, edi
imul rdx, rax, 0x38
mov rax, qword [0x180140850]
mov r8d, dword [rdx + rax + 0x20]
shl r8d, 0x1e
sar r8d, 0x1f
cmp r8d, r15d
je 0x180073b55
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.180073670
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x180073a98
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
je 0x180073a9d
mov rbx, r13
mov r14d, r12d
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180073a8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor r8d, r8d
test r15d, r15d
setne r8b
or edx, 0xffffffff
mov rcx, rsi
call fcn.1800734a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
dec r14
jne 0x180073a50
jmp 0x180073a9d
mov r12d, dword [rsp + 0x3c]
nop dword [rax]
cmp edi, dword [0x18014085c]
jae 0x180073af7
mov eax, edi
imul rcx, rax, 0x38
mov rax, qword [0x180140850]
mov edx, dword [rcx + rax + 0x20]
shl edx, 0x1e
sar edx, 0x1f
cmp edx, r15d
je 0x180073aef
mov edx, r15d
mov ecx, edi
call fcn.1800738c0
mov dword [rsp + 0x78], eax
test eax, eax
je 0x180073aef
lea rdx, [0x180073ae9]
mov rcx, qword [rsp + 0x28]
call fcn.1800a7660
nop
nop
mov eax, dword [rsp + 0x78]
jmp 0x180073b5e
inc edi
mov dword [rsp + 0x20], edi
jmp 0x180073aa0
test r13, r13
je 0x180073b53
test r12d, r12d
je 0x180073b41
mov rbx, r13
mov r14d, r12d
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180073b38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
dec r14
jne 0x180073b10
mov r8, r13
xor edx, edx
mov rcx, qword [0x18013d060]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
inc edi
jmp 0x1800739e3
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800777a0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800777f2
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x20], eax
call fcn.1800b72e0
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
jne 0x180077807
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180093670
add rsp, 0x40
pop rdi
ret
lea rdx, [0x1800e7870]
lea rcx, [rsp + 0x20]
call fcn.1800775b0
int3

Function at 0x180077ad0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
xor r8d, r8d
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x18013e16c], eax
test eax, eax
je 0x180077b47
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180093670
add rsp, 0x40
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.180004a70]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180093670
add rsp, 0x40
pop rbx
ret
Function at 0x180077b80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea edx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsi + 8], rax
test rax, rax
jne 0x180077bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
call fcn.1800b72e0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x180077d04
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x180077c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
call fcn.1800b72e0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x180077d16
xor ecx, ecx
lea rax, [rsp + 0x40]
lea r8, [0x180077d40]
mov qword [rsp + 0x28], rax
mov r9, rsi
xor edx, edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x40], ecx
call fcn.180096e34
mov qword [rbp + 8], rax
test rax, rax
jne 0x180077ccd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x180077ca0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x180077caf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
call fcn.1800b72e0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x180077d28
test rdi, rdi
je 0x180077ce7
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180093670
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.1800775b0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.1800775b0
int3
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.1800775b0
int3
Function at 0x180078200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x18007825c
call fcn.180078310
mov dword [rsp + 0x20], ebx
call fcn.1800b72e0
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x1800782f1
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x18013f600]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x18013f600]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.1800784a0
test rax, rax
je 0x1800782cd
cmp rbx, 0xffffffffffffffff
je 0x1800782bd
inc rbx
mov r8, rsi
mov rcx, rdi
call fcn.1800784a0
test rax, rax
jne 0x1800782b4
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x18013f600]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800782ee
call fcn.180071ef0
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180093670
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret