joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140111fc0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140111fd0]
mov dword [rax], 1
mov rax, qword [0x140111fe0]
mov dword [rax], 1
mov rax, qword [0x140111f70]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x140111fb0]
mov dword [0x14012500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140112090]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140112070]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140111f20]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e

Function at 0x140004c10
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x140004c76
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
jmp 0x140004c38
add rdi, rbx
sub rsi, rbx
je 0x140004c76
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x140004c30
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140004c30
and ebp, 0x7fffffff
jmp 0x140004c78
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140006110
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
mov rcx, rdx
pop rbp
jmp sym.std::panicking::default_hook::h827d5d1030478926

Function at 0x140006120
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
mov rcx, rdx
pop rbp
jmp sym.std::panicking::default_hook::h827d5d1030478926
Function at 0x1400062d0
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x140006333
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x14000633f
lea rax, [0x14009e124]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.std_src_synconce.rs
call sym.core::option::unwrap_failed::h3d6bb5ee813e802d
mov qword [rbp + 0x138], 0
lea rdx, [0x1400f4970]
lea r9, str.std_src_syspalwindows_net.rs
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::haac88db7d116d490
int3

Function at 0x1400063d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
mov rcx, rdx
pop rbp
jmp sym.std::panicking::default_hook::h827d5d1030478926
Function at 0x140027c60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov rsi, rdx
mov rdi, rcx
lea rdx, [sym.std::sys::pal::windows::stack_overflow::vectored_handler::h45649fc1c45c8bd5]
xor ecx, ecx
call sub.kernel32.dll_AddVectoredExceptionHandler
mov dword [rbp - 0x28], 0x5000
lea rcx, [rbp - 0x28]
call sub.kernel32.dll_SetThreadStackGuarantee
call sub.kernel32.dll_GetCurrentThread
mov r8, qword [sym.std::sys::pal::windows::c::SetThreadDescription::load::hec968be87c0181ae]
lea rdx, [0x1400f55d8]
mov rcx, rax
call r8
mov ecx, dword [0x140125190]
test ecx, ecx
je 0x140027cca
dec ecx
call fcn.14009e504
test rax, rax
jne 0x140027ce7
jmp 0x140027ce2
lea rcx, [0x140125178]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
test rax, rax
jne 0x140027ce7
call sym.std::thread::current::id::get_or_init::__u7b__u7b_closure_u7d__u7d_::hdf6afb8a3103c156
mov byte [0x140125050], 0
lea rdx, [0x140125048]
mov qword [0x140125048], rax
xor ecx, ecx
call sym.std::thread::current::set_current::h4b37d0ffe280e315
cmp rax, 2
jne 0x140027d5f
mov rcx, rdi
call qword [rsi + 0x28]
movsxd rsi, eax
mov eax, dword [0x140125038]
cmp eax, 3
je 0x140027d4e
mov byte [rbp + 0x18], 1
lea rax, [rbp + 0x18]
mov qword [rbp - 0x58], rax
lea rax, str.std_src_rt.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140125038]
lea r9, [0x1400f3188]
lea r8, [rbp - 0x58]
xor edx, edx
call sym.std::sys::sync::once::futex::Once::call::he6dfea8352ba8c34
mov rax, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rbx, rax
mov qword [rbp + 8], rax
lea rsi, [rbp + 0x10]
mov r14, rdx
mov qword [rbp + 0x10], rdx
mov dword [rbp + 0x20], 0
mov byte [rbp + 0x24], 0
lea rax, str.fatal_runtime_error:_code_running_before_main_must_not_use_thread::current_n
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
lea rax, [rbp + 0x38]
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
lea rcx, [rbp + 0x20]
lea rdx, [rbp - 0x28]
call sym.std::io::Write::write_fmt::h069e2b6c84d9098a
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::hf1580008dcce4082
mov ecx, 7
int 0x29
ud2

Function at 0x1400280d0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x140125138]
nop word cs:[rax + rax]
cmp rax, 0xffffffffffffffff
je 0x140028133
lea rsi, [rax + 1]
lock cmpxchg qword [0x140125138], rsi
jne 0x1400280f0
mov ecx, dword [0x140125190]
test ecx, ecx
je 0x140028123
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140125178]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
jmp 0x140028111
call sym.std::thread::ThreadId::new::exhausted::h20ed69a364812dc6
int3
Function at 0x140028140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 0x10], rcx
lea rsi, [rbp - 8]
mov qword [rbp - 8], rdx
mov ecx, dword [0x1401251b0]
test ecx, ecx
je 0x14002817b
dec ecx
call fcn.14009e504
test rax, rax
je 0x140028193
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
jmp 0x140028240
lea rcx, [0x140125198]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
test rax, rax
jne 0x14002816e
mov ecx, dword [0x140125190]
test ecx, ecx
je 0x1400281c3
dec ecx
call fcn.14009e504
test rax, rax
je 0x1400281db
mov rcx, rax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov r8, rax
shl r8, 4
cmp qword [rdx + r8], rcx
je 0x140028217
jmp 0x140028240
lea rcx, [0x140125178]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
test rax, rax
jne 0x1400281a9
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
shl rax, 4
mov rdi, qword [rcx + rax]
mov ecx, dword [0x140125190]
test ecx, ecx
je 0x1400281f9
dec ecx
jmp 0x140028207
lea rcx, [0x140125178]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, qword [sym.std::sys::thread_local::guard::windows::tls_callback::h9a86caf1dc49f54d]
and eax, 1
shl eax, 4
add rax, rdx
mov ecx, dword [0x1401251b0]
test ecx, ecx
je 0x140028248
dec ecx
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
mov eax, 2
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140125198]
mov rsi, rax
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
mov rax, rsi
jmp 0x140028233

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1401251b0]
test ecx, ecx
je 0x1400282de
dec ecx
call fcn.14009e504
cmp rax, 2
jbe 0x1400282f7
lea rdx, [0x140125048]
lea rcx, [rax - 0x10]
cmp rax, rdx
cmovne rdx, rcx
je 0x1400282d6
lock inc qword [rcx]
mov eax, 1
jle 0x140028304
add rsp, 0x20
pop rbp
ret
xor eax, eax
add rsp, 0x20
pop rbp
ret
lea rcx, [0x140125198]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
cmp rax, 2
ja 0x1400282b1
mov rcx, rax
add rsp, 0x20
pop rbp
jmp sym.std::thread::current::init_current::hc8792ba6a791b2f6
ud2
Function at 0x140028310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
test rcx, rcx
jne 0x140028467
mov ecx, dword [0x1401251b0]
test ecx, ecx
je 0x140028428
dec ecx
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [0x140125190]
test ecx, ecx
je 0x14002843b
dec ecx
call fcn.14009e504
mov rdi, rax
test rax, rax
je 0x14002845a
mov ecx, 8
mov edx, 0x20
call sym.alloc::sync::arcinner_layout_for_value_layout::h59b1e829dc84e2bd
mov r14, rax
mov rbx, rdx
test rdx, rdx
je 0x1400283e4
mov rax, qword [0x140112028]
movzx eax, byte [rax]
mov rcx, rbx
mov rdx, r14
call sym.__rust_alloc
mov rsi, rax
test rsi, rsi
je 0x1400283ec
mov qword [rsi], 1
mov qword [rsi + 8], 1
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x10], rdi
mov byte [rsi + 0x28], 0
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], rsi
mov rax, qword [sym.std::sys::thread_local::guard::windows::tls_callback::h9a86caf1dc49f54d]
lock inc qword [rsi]
jle 0x1400284ed
mov ecx, dword [0x1401251b0]
test ecx, ecx
je 0x1400283f7
dec ecx
jmp 0x140028409
mov rsi, r14
test rsi, rsi
jne 0x14002839a
mov rcx, r14
mov rdx, rbx
call sym.alloc::alloc::handle_alloc_error::hb4afe9567b073952
lea rdi, [rbp - 0x38]
lea rcx, [0x140125198]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
add rsi, 0x10
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x140125198]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
jmp 0x140028338
lea rcx, [0x140125178]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
mov rdi, rax
test rax, rax
jne 0x140028363
call sym.std::thread::current::id::get_or_init::__u7b__u7b_closure_u7d__u7d_::hdf6afb8a3103c156
mov rdi, rax
jmp 0x140028363
cmp rcx, 1
je 0x14002849f
lea rax, [0x1400f15c0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, str.std_src_threadcurrent.rs
lea rcx, [rbp - 0x40]
call sym.core::panicking::panic_fmt::hd96dbc7a7b88b670
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 0
lea rax, str.fatal_runtime_error:__n_n____________Attempted_to_access_thread_local_data_while_allocating_said_data._n_n____________Do_not_access_functions_that_allocate_in_the_global_allocator__n_n____________This_is_a_bug_in_the_global_allocator._n_n_________n
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call sym.std::io::Write::write_fmt::h069e2b6c84d9098a
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::hf1580008dcce4082
mov ecx, 7
int 0x29
ud2
Function at 0x1400287f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1401251b0]
test ecx, ecx
je 0x140028835
dec ecx
call fcn.14009e504
cmp rax, 2
jbe 0x14002884e
lea rdx, [0x140125048]
lea rcx, [rax - 0x10]
cmp rax, rdx
cmovne rdx, rcx
je 0x140028858
lock inc qword [rcx]
mov eax, 1
jg 0x14002885a
ud2
lea rcx, [0x140125198]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
cmp rax, 2
ja 0x140028814
mov rcx, rax
call sym.std::thread::current::init_current::hc8792ba6a791b2f6
jmp 0x14002885a
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
and eax, 1
shl eax, 5
lock dec byte [rdx + rax + 8]
jne 0x140028893
cmp qword [rbp - 0x10], 0
je 0x140028889
mov rax, qword [rbp - 8]
lock dec qword [rax]
jne 0x140028889
lea rcx, [rbp - 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::hd13b688a3bae1643
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rsi, [rdx + rax]
add rsi, 8
lea rdi, [rbp + 7]
xor ebx, ebx
jmp 0x1400288b8
mov al, 1
lock cmpxchg byte [rsi], bl
je 0x14002886f
mov byte [rbp + 7], 0xff
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
mov r9d, 0xffffffff
call sub.api_ms_win_core_synch_l1_2_0.dll_WaitOnAddress
cmp eax, 1
je 0x1400288b0
call sub.kernel32.dll_GetLastError
jmp 0x1400288b0

Function at 0x1400288f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
mov eax, ecx
imul rax, rax, 0x10624dd3
shr rax, 0x26
imul edx, eax, 0x3e8
sub ecx, edx
imul edx, ecx, 0xf4240
mov rcx, rax
pop rbp
jmp sym.std::thread::park_timeout::h76e15e128c120372
Function at 0x140028920
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov esi, edx
mov rdi, rcx
mov ecx, dword [0x1401251b0]
test ecx, ecx
je 0x14002896a
dec ecx
call fcn.14009e504
cmp rax, 2
jbe 0x140028983
lea rdx, [0x140125048]
lea rcx, [rax - 0x10]
cmp rax, rdx
cmovne rdx, rcx
je 0x14002898d
lock inc qword [rcx]
mov eax, 1
jg 0x14002898f
ud2
lea rcx, [0x140125198]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
cmp rax, 2
ja 0x140028949
mov rcx, rax
call sym.std::thread::current::init_current::hc8792ba6a791b2f6
jmp 0x14002898f
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
xor ecx, ecx
test rax, rax
setne cl
shl ecx, 5
lock dec byte [rdx + rcx + 8]
je 0x140028a19
lea rbx, [rdx + rcx]
add rbx, 8
mov byte [rbp + 7], 0xff
mov ecx, 0x3e8
mov rax, rdi
mul rcx
mov r9d, 0xffffffff
jo 0x1400289f9
mov ecx, esi
imul rcx, rcx, 0x431bde83
shr rcx, 0x32
add rax, rcx
jb 0x1400289f9
imul ecx, ecx, 0xf4240
xor edx, edx
sub esi, ecx
setne dl
add rax, rdx
jb 0x1400289f9
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
lea rdx, [rbp + 7]
mov r8d, 1
mov rcx, rbx
call sub.api_ms_win_core_synch_l1_2_0.dll_WaitOnAddress
cmp eax, 1
je 0x140028a15
call sub.kernel32.dll_GetLastError
xor eax, eax
xchg byte [rbx], al
cmp qword [rbp - 0x10], 0
je 0x140028a33
mov rax, qword [rbp - 8]
lock dec qword [rax]
jne 0x140028a33
lea rcx, [rbp - 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::hd13b688a3bae1643
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x140028ea0
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x14002a310
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d8], rcx
mov qword [rbp + 0x3e0], 0
mov qword [rbp + 0x3e8], 2
mov qword [rbp + 0x3f0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14002a3a0
jmp 0x14002a38f
jae 0x14002a46a
cmp r8, 0x201
jae 0x14002a3a0
mov r14d, 0x200
lea r15, [rbp - 0x50]
mov r12, r8
jmp 0x14002a406
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002a3de
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e0]
mov rdx, rbx
call sym.alloc::raw_vec::RawVecInner_A_::reserve::do_reserve_and_handle::hefbb04ab53aafa16
mov rsi, qword [rbp + 0x3e0]
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.kernel32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x14002a42c
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14002a4d6
mov r8d, r13d
cmp r12, r8
jne 0x14002a380
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002a509
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002a38f
jmp 0x14002a3a0
cmp r14, r8
jb 0x14002a523
lea rcx, [rbp + 0x3b0]
mov rdx, r15
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::hf9d6b9f9a43e1e23
movups xmm0, xmmword [rbp + 0x3b0]
movups xmm1, xmmword [rbp + 0x3c0]
mov rsi, qword [rbp + 0x3d8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
je 0x14002a4bf
mov rcx, qword [rbp + 0x3e8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
jne 0x14002a4aa
jmp 0x14002a4bf
lea rcx, str.internal_error:_entered_unreachable_codep
lea r8, str.std_src_syspalwindowsmod.rs
mov edx, 0x28
call sym.core::panicking::panic::ha97bf9038e585aa0
jmp 0x14002a538
lea rax, str.std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::h56676e2302dc2db1
ud2
Function at 0x14002a570
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
call sub.kernel32.dll_GetEnvironmentStringsW
test rax, rax
je 0x14002a58f
mov rdx, rax
add rsp, 0x68
pop rsi
pop rbp
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp], rax
mov rax, rbp
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::hf05c141c4089296c]
mov qword [rbp - 8], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rdx, str.std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x40]
call sym.core::panicking::panic_fmt::hd96dbc7a7b88b670
ud2
Function at 0x14002c700
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm7
movdqa xmmword [rbp - 0x20], xmm6
mov rsi, r8
test r8, r8
js 0x14002c8d4
mov rdi, rcx
je 0x14002c773
mov r14, rdx
mov rax, qword [0x140112028]
movzx eax, byte [rax]
mov r15d, 1
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x14002c8d7
mov rbx, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call sym.memcpy
cmp rsi, 8
jae 0x14002c77d
xor eax, eax
jmp 0x14002c890
mov ebx, 1
jmp 0x14002c8ad
movabs rcx, 0x7fffffffffffffe0
cmp rsi, 0x20
jae 0x14002c794
xor eax, eax
jmp 0x14002c826
mov rax, rsi
and rax, rcx
xor edx, edx
movdqa xmm0, xmmword [0x1400eee10]
movdqa xmm1, xmmword [0x1400eee20]
movdqa xmm2, xmmword [0x1400eee30]
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rbx + rdx]
movdqu xmm4, xmmword [rbx + rdx + 0x10]
movdqa xmm5, xmm3
paddb xmm5, xmm0
movdqa xmm6, xmm4
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
pand xmm7, xmm2
movdqa xmm5, xmm6
pminub xmm5, xmm1
pcmpeqb xmm5, xmm6
pand xmm5, xmm2
pxor xmm7, xmm3
pxor xmm5, xmm4
movdqu xmmword [rbx + rdx], xmm7
movdqu xmmword [rbx + rdx + 0x10], xmm5
add rdx, 0x20
cmp rax, rdx
jne 0x14002c7c0
cmp rax, rsi
je 0x14002c8ad
test sil, 0x18
je 0x14002c890
mov rdx, rax
add rcx, 0x18
mov rax, rcx
and rax, rsi
movdqa xmm0, xmmword [0x1400eee40]
movdqa xmm1, xmmword [0x1400eee50]
movdqa xmm2, xmmword [0x1400eee60]
nop dword [rax + rax]
movq xmm3, qword [rbx + rdx]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [rbx + rdx], xmm5
add rdx, 8
cmp rax, rdx
jne 0x14002c850
cmp rax, rsi
je 0x14002c8ad
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
lea edx, [rcx - 0x61]
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, cl
mov byte [rbx + rax], dl
inc rax
cmp rsi, rax
jne 0x14002c890
mov qword [rdi], rsi
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rsi
mov byte [rdi + 0x18], 0
mov rax, rdi
movaps xmm6, xmmword [rbp - 0x20]
movaps xmm7, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
xor r15d, r15d
lea r8, [0x1400f03e0]
mov rcx, r15
mov rdx, rsi
call sym.alloc::raw_vec::handle_error::hf09561d634053503
int3

Function at 0x14002e120
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14002e135
mov rcx, rdx
mov rdx, r8
pop rbp
jmp sym.std::fs::DirBuilder::create_dir_all::h43e84f7bf1294c80
mov rcx, rdx
mov rdx, r8
pop rbp
jmp sym.std::sys::pal::windows::fs::DirBuilder::mkdir::haba9fcfe4f2e7ae1
Function at 0x140032040
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rbx, rdx
mov rax, qword [rcx]
mov rsi, qword [rax]
mov ecx, dword [0x140125190]
test ecx, ecx
je 0x14003208f
dec ecx
call fcn.14009e504
mov r14, rax
test rax, rax
je 0x1400320aa
mov rax, qword [rsi]
cmp r14, rax
jne 0x1400320ba
mov eax, dword [rsi + 8]
cmp eax, 0xffffffff
je 0x140032143
inc eax
mov dword [rsi + 8], eax
jmp 0x1400320cf
lea rcx, [0x140125178]
call sym.std::sys::thread_local::key::windows::LazyKey::init::h5f4686820bf88fde
mov ecx, eax
call fcn.14009e504
mov r14, rax
test rax, rax
jne 0x140032074
call sym.std::thread::current::id::get_or_init::__u7b__u7b_closure_u7d__u7d_::hdf6afb8a3103c156
mov r14, rax
mov rax, qword [rsi]
cmp r14, rax
je 0x14003207c
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi + 0xc], cl
jne 0x14003212a
mov qword [rsi], r14
mov dword [rsi + 8], 1
cmp qword [rsi + 0x10], 0
jne 0x140032135
mov qword [rsi + 0x10], 0xffffffffffffffff
lea rcx, [rsi + 0x18]
mov rdx, rbx
mov r8, rdi
call sym.__std::io::buffered::linewritershim::LineWriterShim_W__as_std::io::Write_::write::hdd2d6e3ce0656f95
inc qword [rsi + 0x10]
dec dword [rsi + 8]
jne 0x14003211f
mov qword [rsi], 0
xor ecx, ecx
xchg byte [rsi + 0xc], cl
cmp cl, 2
jne 0x14003211f
add rsi, 0xc
mov rcx, rsi
mov rsi, rax
mov rdi, rdx
call fcn.14005cccc
mov rdx, rdi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [rsi + 0xc]
call sym.std::sys::sync::mutex::futex::Mutex::lock_contended::h37c35293098c5639
jmp 0x1400320c5
lea rcx, [0x1400f2520]
call sym.core::cell::panic_already_borrowed::h7f413a8aed5d8082
ud2
lea rcx, [0x1400f3328]
lea r8, [0x1400f3370]
mov edx, 0x26
call sym.core::option::expect_failed::hc2d711bcd8ec1ab3
mov rdi, rax
inc qword [rsi + 0x10]
mov rcx, rsi
call sym._ZN4core3ptr175drop_in_place_LT_std..sync..reentrant_lock..ReentrantLockGuard_LT_core..cell..RefCell_LT_std..io..buffered..lin
mov rcx, rdi
call sym._Unwind_Resume
mov rdi, rax
mov rcx, rsi
call sym._ZN4core3ptr175drop_in_place_LT_std..sync..reentrant_lock..ReentrantLockGuard_LT_core..cell..RefCell_LT_std..io..buffered..lin
mov rcx, rdi
call sym._Unwind_Resume
int3