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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000265d
xor eax, eax
jmp 0x1400027c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002697
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002697
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400027c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400027bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400026da
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002705
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027c1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140002774
sub eax, 1
je 0x140002774
cmp eax, 2
jne 0x1400027bc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400027a2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400027bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400027c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003430
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002a50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002b23
cmp byte [rcx + 0x71], 0
je 0x140002b23
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002b1f
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 0x140002ae4
sub eax, 1
je 0x140002ae8
cmp eax, 2
jne 0x140002b1f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003430
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002b16
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 0x140002b1f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002acc
xor al, al
jmp 0x140002acc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003430
add rsp, 0x60
pop rbx
ret

Function at 0x140003dc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003e0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003e0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003e0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003e0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140003e0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003e10
xor al, al
add rsp, 0x28
ret
Function at 0x1400032e0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x50], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + rax + 0x54], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x5c], 2
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
add rsp, 0x78
ret

Function at 0x140007660
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x14000774c
mov dword [rsp + 0x50], 0x238
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000772d
lea rdx, [0x140041330]
lea rcx, [rsp + 0x7c]
call fcn.14001f2d0
test eax, eax
je 0x1400076e9
lea rdx, [0x140041380]
lea rcx, [rsp + 0x7c]
call fcn.14001f2d0
test eax, eax
jne 0x14000771a
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000771a
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14000772d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400076bf
cmp qword [rsp + 0x30], 0
je 0x140007740
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000774e
mov rax, qword [rsp + 0x2b0]
cmp qword [rax + 0x88], 0
je 0x1400077d6
mov rax, qword [rsp + 0x2b0]
mov r9, qword [rax + 0x88]
lea r8, [0x1400413c0]
xor edx, edx
xor ecx, ecx
call fcn.140008fe0
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
cdqe
mov rcx, rax
call fcn.1400180e8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x2b0]
mov r8, qword [rax + 0x88]
lea rdx, [0x1400413d0]
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax + 0x98]
call fcn.140009130
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x2b0]
lea r8, [0x140008dc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x2b0]
mov qword [rcx + 0x58], rax
add rsp, 0x2a0
pop rdi
ret
Function at 0x140008a20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140008ab4
mov dword [rsp + 0x30], 0x238
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140008aa9
lea rdx, [0x1400413e0]
lea rcx, [rsp + 0x5c]
call fcn.14001f2d0
test eax, eax
jne 0x140008a96
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140008ae2
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140008a72
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x290]
mov r8, qword [rax + 0x80]
lea rdx, [0x140041400]
mov rcx, qword [rsp + 0x290]
call fcn.140008050
xor al, al
jmp 0x140008ae2
add rsp, 0x280
pop rdi
ret
Function at 0x140007340
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 0x1400073d0
cmp r11, r10
ja 0x140007446
cmp r10, rdx
ja 0x14000745a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400073d2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400073b0
jmp 0x140007434
ja 0x1400073da
mov r11, r10
cmp rax, r8
jne 0x140007374
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 0x140007410
mov rdi, r8
sub ecx, edx
jns 0x14000742b
jmp 0x140007436
cmp r8, rsi
je 0x14000746b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140007436
xor al, 1
cmp rdi, rsi
jne 0x1400073f0
jmp 0x140007436
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.1400052b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400048a0
ud2
lea rcx, [0x14009d653]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140004c30
ud2

Function at 0x1400091ed
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14004a018]
test ecx, ecx
je 0x140009206
dec ecx
add rsp, 0x28
jmp fcn.140047ea4
lea rcx, section..data
call fcn.140017a20
mov ecx, eax
jmp 0x1400091fd

Function at 0x140009216
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 0x140009237
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140047e9c
mov rcx, rax
call fcn.140017a20
mov ecx, eax
jmp 0x14000922a
Function at 0x14000d81d
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000d836
dec ecx
add rsp, 0x28
jmp fcn.140047ea4
mov rcx, rax
call fcn.140017a20
mov ecx, eax
jmp 0x14000d82d
Function at 0x140013170
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140004320
cmp rax, rcx
je 0x140013195
cmp rdx, 4
jae 0x140013198
xor r8d, r8d
xor eax, eax
jmp 0x140013230
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004b710]
movdqa xmm3, xmmword [0x14004b720]
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 0x1400131c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140013247
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140013230
ret
Function at 0x1400141e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001423b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001423b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140014256
cmp eax, 0x42
jne 0x14001423b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140014306
cmp byte [r9 + r11], 0x5f
jne 0x140014306
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001436e
mov rcx, rsi
xor edx, edx
call fcn.14000fbe0
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.14000fbe0
test al, al
jne 0x140014401
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014292
lea rdx, [0x140099d83]
mov r8d, 1
call fcn.140004910
test al, al
jne 0x140014401
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001424a
xor r14d, r14d
lea rbx, [0x14009a138]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400142c4
cmp byte [rax + rcx], 0x45
je 0x140014423
sub r14, 1
jb 0x1400142e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400142e9
mov r8d, 2
mov rdx, rbx
call fcn.140004910
test al, al
jne 0x140014401
mov rcx, rsi
call fcn.1400113e0
test al, al
jne 0x140014401
mov rax, qword [rsi]
test rax, rax
jne 0x1400142b0
jmp 0x14001424a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400143c8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140014362
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001434c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001433b
add dl, 0xa9
jmp 0x14001434a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400143c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400143c8
movzx edx, bl
add rax, rdx
jae 0x140014310
jmp 0x1400143c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400143c8
cmp rax, rcx
jae 0x1400143c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001441b
cmp qword [rsi + 0x20], 0
je 0x140014414
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.1400141e0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001424c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014409
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14009a0f8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140004910
test al, al
je 0x140014409
mov dil, 2
jmp 0x14001424a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001424a
mov dil, 1
xor r8d, r8d
jmp 0x1400143ca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001424a
Function at 0x140017680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x14004a0b0]
test ecx, ecx
je 0x140017773
dec ecx
call fcn.140047ea4
cmp rax, 1
jbe 0x1400176b4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400176b4
add rdi, 0x10
jmp 0x140017769
mov ecx, dword [0x14004a0b0]
test ecx, ecx
je 0x140017786
dec ecx
call fcn.140047ea4
cmp rax, 1
je 0x140017767
mov rsi, rax
test rax, rax
jne 0x140017737
mov qword [rsp + 0x30], 0
lea rax, [0x14004a098]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x1400a51a0]
mov ecx, 0x20
mov edx, 8
call fcn.140009520
test rax, rax
je 0x1400177a9
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x14004a0b0]
test ecx, ecx
je 0x140017799
dec ecx
mov rdx, rsi
call fcn.140047e9c
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x140017769
test rcx, rcx
je 0x140017769
lock dec qword [rcx]
jne 0x140017769
call fcn.1400177f0
jmp 0x140017769
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x14004a098]
call fcn.140017a20
mov ecx, eax
jmp 0x140017696
lea rcx, [0x14004a098]
call fcn.140017a20
mov ecx, eax
jmp 0x1400176c4
lea rcx, [0x14004a098]
call fcn.140017a20
mov ecx, eax
jmp 0x14001772f
mov ecx, 8
mov edx, 0x20
call fcn.1400030a0
ud2
Function at 0x140017a20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140017aa5
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 0x140017ae6
cmp dword [rsp + 0x2c], 0
je 0x140017aca
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140017b00
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400a5120]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400a5120], rsi
jne 0x140017a80
mov byte [0x1400a5118], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140017adc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140017b4c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140017acf
mov edi, dword [rsp + 0x28]
jmp 0x140017adc
mov edi, dword [rsi + 0x18]
jmp 0x140017ada
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.140017bb0
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_cc66ad468955717ab92600c770da8c1601a4ff33library_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.140003d90
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_cc66ad468955717ab92600c770da8c1601a4ff33library_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.140017c00
ud2
Function at 0x140017fb0
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 0x1400181d6
mov byte [rsp + 0x2e], 0
mov rax, qword [0x1400a50b0]
cmp rax, 3
jne 0x140018182
cmp byte [rsp + 0x2e], 0
jne 0x140018197
mov ecx, dword [0x14004a0d0]
test ecx, ecx
je 0x14001819d
dec ecx
call fcn.140047ea4
cmp rax, 1
jbe 0x14001800d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400180a9
mov ecx, dword [0x14004a0d0]
test ecx, ecx
je 0x1400181b0
dec ecx
call fcn.140047ea4
test rax, rax
je 0x14001805b
mov rsi, rax
cmp rax, 1
jne 0x1400180a3
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_cc66ad468955717ab92600c770da8c1601a4ff33library_std_src_threadlocal.rs
lea r9, [0x14009a9b8]
lea r8, [rsp + 0x2f]
mov edx, 0x46
call fcn.140005640
ud2
movzx eax, byte [0x1400a51a0]
mov ecx, 0x10
mov edx, 8
call fcn.140009520
test rax, rax
je 0x14001821b
mov rsi, rax
lea rax, [0x14004a0b8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14004a0d0]
test ecx, ecx
je 0x1400181c3
dec ecx
mov rdx, rsi
call fcn.140047e9c
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x1400a5078]
cmp rax, rsi
jne 0x1400180dd
mov eax, dword [0x1400a50a8]
inc eax
jne 0x1400180fd
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14009bad8]
mov edx, 0x26
call fcn.1400058b0
ud2
lea rcx, [0x1400a5070]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140018197
mov qword [0x1400a5078], rsi
mov eax, 1
mov dword [0x1400a50a8], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x1400a5080], 0
jne 0x1400181f0
mov qword [0x1400a5080], 0xffffffffffffffff
lea rcx, [0x1400a5088]
call fcn.140018310
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400a5098], xmm1
movups xmmword [0x1400a5088], xmm0
inc qword [0x1400a5080]
dec dword [0x1400a50a8]
jne 0x140018197
mov qword [0x1400a5078], 0
lea rcx, [0x1400a5070]
call fcn.140047ee4
jmp 0x140018197
lea rcx, [rsp + 0x2e]
call fcn.140018280
cmp byte [rsp + 0x2e], 0
je 0x140017fe5
add rsp, 0x50
pop rsi
ret
lea rcx, [0x14004a0b8]
call fcn.140017a20
mov ecx, eax
jmp 0x140017ff5
lea rcx, [0x14004a0b8]
call fcn.140017a20
mov ecx, eax
jmp 0x14001801d
lea rcx, [0x14004a0b8]
call fcn.140017a20
mov ecx, eax
jmp 0x14001809b
lea rcx, [0x14009d653]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140004c30
ud2
lea rax, [0x14009b608]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, [0x14009a9d8]
lea r8, [rsp + 0x2f]
mov edx, 0x10
call fcn.140005640
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400030a0
ud2
Function at 0x140019130
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14004a090]
test ecx, ecx
je 0x1400191ed
dec ecx
call fcn.140047ea4
cmp rax, 1
jbe 0x140019160
cmp qword [rax + 8], 0
je 0x140019160
add rax, 0x10
jmp 0x1400191e7
mov ecx, dword [0x14004a090]
test ecx, ecx
je 0x140019200
dec ecx
call fcn.140047ea4
cmp rax, 1
je 0x1400191e5
mov rsi, rax
test rax, rax
jne 0x1400191cb
movzx eax, byte [0x1400a51a0]
mov ecx, 0x20
mov edx, 8
call fcn.140009520
test rax, rax
je 0x140019223
mov rsi, rax
lea rax, [0x14004a078]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004a090]
test ecx, ecx
je 0x140019213
dec ecx
mov rdx, rsi
call fcn.140047e9c
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400191e7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14004a078]
call fcn.140017a20
mov ecx, eax
jmp 0x140019145
lea rcx, [0x14004a078]
call fcn.140017a20
mov ecx, eax
jmp 0x140019170
lea rcx, [0x14004a078]
call fcn.140017a20
mov ecx, eax
jmp 0x1400191c3
mov ecx, 8
mov edx, 0x20
call fcn.1400030a0
ud2