joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e85717b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1e85780c4]
mov rbx, rcx
test esi, esi
jle 0x1e85718e0
mov rax, qword [0x1e85780c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1e85717fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1e8571885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1e85717e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1e8571902
mov rax, qword [0x1e85780c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1e85780c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1e85718e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1e857187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1e8571890
add dword [0x1e85780c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1e85780c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1e857187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1e8571808
mov rax, qword [0x1e85780c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1e8571c80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1e8578100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1e85780e0]
test rbx, rbx
je 0x1e8571cdc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1e8571cd3
test rsi, rsi
je 0x1e8571cd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1e8571cb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1e8571ef0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1e8571f08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1e8571f10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1e8571f20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1e8571f6d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1e8571f64
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1e8571f6f
add rax, 0x28
cmp rax, r9
jne 0x1e8571f50
xor eax, eax
ret

Function at 0x1e8571f70
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1e8572000
mov rdx, qword [0x1e8574270]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1e8571fee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1e8571fee
cmp word [rax + 0x18], 0x20b
jne 0x1e8571fee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1e8572000
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1e8571fd9
add rbx, 0x28
cmp rbx, rdi
je 0x1e8572000
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1e8571fd0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1e8572010
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1e8574270]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1e8572030
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1e8572038
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1e8572030
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1e857208d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1e8572084
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1e8572030
add rax, 0x28
cmp rax, r9
jne 0x1e8572070
xor eax, eax
ret

Function at 0x1e8572090
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1e8574270]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1e85720af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1e85720b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1e85720af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1e85720d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1e8574270]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1e85720f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1e85720f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1e85720f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1e8572140
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1e8572137
test rcx, rcx
je 0x1e85720f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1e8572128
xor eax, eax
ret
Function at 0x1e8572150
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1e8574270]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1e857216f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1e8572178
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1e8572190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1e8574270]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1e85721b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1e85721b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1e85721b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1e85721b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1e8572204
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1e8572210
add rdx, 0x28
cmp r9, rdx
jne 0x1e85721f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1e8572220
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1e8574270]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1e8572242
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1e8572250
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1e8572242
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1e8572242
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1e8572242
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1e85722a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1e85722b8
add rdx, 0x28
cmp rdx, r10
jne 0x1e8572290
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1e85722c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1e85722d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1e85722ae
test ecx, ecx
jg 0x1e85722c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140151130]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140151140]
mov dword [rax], 1
mov rax, qword [0x140151150]
mov dword [rax], 1
mov rax, qword [0x1401510b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140151120]
mov dword [0x14017a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140151200]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1401511e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140151060]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140004630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x14011b1d0]
jmp sym.std::sys::thread_local::os::Storage_T_::get::h804ddb258aecb811

Function at 0x140004d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x14011b1d0]
jmp sym.std::sys::thread_local::os::Storage_T_::get::h804ddb258aecb811

Function at 0x140009ce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x14011b1d0]
jmp sym.std::sys::thread_local::os::Storage_T_::get::h804ddb258aecb811

Function at 0x14000c1d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rcx, qword [0x14011b1d0]
xor edx, edx
jmp sym.std::sys::thread_local::os::Storage_T_::get::h804ddb258aecb811

Function at 0x14000ec40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x14011b1d0]
jmp sym.std::sys::thread_local::os::Storage_T_::get::h804ddb258aecb811
Function at 0x14000f6a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14000f6e2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14000f6ea
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000f6fb
jmp 0x14000f712
xor r10d, r10d
jmp 0x14000f79d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14000f712
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14000f729
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14000f749
add r11, r8
jmp 0x14000f87b
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14000f812
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14000f7c0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14000f830
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14000f842
jmp 0x14000f85d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14000f85d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14000f877
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400104f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14001060c
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001064a
je 0x14001053b
test rdi, rdi
je 0x140010542
lea rcx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rax, [0x14011dea0]
cmovne rax, rcx
jmp 0x140010549
xor eax, eax
jmp 0x14001064a
lea rax, [0x14011dea0]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x68], esi
mov rax, qword [0x140151198]
movzx eax, byte [rax]
mov ecx, 0x50
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140010652
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.1401186ec
test rdi, rdi
je 0x140010647
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x140010634
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x140010626
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140010634
call sym.alloc::sync::Arc_T_A_::drop_slow::h6bc2dcf51041c7e8
jmp 0x140010634
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140010518
jmp 0x14001064a
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140010634
call sym.alloc::sync::Arc_T_A_::drop_slow::hb567cd0edf6b7657
mov edx, 0x50
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
ud2
Function at 0x1400106a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14001076f
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140010762
je 0x140010760
test rdi, rdi
je 0x1400106e9
movups xmm6, xmmword [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
jne 0x140010705
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
mov rax, qword [0x140151198]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140010789
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.1401186ec
test rdi, rdi
je 0x14001075b
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
jmp 0x140010762
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400106cd
jmp 0x140010762
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3

Function at 0x1400205b0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, dword [rcx + 0x10]
mov edx, 1
mov ecx, edi
call fcn.1401186ec
mov rbx, qword [rsi]
test rbx, rbx
je 0x140020602
dec qword [rbx]
jne 0x140020602
mov rax, qword [rbx + 0x10]
lock dec qword [rax]
jne 0x1400205e9
lea rcx, [rbx + 0x10]
call sym.alloc::sync::Arc_T_A_::drop_slow::h2c8f8b300200bad4
dec qword [rbx + 8]
jne 0x140020602
mov edx, 0x20
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, edi
xor edx, edx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401186ec

Function at 0x140020650
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov edi, dword [rcx + 0x48]
mov edx, 1
mov ecx, edi
call fcn.1401186ec
mov rax, qword [rsi + 8]
cmp rax, 2
je 0x140020699
lea rcx, [rsi + 0x10]
test rax, rax
je 0x14002068b
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140020699
call sym.alloc::sync::Arc_T_A_::drop_slow::h421df2cfc524c783
jmp 0x140020699
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140020699
call sym.alloc::sync::Arc_T_A_::drop_slow::h8990bffd31f0acf7
mov edx, 0x50
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, edi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401186ec
Function at 0x1400206e0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov edi, dword [rcx + 8]
mov edx, 1
mov ecx, edi
call fcn.1401186ec
mov rax, qword [rsi]
lock dec qword [rax]
jne 0x140020709
mov rcx, rsi
call sym.alloc::sync::Arc_T_A_::drop_slow::hbe55bf376359a372
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, edi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401186ec

Function at 0x140020750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14002085c
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140020852
je 0x14002079b
xor eax, eax
test rdi, rdi
je 0x1400207a2
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
cmovne eax, dword [rdi + 0x10]
cmovne rbx, qword [rdi + 8]
jmp 0x1400207a4
xor eax, eax
jmp 0x140020852
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], al
mov dword [rsp + 0x30], esi
mov rax, qword [0x140151198]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140020876
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov r14, rbx
mov rdx, rbx
call fcn.1401186ec
test rdi, rdi
je 0x14002084f
mov rsi, qword [rdi]
test rsi, rsi
je 0x14002083c
dec qword [rsi]
jne 0x14002083c
mov rax, qword [rsi + 0x10]
lock dec qword [rax]
jne 0x140020823
lea rcx, [rsi + 0x10]
call sym.alloc::sync::Arc_T_A_::drop_slow::h2c8f8b300200bad4
dec qword [rsi + 8]
jne 0x14002083c
mov edx, 0x20
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, r14
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002077a
jmp 0x140020852
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
ud2
Function at 0x1400208d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14002099f
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140020992
je 0x140020990
test rdi, rdi
je 0x140020919
movups xmm6, xmmword [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
jne 0x140020935
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
mov rax, qword [0x140151198]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400209b9
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.1401186ec
test rdi, rdi
je 0x14002098b
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
jmp 0x140020992
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400208fd
jmp 0x140020992
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3
Function at 0x1400209d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x140020aec
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140020b2a
je 0x140020a1b
test rdi, rdi
je 0x140020a22
lea rcx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rax, [0x14011f590]
cmovne rax, rcx
jmp 0x140020a29
xor eax, eax
jmp 0x140020b2a
lea rax, [0x14011f590]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x68], esi
mov rax, qword [0x140151198]
movzx eax, byte [rax]
mov ecx, 0x50
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140020b32
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.1401186ec
test rdi, rdi
je 0x140020b27
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x140020b14
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x140020b06
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140020b14
call sym.alloc::sync::Arc_T_A_::drop_slow::h421df2cfc524c783
jmp 0x140020b14
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400209f8
jmp 0x140020b2a
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140020b14
call sym.alloc::sync::Arc_T_A_::drop_slow::h8990bffd31f0acf7
mov edx, 0x50
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
ud2