joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx eax, byte [0x1406380f8]
test al, al
je 0x140015cff
test edx, edx
je 0x140015b87
cmp edx, 3
jne 0x140015cff
mov rbx, qword [0x140638100]
test rbx, rbx
je 0x140015cff
xor r14d, r14d
jmp 0x140015ba9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140015bdd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140015d4a
dec esi
mov ecx, esi
call fcn.140047574
test rax, rax
je 0x140015ba0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14004756c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140015ba0
test r14b, 1
je 0x140015cff
mov rbx, qword [0x140638100]
test rbx, rbx
je 0x140015cff
xor r14d, r14d
jmp 0x140015c09
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140015c3d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140015d4a
dec esi
mov ecx, esi
call fcn.140047574
test rax, rax
je 0x140015c00
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14004756c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140015c00
test r14b, 1
je 0x140015cff
mov rbx, qword [0x140638100]
test rbx, rbx
je 0x140015cff
xor r14d, r14d
jmp 0x140015c69
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140015c9d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140015d4a
dec esi
mov ecx, esi
call fcn.140047574
test rax, rax
je 0x140015c60
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14004756c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140015c60
test r14b, 1
je 0x140015cff
mov rbx, qword [0x140638100]
test rbx, rbx
je 0x140015cff
xor r14d, r14d
jmp 0x140015cc9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140015cf9
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140015d4a
dec esi
mov ecx, esi
call fcn.140047574
test rax, rax
je 0x140015cc0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14004756c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140015cc0
test r14b, 1
jne 0x140015d0b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x140638100]
jmp 0x140015d18
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140015cff
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x140015d4a
dec esi
mov ecx, esi
call fcn.140047574
test rax, rax
je 0x140015d14
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14004756c
mov rcx, rdi
call r14
jmp 0x140015d14
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.HTb_
mov edx, 0x2b
call dbg.panic
ud2
Function at 0x140016a20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140016aa5
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 0x140016ae6
cmp dword [rsp + 0x2c], 0
je 0x140016aca
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140016afe
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140638100]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140638100], rsi
jne 0x140016a80
mov byte [0x1406380f8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140016adc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140016b48
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140016acf
mov edi, dword [rsp + 0x28]
jmp 0x140016adc
mov edi, dword [rsi + 0x18]
jmp 0x140016ada
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 dbg.assert_failed<i32, i32>
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str._Tb_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.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 dbg.panic_fmt
lea rax, str._Tb_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
int3
Function at 0x140016e70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14004a0c8]
test ecx, ecx
je 0x140016f50
dec ecx
call fcn.140047574
cmp rax, 2
jb 0x140016ea4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140016ea4
add rdi, 0x10
jmp 0x140016f46
mov ecx, dword [0x14004a0c8]
test ecx, ecx
je 0x140016f63
dec ecx
call fcn.140047574
cmp rax, 1
je 0x140016f44
mov rsi, rax
test rax, rax
jne 0x140016f13
movzx eax, byte [0x140638120]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140016f86
mov rsi, rax
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004a0c8]
test ecx, ecx
je 0x140016f76
dec ecx
mov rdx, rsi
call fcn.14004756c
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 0x140016f46
test rcx, rcx
je 0x140016f46
lock dec qword [rcx]
jne 0x140016f46
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x140016f46
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
jmp 0x140016e86
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
jmp 0x140016eb4
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
jmp 0x140016f0b
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3

Function at 0x140017080
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140017097
dec ecx
jmp 0x1400170a1
mov rcx, rdi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.14004756c
cmp qword [rsi + 8], 0
je 0x1400170ca
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400170ca
lock dec qword [rax]
jne 0x1400170ca
mov rcx, qword [rsi + 0x10]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400170e2
dec ecx
jmp 0x1400170ec
mov rcx, rdi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14004756c
Function at 0x140017b90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140624bb0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140017c01
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140017c37
test eax, eax
js 0x140017c12
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140017c2a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.std::io::Write::write_fmt::h3d21beac8e0d2508
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h3d52a3d6c45c6b2b
mov ecx, 7
int 0x29
ud2

Function at 0x1400180d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400180e7
dec ecx
jmp 0x1400180f1
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.14004756c
mov edx, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140018113
dec ecx
jmp 0x14001811d
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14004756c
Function at 0x140018230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14004a0a8]
test ecx, ecx
je 0x1400182ed
dec ecx
call fcn.140047574
cmp rax, 2
jb 0x140018260
cmp qword [rax + 8], 0
je 0x140018260
add rax, 0x10
jmp 0x1400182e7
mov ecx, dword [0x14004a0a8]
test ecx, ecx
je 0x140018300
dec ecx
call fcn.140047574
cmp rax, 1
je 0x1400182e5
mov rsi, rax
test rax, rax
jne 0x1400182cb
movzx eax, byte [0x140638120]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140018323
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004a0a8]
test ecx, ecx
je 0x140018313
dec ecx
mov rdx, rsi
call fcn.14004756c
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400182e7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140018245
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140018270
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x1400182c3
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x14001b7b0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x88], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0xa0], 7
mov qword [rsp + 0xa4], 0
mov word [rsp + 0xac], 0
mov byte [rsp + 0xa8], 1
lea r8, [rsp + 0x88]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rdi, rdx
test rax, rax
je 0x14001b84c
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
jmp 0x14001ba1d
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x14001b908
test dword [rsp + 0x40], 0x400
je 0x14001b8ad
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14001b908
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x14001b95d
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14001b9e0
mov rbx, qword [rsp + 0x40]
jmp 0x14001b95f
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], 2
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.140047744
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x14001b9cf
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.140047744
test r15, r15
je 0x14001b9cf
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14001ba15
mov qword [rsi], 0
mov rcx, rbx
call fcn.140047744
jmp 0x14001ba15
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
call fcn.140047744
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140034a20
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call dbg.inner
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x140034a6f
lea rcx, [rsp + 0xb0]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], rdi
jmp 0x140034c4b
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
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 0x140034b00
jmp 0x140034adf
jae 0x140034ba7
cmp r8, 0x201
jae 0x140034b00
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x140034b47
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140034b27
lea rcx, [rsp + 0x48]
mov rdx, r13
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h0f5ccd690f57f673
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
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 0x140034b6e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140034be6
mov r8d, r15d
cmp r12, r8
jne 0x140034ad0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140034c7b
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x140034adf
jmp 0x140034b00
cmp rdi, r8
jb 0x140034c95
lea rcx, [rsp + 0x88]
mov rdx, rbp
call dbg.from_wide
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x140034c07
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x140034c20
mov edx, 2
mov rcx, qword [rsp + 0x28]
call sym.__rust_dealloc
cmp qword [rsp + 0x60], rdi
jne 0x140034c60
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call dbg.drop_in_place<std::io::error::Error>
cmp qword [rsp + 0x40], 0
je 0x140034c4b
mov edx, 2
mov rcx, qword [rsp + 0x30]
call sym.__rust_dealloc
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x140034c3c
jmp 0x140034c4b
lea rcx, str.internal_error:_entered_unreachable_code8_b_
lea r8, str.mUb_
mov edx, 0x28
call dbg.panic
jmp 0x140034caa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call dbg.slice_end_index_len_fail
ud2

Function at 0x1400360b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
sub esp, 0xa8
Function at 0x140037920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14004a108]
test ecx, ecx
je 0x140037a00
dec ecx
call fcn.140047574
cmp rax, 2
jb 0x140037954
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140037954
add rdi, 0x10
jmp 0x1400379f6
mov ecx, dword [0x14004a108]
test ecx, ecx
je 0x140037a13
dec ecx
call fcn.140047574
cmp rax, 1
je 0x1400379f4
mov rsi, rax
test rax, rax
jne 0x1400379c3
movzx eax, byte [0x140638120]
mov ecx, 0x18
add byte [rdx + 8], bh
xor edi, edi
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call dbg.init
mov ecx, eax
jmp 0x140037936
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call dbg.init
mov ecx, eax
jmp 0x140037964
Function at 0x14003e790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x40]
call dbg.inner
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x14003e7cd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x14003e7fa
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call dbg.from_wide_to_user_path
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x14003e813
lea rcx, [rsp + 0x30]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14003e837
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14003e807
mov qword [rsi], rbx
test r14, r14
je 0x14003e807
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sym.__rust_dealloc
Function at 0x140040660
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call dbg.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x3c]
lea rbx, [dbg.callback]
lea r13, [rsp + 0x60]
lea r12, [0x14004d218]
mov qword [rsp + 0x48], rdi

Function at 0x140040b60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140040b91
mov rax, qword [rsp + 0x30]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h0ae59b4b5a93ace0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call dbg.panic_fmt
ud2
Function at 0x140042710
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140042859
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140042747
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140042843
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140042826
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1400427a8
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400427d9
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1400427dd
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400427e1
cmp eax, 0x6d
jne 0x14004280c
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400427e6
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140042812
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call dbg.drop_in_place<std::io::error::Error>
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14004281c
cmp rax, 1
je 0x140042791
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14004279b
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140042754
mov r8d, 0x10
mov rcx, rbx
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
mov rax, qword [rbx]
jmp 0x140042747
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call dbg.assert_failed<std::sys::windows::pipe::State, std::sys::windows::pipe::State>
int3