joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002780
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 0x1400027cd
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 0x1400027c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400027cf
add rax, 0x28
cmp rax, r9
jne 0x1400027b0
xor eax, eax
ret

Function at 0x1400027d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002860
mov rdx, qword [0x140011d20]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000284e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000284e
cmp word [rax + 0x18], 0x20b
jne 0x14000284e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002860
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002839
add rbx, 0x28
cmp rbx, rdi
je 0x140002860
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002830
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 0x140002870
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140011d20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002890
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002898
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002890
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400028ed
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 0x1400028e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002890
add rax, 0x28
cmp rax, r9
jne 0x1400028d0
xor eax, eax
ret

Function at 0x1400028f0
Capabilities:
Parse pe header

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

Function at 0x140002930
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140011d20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002950
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002958
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002950
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400029a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002997
test rcx, rcx
je 0x140002950
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002988
xor eax, eax
ret
Function at 0x1400029b0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140011d20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a10
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002a10
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 0x140002a64
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002a70
add rdx, 0x28
cmp r9, rdx
jne 0x140002a50
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140011d20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002aa2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002ab0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002aa2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002aa2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002aa2
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 0x140002b05
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002b18
add rdx, 0x28
cmp rdx, r10
jne 0x140002af0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002b27
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002b37
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002b0e
test ecx, ecx
jg 0x140002b20
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140007690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140007720
cmp r11, r10
ja 0x140007796
cmp r10, rdx
ja 0x1400077aa
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140007722
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140007700
jmp 0x140007784
ja 0x14000772a
mov r11, r10
cmp rax, r8
jne 0x1400076c4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140007760
mov rdi, r8
sub ecx, edx
jns 0x14000777b
jmp 0x140007786
cmp r8, rsi
je 0x1400077bb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140007786
xor al, 1
cmp rdi, rsi
jne 0x140007740
jmp 0x140007786
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400053d0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400049a0
ud2
lea rcx, [0x140052ec3]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140004d40
ud2

Function at 0x1400090f6
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140048028]
test ecx, ecx
je 0x14000910f
dec ecx
add rsp, 0x28
jmp sub.KERNEL32.dll_TlsGetValue
lea rcx, [0x140048010]
call fcn.1400178d0
mov ecx, eax
jmp 0x140009106

Function at 0x14000911f
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140009140
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.KERNEL32.dll_TlsSetValue
mov rcx, rax
call fcn.1400178d0
mov ecx, eax
jmp 0x140009133
Function at 0x14000da38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000da51
dec ecx
add rsp, 0x28
jmp sub.KERNEL32.dll_TlsGetValue
mov rcx, rax
call fcn.1400178d0
mov ecx, eax
jmp 0x14000da48
Function at 0x14000f9db
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.14000faca
cmp eax, 0x1edab0ed
jne 0x14000fa03
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x14000fa9b
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x14000fa9d
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rax, rcx
mov rdx, rax
inc rax
cmp byte [rdx], 0
jne 0x14000fa68
lea r15, [rbp + 1]
sub rdx, rcx
call fcn.14000faca
cmp eax, esi
jne 0x14000fa56
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x14000fab9
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x14000fa9d
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._usr_local_cargo_git_checkouts_rust_syscalls_68f3d3f4128be087_162451a_src_syscall_resolve.rs
mov rdx, rdi
call fcn.1400040c0
ud2

Function at 0x14000faca
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x14000fb06
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x14000fae5
inc r8
jmp 0x14000fad2
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x14000fae0
ret

Function at 0x140013370
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140004530
cmp rax, rcx
je 0x140013395
cmp rdx, 4
jae 0x140013398
xor eax, eax
xor r8d, r8d
jmp 0x140013430
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400495e0]
movdqa xmm3, xmmword [0x1400495f0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400133c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140013447
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140013430
ret
Function at 0x1400143c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x14001441b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001441b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140014436
cmp eax, 0x42
jne 0x14001441b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400144e6
cmp byte [r8 + r11], 0x5f
jne 0x1400144e6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001454e
mov rcx, rsi
xor edx, edx
call fcn.14000fdb0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14000fdb0
test al, al
jne 0x1400145e1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014472
lea rdx, [0x14004f5fb]
mov r8d, 1
call fcn.140004a20
test al, al
jne 0x1400145e1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001442a
xor r14d, r14d
lea rbx, [0x14004f969]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400144a4
cmp byte [rax + rcx], 0x45
je 0x140014603
sub r14, 1
jb 0x1400144c9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400144c9
mov r8d, 2
mov rdx, rbx
call fcn.140004a20
test al, al
jne 0x1400145e1
mov rcx, rsi
call fcn.1400115e0
test al, al
jne 0x1400145e1
mov rax, qword [rsi]
test rax, rax
jne 0x140014490
jmp 0x14001442a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x1400145a8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140014542
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001452c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001451b
add dl, 0xa9
jmp 0x14001452a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400145a8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400145a8
movzx edx, bl
add rax, rdx
jae 0x1400144f0
jmp 0x1400145a8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400145a8
cmp rax, rcx
jae 0x1400145a5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400145fb
cmp qword [rsi + 0x20], 0
je 0x1400145f4
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400143c0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001442c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400145e9
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x14004f948]
test r9b, r9b
cmovne rdx, rax
call fcn.140004a20
test al, al
je 0x1400145e9
mov dil, 2
jmp 0x14001442a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001442a
mov dil, 1
xor r9d, r9d
jmp 0x1400145aa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001442a
Function at 0x1400178d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140017955
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140017996
cmp dword [rsp + 0x2c], 0
je 0x14001797a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400179b0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140059118]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140059118], rsi
jne 0x140017930
mov byte [0x140059110], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001798c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400179fc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001797f
mov edi, dword [rsp + 0x28]
jmp 0x14001798c
mov edi, dword [rsi + 0x18]
jmp 0x14001798a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140017fe0
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140004000
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140018030
ud2
Function at 0x140017eb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400480c0]
test ecx, ecx
je 0x140017f90
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140017ee4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140017ee4
add rdi, 0x10
jmp 0x140017f86
mov ecx, dword [0x1400480c0]
test ecx, ecx
je 0x140017fa3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140017f84
mov rsi, rax
test rax, rax
jne 0x140017f53
movzx eax, byte [0x140059168]
mov ecx, 0x18
mov edx, 8
call fcn.140002ec0
test rax, rax
je 0x140017fc6
mov rsi, rax
lea rax, [0x1400480a8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400480c0]
test ecx, ecx
je 0x140017fb6
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140017f86
test rcx, rcx
je 0x140017f86
lock dec qword [rcx]
jne 0x140017f86
call fcn.140017880
jmp 0x140017f86
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400480a8]
call fcn.1400178d0
mov ecx, eax
jmp 0x140017ec6
lea rcx, [0x1400480a8]
call fcn.1400178d0
mov ecx, eax
jmp 0x140017ef4
lea rcx, [0x1400480a8]
call fcn.1400178d0
mov ecx, eax
jmp 0x140017f4b
mov ecx, 8
mov edx, 0x18
call fcn.1400034a0
ud2
Function at 0x1400182c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140018517
mov byte [rsp + 0x2f], 0
mov rax, qword [0x1400590b8]
cmp rax, 3
jne 0x1400184c3
cmp byte [rsp + 0x2f], 0
jne 0x1400184d8
mov ecx, dword [0x1400480e0]
test ecx, ecx
je 0x1400184de
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001831d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400183b9
mov ecx, dword [0x1400480e0]
test ecx, ecx
je 0x1400184f1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001836b
mov rsi, rax
cmp rax, 1
jne 0x1400183b3
lea rax, str.library_std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
lea r9, [0x1400501e0]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.140005c50
ud2
movzx eax, byte [0x140059168]
mov ecx, 0x10
mov edx, 8
call fcn.140002ec0
test rax, rax
je 0x140018538
mov rsi, rax
lea rax, [0x1400480c8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400480e0]
test ecx, ecx
je 0x140018504
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140059080]
cmp rax, rsi
jne 0x1400183ed
mov eax, dword [0x1400590b0]
inc eax
jne 0x14001840d
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x140051498]
mov edx, 0x26
call fcn.140005eb0
ud2
lea rcx, [0x140059078]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1400184d8
mov qword [0x140059080], rsi
mov eax, 1
mov dword [0x1400590b0], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x140059088], 0
jne 0x140018531
mov qword [0x140059088], 0xffffffffffffffff
cmp byte [0x1400590a8], 0
jne 0x140018468
lea rcx, [0x140059090]
call fcn.140018670
test rax, rax
je 0x140018468
mov rcx, rax
call fcn.140017100
cmp qword [0x140059098], 0
je 0x140018483
mov rcx, qword [0x140059090]
mov edx, 1
call fcn.140002f50
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400590a0], xmm1
movups xmmword [0x140059090], xmm0
inc qword [0x140059088]
dec dword [0x1400590b0]
jne 0x1400184d8
mov qword [0x140059080], 0
lea rcx, [0x140059078]
call fcn.14004646c
jmp 0x1400184d8
lea rcx, [rsp + 0x2f]
call fcn.140018600
cmp byte [rsp + 0x2f], 0
je 0x1400182f5
add rsp, 0x50
pop rsi
ret
lea rcx, [0x1400480c8]
call fcn.1400178d0
mov ecx, eax
jmp 0x140018305
lea rcx, [0x1400480c8]
call fcn.1400178d0
mov ecx, eax
jmp 0x14001832d
lea rcx, [0x1400480c8]
call fcn.1400178d0
mov ecx, eax
jmp 0x1400183ab
lea rcx, [0x140052ec3]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140004d40
ud2
call fcn.140005470
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400034a0
ud2
Function at 0x140019190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400480a0]
test ecx, ecx
je 0x14001924d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400191c0
cmp qword [rax + 8], 0
je 0x1400191c0
add rax, 0x10
jmp 0x140019247
mov ecx, dword [0x1400480a0]
test ecx, ecx
je 0x140019260
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140019245
mov rsi, rax
test rax, rax
jne 0x14001922b
movzx eax, byte [0x140059168]
mov ecx, 0x20
mov edx, 8
call fcn.140002ec0
test rax, rax
je 0x140019283
mov rsi, rax
lea rax, [0x140048088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400480a0]
test ecx, ecx
je 0x140019273
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140019247
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140048088]
call fcn.1400178d0
mov ecx, eax
jmp 0x1400191a5
lea rcx, [0x140048088]
call fcn.1400178d0
mov ecx, eax
jmp 0x1400191d0
lea rcx, [0x140048088]
call fcn.1400178d0
mov ecx, eax
jmp 0x140019223
mov ecx, 8
mov edx, 0x20
call fcn.1400034a0
ud2
Function at 0x140034f00
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
lea rcx, [rsp + 0x98]
call fcn.1400196f0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003506b
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140034fc0
jmp 0x140034f9f
jae 0x14003507e
cmp r8, 0x201
jae 0x140034fc0
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x140035007
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140034fe7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140019af0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140035032
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140035142
mov r8d, r15d
cmp r12, r8
jne 0x140034f90
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140035162
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x140034f9f
jmp 0x140034fc0
mov rcx, qword [rsp + 0xa0]
call fcn.140017100
mov byte [rsi + 0x18], 2
jmp 0x1400350fd
cmp rdi, r8
jb 0x14003517c
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.14001adf0
mov rdi, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
movzx esi, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x23], eax
test rbx, rbx
je 0x1400350cf
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140002f50
cmp sil, 2
jne 0x140035112
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov rcx, rdi
call fcn.140017100
cmp qword [rsp + 0x40], 0
je 0x1400350fd
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140002f50
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x38]
mov qword [rdx], rdi
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], sil
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
cmp qword [rsp + 0x40], 0
jne 0x1400350ee
jmp 0x1400350fd
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov sil, 2
test rbx, rbx
jne 0x1400350c0
jmp 0x1400350cf
lea rcx, str.internal_error:_entered_unreachable_code_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_core_1.12.1_src_job.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140004d40
jmp 0x140035191
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.1400049a0
ud2