joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022c90
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, r8
jge 0x140022d40
mov r9, qword [rcx + 8]
mov rax, r8
mov rcx, qword [rcx]
sub rax, rdx
movsd xmm2, qword [0x1401112b0]
cmp rax, 4
jl 0x140022d24
lea r10, [r8 - 3]
nop dword [rax + rax]
mov rax, qword [r9 + 8]
movsd xmm0, qword [rax + rdx*8]
mov rax, qword [rcx]
xorps xmm0, xmm2
movsd qword [rax + rdx*8], xmm0
mov rax, qword [r9 + 8]
movsd xmm1, qword [rax + rdx*8 + 8]
mov rax, qword [rcx]
xorps xmm1, xmm2
movsd qword [rax + rdx*8 + 8], xmm1
mov rax, qword [r9 + 8]
movsd xmm0, qword [rax + rdx*8 + 0x10]
mov rax, qword [rcx]
xorps xmm0, xmm2
movsd qword [rax + rdx*8 + 0x10], xmm0
mov rax, qword [r9 + 8]
movsd xmm1, qword [rax + rdx*8 + 0x18]
mov rax, qword [rcx]
xorps xmm1, xmm2
movsd qword [rax + rdx*8 + 0x18], xmm1
add rdx, 4
cmp rdx, r10
jl 0x140022cc0
cmp rdx, r8
jge 0x140022d40
mov rax, qword [r9 + 8]
movsd xmm0, qword [rax + rdx*8]
mov rax, qword [rcx]
xorps xmm0, xmm2
movsd qword [rax + rdx*8], xmm0
inc rdx
cmp rdx, r8
jl 0x140022d24
ret

Function at 0x140037e30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140168fc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140037f03
cmp byte [rcx + 0x71], 0
je 0x140037f03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140037eff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140037ec4
sub eax, 1
je 0x140037ec8
cmp eax, 2
jne 0x140037eff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140108410
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140037ef6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140037eff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140037eac
xor al, al
jmp 0x140037eac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140108410
add rsp, 0x60
pop rbx
ret
Function at 0x1400383f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
sub rsp, 0x50
mov r8, qword [rdx + 8]
lea rsi, [rcx + 0x48]
mov rbx, rdx
mov rbp, rcx
test r8, r8
je 0x140038427
movabs rax, 0x1fffffffffffffff
cmp r8, rax
jg 0x1400385d4
mov qword [rsp + 0x30], r14
lea rdx, [r8*4]
mov r9d, 4
mov qword [rsp + 0x28], r15
mov rcx, rsi
call fcn.1400283c0
mov r14, qword [rbx + 8]
xor r15d, r15d
test r14, r14
jle 0x1400385b6
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
xor r13d, r13d
xor edi, edi
nop dword [rax + rax]
mov r8, qword [rbx]
lea rax, [r14 + r13]
mov r11, qword [rbp + 0x38]
mov rbx, qword [rbp + 0x30]
mov rbp, qword [rsi + 0x10]
movsxd r9, dword [r8 + rax*4]
mov eax, 0x55555556
movsxd r10, dword [r8 + r13*4]
lea ecx, [r9 + 1]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
movsxd rax, ecx
lea rcx, [r14*2]
imul rax, r11
add rcx, r13
add rax, r10
add rcx, r14
mov r12d, dword [rbx + rax*4]
lea rax, [r14*2]
movsxd rdx, dword [r8 + rcx*4]
add rax, r13
movsxd r8, dword [r8 + rax*4]
lea ecx, [rdx + 1]
mov rax, rdx
imul rax, r11
add rax, r8
mov r14d, dword [rbx + rax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
movsxd rax, ecx
imul rax, r11
add rax, r8
mov r8, qword [rsi]
mov eax, dword [rbx + rax*4]
mov dword [rsp + 0x80], eax
mov rax, r9
imul rax, r11
add rax, r10
mov eax, dword [rbx + rax*4]
mov dword [r8 + rdi*4], eax
cmp rbp, 1
jne 0x14003852d
mov rcx, rbp
mov dword [r8 + rdi*4 + 4], r12d
jmp 0x140038544
mov rdx, qword [rsi + 8]
mov eax, 2
add rdx, rdi
xor ecx, ecx
mov dword [r8 + rdx*4], r12d
cmp rbp, rax
jne 0x140038549
inc rcx
xor eax, eax
mov r9d, dword [rsp + 0x80]
lea rdx, [rax + 1]
imul rax, qword [rsi + 8]
mov rbx, qword [rsp + 0x78]
add rax, rcx
add rax, rdi
cmp rdx, rbp
mov dword [r8 + rax*4], r9d
lea rax, [rcx + 1]
cmovne rax, rcx
xor ecx, ecx
cmp rdx, rbp
mov rbp, qword [rsp + 0x70]
cmovne rcx, rdx
add rax, rdi
imul rcx, qword [rsi + 8]
inc r15d
inc r13
add rcx, rax
movsxd rdi, r15d
mov dword [r8 + rcx*4], r14d
mov r14, qword [rbx + 8]
cmp rdi, r14
jl 0x140038470
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
add rsp, 0x50
pop rsi
pop rbp
pop rbx
jmp fcn.140039460
call fcn.140015820
int3
Function at 0x140045310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140168fc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14004533d
xor eax, eax
jmp 0x1400454a6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14004537d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14004537d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14004549e
cmp qword [rdi + 0x80], 0
je 0x140045499
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1400453b7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400453e2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14004549e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140045451
sub eax, 1
je 0x140045451
cmp eax, 2
jne 0x140045499
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14004549e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14004547f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140045499
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14004549e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140108410
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004cc60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x14004cc91
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14004ccaf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x14004ccf9
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x14004cd71
mov rcx, rbp
call fcn.1400381f0
cmp rbx, 0xfff
jbe 0x14004cd51
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14004cd92
cmp rbx, rax
ja 0x14004cd20
test rdi, rdi
je 0x14004cd71
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x14004cd74
Function at 0x14004cda0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14004cdc8
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14004ce3c
test rax, rax
jle 0x14004ce1c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14004ce3c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004ce3c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x14007b600
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007b627
and rax, 0xfffffffffffffffe
jmp 0x14007b62c
call fcn.14007cbe0
mov r9, qword [rbx - 0x38]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14007d480

Function at 0x14007b650
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007b677
and rax, 0xfffffffffffffffe
jmp 0x14007b67c
call fcn.14007cbe0
mov r8, qword [rbx - 0x20]
mov rdx, rdi
mov r9, qword [rbx - 0x38]
mov rcx, rax
mov qword [rbx - 0x20], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14007d480

Function at 0x14007b6b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14007b6df
and rbx, 0xfffffffffffffffe
jmp 0x14007b6e7
call fcn.14007cbe0
mov rbx, rax
mov r9, qword [rdi]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.14007d480
mov rcx, qword [rdi]
mov rsi, rax
mov edx, dword [rcx]
cmp edx, 1
jne 0x14007b72c
movzx eax, byte [rbx + 0x4a]
movzx ecx, al
not cl
test dl, cl
jne 0x14007b721
test al, 2
je 0x14007b721
mov rax, qword [rdi]
mov dword [rax], 0
jmp 0x14007b72c
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.14007c0a0
mov rax, qword [rdi]
mov ecx, dword [rax]
test ecx, ecx
jne 0x14007b755
mov rcx, qword [rdi]
mov eax, dword [rcx + 0x80]
bt rax, 0x11
jb 0x14007b755
mov rdx, qword [rbx + 0x90]
mov rdx, qword [rdx - 0x38]
call fcn.14007c3a0
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14007b770
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x14016b930]
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007b790
and rax, 0xfffffffffffffffe
jmp 0x14007b795
call fcn.14007cbe0
lea rcx, [rbx - 0x40]
mov byte [rbx - 0xc], 4
cmp qword [rbx - 0x30], rax
jne 0x14007b7bb
mov rcx, qword [rax + 0x88]
mov qword [rbx - 8], rcx
mov qword [rax + 0x88], rbx
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14007c770

Function at 0x14007b7d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x14007b7fb
and rax, 0xfffffffffffffffe
mov rax, qword [rax + 0x30]
mov eax, dword [rax + 0x148]
shl rax, 2
add rsp, 0x28
ret
xor edx, edx
mov r8b, 1
lea ecx, [rdx - 1]
call fcn.14007cac0
mov rax, qword [rax + 0x30]
mov eax, dword [rax + 0x148]
shl rax, 2
add rsp, 0x28
ret
Function at 0x14007c200
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push r14
sub rsp, 0x28
cmp qword [rcx + 0x78], 0
mov rsi, rcx
jne 0x14007c347
xor eax, eax
mov r14d, 1
lock cmpxchg qword [rcx + 0x78], r14
jne 0x14007c347
mov ecx, dword [0x14016b930]
mov qword [rsp + 0x50], rbp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007c246
and rax, 0xfffffffffffffffe
jmp 0x14007c24b
call fcn.14007cbe0
mov rbp, qword [rax + 0x78]
test byte [rsi + 0x98], r14b
je 0x14007c336
mov qword [rsp + 0x48], rbx
xor eax, eax
mov ebx, r14d
lock cmpxchg byte [0x14016b918], r14b
je 0x14007c29e
cmp ebx, 0x10
jg 0x14007c28b
movsxd rax, ebx
test ebx, ebx
je 0x14007c287
nop dword [rax]
pause
sub rax, r14
jne 0x14007c280
add ebx, ebx
jmp 0x14007c291
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg byte [0x14016b918], r14b
jne 0x14007c271
cmp qword [rsi + 0x78], r14
jne 0x14007c329
mov qword [rsp + 0x20], rdi
lock inc qword [0x14016b910]
mov eax, dword [rbp + 0x24]
nop
test eax, eax
je 0x14007c2e7
lea rbx, [rbp + 0xf8]
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14007c2de
mov r9, r14
mov r8, rsi
mov edx, 0x78
call fcn.14007b820
add rbx, 8
sub rdi, r14
jne 0x14007c2c6
mov rbx, qword [rbp + 0xe8]
lea rdi, [rbp + 0xe0]
cmp rbx, rdi
je 0x14007c324
xor ebp, ebp
nop dword [rax]
test rbx, rbx
lea rcx, [rbx - 0x10]
mov r9, r14
mov r8, rsi
cmove rcx, rbp
mov edx, 0x78
call fcn.14007b820
mov rbx, qword [rbx + 8]
cmp rbx, rdi
jne 0x14007c300
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
nop
mov byte [0x14016b918], 0
mov rbp, qword [rsp + 0x50]
movzx eax, r14b
add rsp, 0x28
pop r14
pop rsi
ret
xor al, al
add rsp, 0x28
pop r14
pop rsi
ret

Function at 0x14007c940
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14007c957
mov dword [0x14016b930], eax
jmp 0x14007c968
lea rdx, str.TBB_failed_to_initialize_task_scheduler_TLS_n
mov ecx, 0xffffffff
call fcn.14007b0d0
call fcn.14007b0a0
mov byte [0x14016b969], al
call fcn.140068c10
mov byte [0x14016b96a], al
add rsp, 0x28
ret
Function at 0x14007cac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx esi, r8b
mov rdi, rdx
mov ebx, ecx
call fcn.14007cc80
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007cb96
mov rbx, rax
and rbx, 0xfffffffffffffffe
test al, 1
jne 0x14007cb78
mov eax, dword [0x14016b934]
test eax, eax
jne 0x14007cb12
call fcn.1400824b0
mov dword [0x14016b934], eax
mov edi, 1
xor r8d, r8d
mov edx, edi
mov ecx, eax
call fcn.140081160
mov rdx, rax
movzx r9d, dil
xor r8d, r8d
mov rcx, rbx
call fcn.140082f70
mov rax, qword [rbx + 0x28]
mov qword [rax], rbx
mov rax, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x30]
mov rax, qword [rax - 0x38]
mov qword [rcx + 0x140], rax
cmp qword [rbx + 0x30], 0
jne 0x14007cb66
movzx eax, byte [rbx + 0x4a]
not al
test dil, al
jne 0x14007cb66
xor edi, edi
mov ecx, dword [0x14016b930]
or rdi, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test sil, sil
jne 0x14007cb83
inc dword [rbx + 0x98]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp ebx, 0xffffffff
jne 0x14007cbb2
mov ebx, dword [0x14016b934]
test ebx, ebx
jne 0x14007cbb2
call fcn.1400824b0
mov ebx, eax
mov dword [0x14016b934], eax
mov r8, rdi
mov edx, 1
mov ecx, ebx
call fcn.140081160
mov rcx, rax
call fcn.14007da80
mov rbx, qword [rsp + 0x30]
mov byte [rax + 0x9c], sil
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14007cc20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rbx, rbx
je 0x14007cc60
cmp qword [rbx + 0x30], 0
jne 0x14007cc4c
movzx edx, byte [rbx + 0x4a]
not dl
test dl, 1
je 0x14007cc60
mov ecx, 1
or rcx, rbx
cmp rax, rcx
sete al
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
or rcx, rbx
cmp rax, rcx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x14007ce00
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rbx + 0x178]
test rax, rax
je 0x14007ce32
mov rcx, qword [rbx + 0x180]
add rsp, 0x20
pop rbx
jmp rax
add rsp, 0x20
pop rbx
ret

Function at 0x14007ce40
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rcx, rcx
je 0x14007ce66
cmp qword [rcx + 0x30], 0
jne 0x14007ce5f
movzx eax, byte [rcx + 0x4a]
not al
test al, 1
je 0x14007ce66
mov edx, 1
jmp 0x14007ce68
xor edx, edx
mov ecx, dword [0x14016b930]
or rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [0x14016b8c0]
test rax, rax
je 0x14007ceb1
lea rcx, [0x14007cec0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x178]
call rax
test eax, eax
je 0x14007ceb1
mov qword [rbx + 0x178], 0
add rsp, 0x30
pop rbx
ret
Function at 0x14007dd00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x14016b930]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x14007dd26
and rax, 0xfffffffffffffffe
jmp 0x14007dd33
xor edx, edx
mov r8b, 1
lea ecx, [rdx - 1]
call fcn.14007cac0
mov rcx, qword [rax + 0x30]
lea r9, [rax + 0x80]
mov r8, rbx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140083010
Function at 0x140080580
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x14016b930]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x1400805a6
and rax, 0xfffffffffffffffe
jmp 0x1400805b3
xor edx, edx
mov r8b, 1
lea ecx, [rdx - 1]
call fcn.14007cac0
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14007e380

Function at 0x1400805d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test al, 1
je 0x14008060d
and rdi, 0xfffffffffffffffe
jmp 0x14008061d
mov r8b, 1
xor edx, edx
lea ecx, [rdx - 1]
call fcn.14007cac0
mov rdi, rax
mov r15, qword [r14 - 0x38]
mov rbx, qword [rdi + 0x88]
mov esi, 1
xor r12d, r12d
test rbx, rbx
je 0x140080642
mov rcx, qword [rbx - 8]
mov qword [rdi + 0x88], rcx
jmp 0x140080685
cmp qword [rdi + 0xa8], r12
je 0x140080662
mov rbx, r12
xchg qword [rdi + 0xa8], rbx
mov rax, qword [rbx - 8]
mov qword [rdi + 0x88], rax
jmp 0x140080685
xor r8d, r8d
mov edx, pe_nt_image_headers64
mov rcx, rsi
call fcn.14007c700
lea rbx, [rax + 0x40]
mov qword [rbx - 0x30], rdi
mov qword [rbx - 8], r12
inc qword [rdi + 0xa0]
mov qword [rbx - 0x38], r15
mov qword [rbx - 0x28], rdi
mov qword [rbx - 0x18], r12
mov dword [rbx - 0x10], r12d
mov qword [rbx - 0x20], r12
mov dword [rbx - 0xc], 3
mov qword [rbx - 0x40], r12
mov byte [rbx - 0xb], sil
lea rax, vtable.tbb::empty_task.0
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
mov qword [r14 - 0x20], rbx
lea rdx, [r14 - 8]
cmp rdx, rbp
je 0x1400806e3
mov rax, rdx
nop dword [rax]
mov rax, qword [rax]
inc rsi
mov qword [rax - 0x20], rbx
add rax, 0xfffffffffffffff8
cmp rax, rbp
jne 0x1400806d0
lea rax, [rsi + 1]
mov qword [rbx - 0x18], rax
cmp rsi, 1
jle 0x1400806ff
mov r8, rbp
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.14007e380
mov rax, qword [rdi]
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x28]
nop
mov byte [rbx - 0xc], 4
mov rax, qword [rdi + 0x88]
mov qword [rbx - 8], rax
mov qword [rdi + 0x88], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x140080950
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x14016b930]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x140080976
and rax, 0xfffffffffffffffe
jmp 0x140080983
xor edx, edx
mov r8b, 1
lea ecx, [rdx - 1]
call fcn.14007cac0
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.tbb::internal::custom_scheduler_struct_tbb::internal::DefaultSchedulerTraits_.virtual_40