joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d0ea0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x5d0f35
mov rax, qword [sym.std::sys::pal::windows::thread_local_key::on_tls_callback::hcf9916a3fd1ee073]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x5d0f74
cmp dword [rbp], 0
je 0x5d0f58
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x5d0f97
mov edi, eax
mov rax, qword [0x0083c120]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x0083c120], rsi
jne 0x5d0f10
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x5d0f69
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x5d0fd9
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x5d0f5d
mov edi, dword [rbp + 4]
jmp 0x5d0f69
mov edi, dword [rsi + 0x18]
jmp 0x5d0f67
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rdx, [0x007b14c8]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call sym.core::panicking::assert_failed::h8a98e51c055d6f66
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call sym.core::panicking::panic_fmt::h9e181c62584cc428
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call sym.core::panicking::assert_failed::h2bea6875334c4c0c
int3
Function at 0x5d1790
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x007b12f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x5d17ff
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x5d182b
test eax, eax
js 0x5d180b
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x5d1821
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x007b1360]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call sym.std::io::Write::write_fmt::ha2beef964fc4e8a7
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h6b16f6f0139843bd
mov ecx, 7
int 0x29
ud2
Function at 0x5d28b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
cmp edx, 3
je 0x5d28cc
test edx, edx
jne 0x5d2a35
mov bl, 1
mov rdi, qword [0x0083c120]
nop word cs:[rax + rax]
test rdi, rdi
je 0x5d2920
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x5d2a8a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x5d28e0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x5d28e0
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.006f5c64
mov rcx, rsi
call r14
jmp 0x5d28e0
test bl, 1
jne 0x5d2a35
mov bl, 1
mov rdi, qword [0x0083c120]
nop word cs:[rax + rax]
test rdi, rdi
je 0x5d2980
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x5d2a8a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x5d2940
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x5d2940
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.006f5c64
mov rcx, rsi
call r14
jmp 0x5d2940
test bl, 1
jne 0x5d2a35
mov bl, 1
mov rdi, qword [0x0083c120]
nop word cs:[rax + rax]
test rdi, rdi
je 0x5d29e0
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x5d2a8a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x5d29a0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x5d29a0
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.006f5c64
mov rcx, rsi
call r14
jmp 0x5d29a0
test bl, 1
jne 0x5d2a35
mov bl, 1
mov rdi, qword [0x0083c120]
nop
test rdi, rdi
je 0x5d2a30
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x5d2a8a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x5d29f0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x5d29f0
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.006f5c64
mov rcx, rsi
call r14
jmp 0x5d29f0
test bl, 1
je 0x5d2a40
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rbx, qword [0x0083c120]
nop word [rax + rax]
test rbx, rbx
je 0x5d2a35
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x5d2a8a
mov rbx, qword [rbx + 8]
test esi, esi
je 0x5d2a50
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x5d2a50
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.006f5c64
mov rcx, rdi
call r14
jmp 0x5d2a50
lea rcx, str.library_std_src_syspalwindows_thread_local_key.rs
call sym.core::option::unwrap_failed::hec1ab125882a5e1e
ud2
Function at 0x5d30e0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5d30fd
dec ecx
jmp 0x5d3107
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
mov edx, 1
call fcn.006f5c64
mov rax, qword [rdi + 8]
test rax, rax
je 0x5d3129
lock dec qword [rax]
jne 0x5d3129
lea rcx, [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::h83a695eca77ada5c
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5d3145
dec ecx
jmp 0x5d314f
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.006f5c64

Function at 0x5d3270
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5d328d
dec ecx
jmp 0x5d3297
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
mov edx, 1
call fcn.006f5c64
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5d32bd
dec ecx
jmp 0x5d32c7
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.006f5c64
Function at 0x5d3af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x0071b1d8]
test ecx, ecx
je 0x5d3b1d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x5d3b36
add rax, 8
jmp 0x5d3bd1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x5d3b14
je 0x5d3bcf
movzx eax, byte [0x0083c308]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x5d3bfa
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0071b1d8]
test ecx, ecx
je 0x5d3bda
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x0071b1d8]
test ecx, ecx
je 0x5d3bea
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.006f5c64
test rdi, rdi
je 0x5d3bca
mov rax, qword [rdi + 8]
test rax, rax
je 0x5d3bb9
lock dec qword [rax]
jne 0x5d3bb9
mov rcx, qword [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::h6c489d886f08e611
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov rax, rbx
jmp 0x5d3bd1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5d3b7c
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5d3b90
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3

Function at 0x5d3d00
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5d3d1d
dec ecx
jmp 0x5d3d27
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
mov edx, 1
call fcn.006f5c64
mov rax, qword [rdi + 8]
test rax, rax
je 0x5d3d49
lock dec qword [rax]
jne 0x5d3d49
mov rcx, qword [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::h6c489d886f08e611
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5d3d65
dec ecx
jmp 0x5d3d6f
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.006f5c64
Function at 0x5d40c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x0071b158]
test ecx, ecx
je 0x5d40ed
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x5d4106
add rax, 8
jmp 0x5d4181
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x5d40e4
je 0x5d417f
movzx eax, byte [0x0083c308]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x5d41aa
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x0071b158]
test ecx, ecx
je 0x5d418a
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x0071b158]
test ecx, ecx
je 0x5d419a
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.006f5c64
test rdi, rdi
je 0x5d417a
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov rax, rbx
jmp 0x5d4181
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5d4144
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5d4158
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3
Function at 0x5d4630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x0071b138]
test ecx, ecx
je 0x5d465d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x5d4676
add rax, 8
jmp 0x5d46f9
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x5d4654
je 0x5d46f7
movzx eax, byte [0x0083c308]
mov edx, 0x18
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x5d4722
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x0071b138]
test ecx, ecx
je 0x5d4702
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x0071b138]
test ecx, ecx
je 0x5d4712
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.006f5c64
test rdi, rdi
je 0x5d46f2
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov rax, rbx
jmp 0x5d46f9
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5d46bc
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5d46d0
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3
Function at 0x5d5fb0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x5d6040
jmp 0x5d602f
jae 0x5d60fb
cmp r8, 0x201
jae 0x5d6040
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x5d6097
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x5d606f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h85bf19a68803f0e6
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
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 0x5d60bd
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x5d6163
mov r8d, r13d
cmp r12, r8
jne 0x5d6020
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x5d6194
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x5d602f
jmp 0x5d6040
cmp r14, r8
jb 0x5d61ae
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::hce5f74d7e8fb25f0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rax, qword [rbp + 0x3c8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp + 0x3d0], 0
je 0x5d614e
mov r8, qword [rbp + 0x3d8]
mov rcx, qword [0x0083c108]
xor edx, edx
call fcn.006f5b74
nop
add rsp, 0x468
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 rcx, qword [rbp + 0x3c8]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rbp + 0x3d0], 0
jne 0x5d6139
jmp 0x5d614e
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::h8ea5606244902eff
jmp 0x5d61c3
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::h829dac2b01cd87d1
ud2
Function at 0x5da180
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 8], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], 7
mov qword [rbp + 0x24], 0
mov word [rbp + 0x2c], 0
mov byte [rbp + 0x28], 1
lea r8, [rbp + 8]
mov rcx, rdx
mov rdx, rax
call sym.std::sys::pal::windows::fs::File::open::h3a6cfbd342f96e23
mov rdi, rdx
test rax, rax
je 0x5da20b
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::hbbf69de94c165ea1
mov qword [rsi], 0
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 8]
mov rdx, rdi
call sym.std::sys::pal::windows::fs::File::file_attr::h4fcaaad4960f1471
cmp dword [rbp + 8], 2
jne 0x5da22f
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x5da25e
movups xmm0, xmmword [rbp + 8]
movups xmm1, xmmword [rbp + 0x18]
movups xmm2, xmmword [rbp + 0x28]
movups xmm3, xmmword [rbp + 0x38]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x48]
mov qword [rbp], rax
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x5da287
lea rcx, [rbp - 0x38]
call sym.core::ptr::drop_in_place_std::io::error::Error_::hbbf69de94c165ea1
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.006f5a3c
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x5da2d5
mov qword [rbp - 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x5da351
mov rbx, qword [rbp - 0x40]
jmp 0x5da2d7
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 0x5da340
mov r14, rax
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.006f5a3c
test r15, r15
je 0x5da340
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x5da37a
mov qword [rsi], 0
mov rcx, rbx
call fcn.006f5a3c
jmp 0x5da37a
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 8], 1
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rax
call sym.core::ptr::drop_in_place_std::io::error::Error_::hbbf69de94c165ea1
mov qword [rsi], 0
mov rcx, rdi
call fcn.006f5a3c
jmp 0x5da1f9
Function at 0x5f4f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
add rsi, r8
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x30], 0x81

Function at 0x5f5670
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x0071b1b8]
test ecx, ecx
je 0x5f919d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x5f91b6
add rax, 8
jmp 0x5f9251
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x5f9194
je 0x5f924f
movzx eax, byte [0x0083c308]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x5f927a
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0071b1b8]
test ecx, ecx
je 0x5f925a
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x0071b1b8]
test ecx, ecx
je 0x5f926a
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.006f5c64
test rdi, rdi
je 0x5f924a
mov rax, qword [rdi + 8]
test rax, rax
je 0x5f9239
lock dec qword [rax]
jne 0x5f9239
mov rcx, qword [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::hc2f8f36dcfa7d17a
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov rax, rbx
jmp 0x5f9251
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5f91fc
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x5f9210
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3
Function at 0x5f92f0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5f930d
dec ecx
jmp 0x5f9317
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
mov edx, 1
call fcn.006f5c64
mov rax, qword [rdi + 8]
test rax, rax
je 0x5f9339
lock dec qword [rax]
jne 0x5f9339
mov rcx, qword [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::hc2f8f36dcfa7d17a
mov rcx, qword [0x0083c108]
xor edx, edx
mov r8, rdi
call fcn.006f5b74
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5f9355
dec ecx
jmp 0x5f935f
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.006f5c64