joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001550
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x230
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x228], rax
call sub.KERNEL32.dll_IsDebuggerPresent
test eax, eax
jne 0x1400015d1
call fcn.140001720
test eax, eax
jne 0x1400015d1
call fcn.140001320
call fcn.140001760
call fcn.1400015f0
call fcn.140001770
call fcn.140001690
mov ecx, 0x67
call fcn.140001220
lea rsi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call fcn.140003220
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.WUDFHost.exe
mov rcx, rsi
call fcn.140004f28
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140001800
xor eax, eax
add rsp, 0x230
pop rsi
ret

Function at 0x1400015f0
Capabilities:
Allocate or change rwx memory
Patch antimalware scan interface function

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, str.amsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14000166f
lea rdx, str.AmsiScanBuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000166f
mov rsi, rax
lea r9, [rsp + 0x24]
mov edx, 6
mov rcx, rax
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000166f
mov word [rsi + 4], 0xc380
mov dword [rsi], 0x70057b8
mov r8d, dword [rsp + 0x24]
lea r9, [rsp + 0x20]
mov edx, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001800
nop
add rsp, 0x30
pop rsi
ret

Function at 0x140001690
Capabilities:
Allocate or change rwx memory
Patch event tracing for windows function

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x14001c071]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001706
lea rdx, str.EtwEventWrite
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001706
mov rsi, rax
lea r9, [rsp + 0x24]
mov edx, 1
mov rcx, rax
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001706
mov byte [rsi], 0xc3
mov r8d, dword [rsp + 0x24]
lea r9, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001800
nop
add rsp, 0x30
pop rsi
ret

Function at 0x1400035e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003718
Function at 0x140002400
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002421
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000244e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002450
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400024a9
test ecx, ecx
jle 0x140002489
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400024a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400024a9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x1400024d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400024f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002501
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002524
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002526
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002562
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400025fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000259d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400025de
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400025fe
cmp rbx, rax
ja 0x1400025b0
test rbx, rbx
je 0x1400025fe
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002a20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002a4d
xor eax, eax
jmp 0x140002baa
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140002a78
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140002a78
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], dil
mov eax, edi
jmp 0x140002baa
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002b9d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140002abb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140002ae6
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 0x140002ba2
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 0x140002b55
sub eax, 1
je 0x140002b55
cmp eax, 2
jne 0x140002b9d
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 0x140002ba2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002b83
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 0x140002b9d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002ba2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003a90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002f90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003063
cmp byte [rcx + 0x71], 0
je 0x140003063
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000305f
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 0x140003024
sub eax, 1
je 0x140003028
cmp eax, 2
jne 0x14000305f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003a90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003056
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 0x14000305f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000300c
xor al, al
jmp 0x14000300c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003a90
add rsp, 0x60
pop rbx
ret

Function at 0x140004424
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140078e0c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140078e04
cmp dword [rcx + 0x3c], edx
jl 0x140078e04
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140078e04
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140078e0c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140030c10
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 0x140030ca0
cmp r11, r10
ja 0x140030d16
cmp r10, rdx
ja 0x140030d2a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140030ca2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140030c80
jmp 0x140030d04
ja 0x140030caa
mov r11, r10
cmp rax, r8
jne 0x140030c44
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 0x140030ce0
mov rdi, r8
sub ecx, edx
jns 0x140030cfb
jmp 0x140030d06
cmp r8, rsi
je 0x140030d3b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140030d06
xor al, 1
cmp rdi, rsi
jne 0x140030cc0
jmp 0x140030d06
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.14002e6f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002dc60
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002dff0
ud2
Function at 0x140038fe0
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 0x14003903b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14003903b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140039056
cmp eax, 0x42
jne 0x14003903b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140039106
cmp byte [r9 + r11], 0x5f
jne 0x140039106
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14003916e
mov rcx, rsi
xor edx, edx
call fcn.140034aa0
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.140034aa0
test al, al
jne 0x140039201
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140039092
lea rdx, [0x14007366b]
mov r8d, 1
call fcn.14002dcd0
test al, al
jne 0x140039201
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14003904a
xor r14d, r14d
lea rbx, [0x140073a20]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400390c4
cmp byte [rax + rcx], 0x45
je 0x140039223
sub r14, 1
jb 0x1400390e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400390e9
mov r8d, 2
mov rdx, rbx
call fcn.14002dcd0
test al, al
jne 0x140039201
mov rcx, rsi
call fcn.1400362a0
test al, al
jne 0x140039201
mov rax, qword [rsi]
test rax, rax
jne 0x1400390b0
jmp 0x14003904a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400391c8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140039162
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14003914c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14003913b
add dl, 0xa9
jmp 0x14003914a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400391c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400391c8
movzx edx, bl
add rax, rdx
jae 0x140039110
jmp 0x1400391c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400391c8
cmp rax, rcx
jae 0x1400391c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14003921b
cmp qword [rsi + 0x20], 0
je 0x140039214
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.140038fe0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14003904c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140039209
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400739e0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.14002dcd0
test al, al
je 0x140039209
mov dil, 2
jmp 0x14003904a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14003904a
mov dil, 1
xor r8d, r8d
jmp 0x1400391ca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14003904a
Function at 0x14003c520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x140066078]
test ecx, ecx
je 0x14003c613
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14003c554
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14003c554
add rdi, 0x10
jmp 0x14003c609
mov ecx, dword [0x140066078]
test ecx, ecx
je 0x14003c626
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14003c607
mov rsi, rax
test rax, rax
jne 0x14003c5d7
mov qword [rsp + 0x30], 0
lea rax, [0x140066060]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x1400801a8]
mov ecx, 0x20
mov edx, 8
call fcn.140004eb0
test rax, rax
je 0x14003c649
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 [0x140066078]
test ecx, ecx
je 0x14003c639
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
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 0x14003c609
test rcx, rcx
je 0x14003c609
lock dec qword [rcx]
jne 0x14003c609
call fcn.14003c690
jmp 0x14003c609
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x140066060]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003c536
lea rcx, [0x140066060]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003c564
lea rcx, [0x140066060]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003c5cf
mov ecx, 8
mov edx, 0x20
call fcn.140005400
ud2
Function at 0x14003c8c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14003c945
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 0x14003c986
cmp dword [rsp + 0x2c], 0
je 0x14003c96a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003c9a0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140080130]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140080130], rsi
jne 0x14003c920
mov byte [0x140080128], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14003c97c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14003c9ec
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14003c96f
mov edi, dword [rsp + 0x28]
jmp 0x14003c97c
mov edi, dword [rsi + 0x18]
jmp 0x14003c97a
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.14003ca50
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.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
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.14002d150
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14003caa0
ud2
Function at 0x14003cfc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140066098]
test ecx, ecx
je 0x14003d05f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14003cfe9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14003d04e
mov ecx, dword [0x140066098]
test ecx, ecx
je 0x14003d072
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14003d054
mov rsi, rax
test rax, rax
jne 0x14003d048
movzx eax, byte [0x1400801a8]
mov ecx, 0x10
mov edx, 8
call fcn.140004eb0
test rax, rax
je 0x14003d095
mov rsi, rax
lea rax, [0x140066080]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140066098]
test ecx, ecx
je 0x14003d085
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14003d056
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140066080]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003cfd5
lea rcx, [0x140066080]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003cff5
lea rcx, [0x140066080]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003d040
mov ecx, 8
mov edx, 0x10
call fcn.140005400
ud2
Function at 0x14003df20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140066058]
test ecx, ecx
je 0x14003dfdd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14003df50
cmp qword [rax + 8], 0
je 0x14003df50
add rax, 0x10
jmp 0x14003dfd7
mov ecx, dword [0x140066058]
test ecx, ecx
je 0x14003dff0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14003dfd5
mov rsi, rax
test rax, rax
jne 0x14003dfbb
movzx eax, byte [0x1400801a8]
mov ecx, 0x20
mov edx, 8
call fcn.140004eb0
test rax, rax
je 0x14003e013
mov rsi, rax
lea rax, [0x140066040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140066058]
test ecx, ecx
je 0x14003e003
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 0x14003dfd7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140066040]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003df35
lea rcx, [0x140066040]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003df60
lea rcx, [0x140066040]
call fcn.14003c8c0
mov ecx, eax
jmp 0x14003dfb3
mov ecx, 8
mov edx, 0x20
call fcn.140005400
ud2