joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005af20
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rdi, rdx
test rax, rax
je 0x14005afb0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call dbg.file_attr
cmp dword [rsp + 0x38], 2
jne 0x14005afdf
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14005b02b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14005b057
lea rcx, [rsp + 0x88]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14009d39c
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14005b0b5
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14005b131
mov rbx, qword [rsp + 0x80]
jmp 0x14005b0b7
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 0x14005b120
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.14009d39c
test r15, r15
je 0x14005b120
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14005b15d
mov qword [rsi], 0
mov rcx, rbx
call fcn.14009d39c
jmp 0x14005b15d
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
call fcn.14009d39c
jmp 0x14005af9f
Function at 0x14005d170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14009f088]
test ecx, ecx
je 0x14005d1a0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005d1b9
cmp qword [rax + 8], 0
je 0x14005d1b9
add rax, 0x10
jmp 0x14005d281
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005d190
mov ecx, dword [0x14009f088]
test ecx, ecx
je 0x14005d262
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d27f
mov rdi, rax
test rax, rax
jne 0x14005d22b
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d298
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009f088]
test ecx, ecx
je 0x14005d288
dec ecx
mov rdx, rdi
call fcn.14009d0a4
xor ecx, ecx
test rsi, rsi
je 0x14005d24b
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14005d24b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14005d24d
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x14005d281
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d1d8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x14005d223
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x14005d2b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009f0a8]
test ecx, ecx
je 0x14005d3b2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005d2e2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005d3ac
mov ecx, dword [0x14009f0a8]
test ecx, ecx
je 0x14005d3d4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d3f1
mov rdi, rax
test rax, rax
jne 0x14005d358
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d410
mov rdi, rax
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009f0a8]
test ecx, ecx
je 0x14005d3fd
dec ecx
mov rdx, rdi
call fcn.14009d0a4
test rsi, rsi
je 0x14005d372
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005d374
mov rax, qword [rsi + 8]
jmp 0x14005d374
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005d3ac
test rcx, rcx
je 0x14005d3ac
lock dec qword [rcx]
jne 0x14005d3ac
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005d3f3
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005d2d4
jmp 0x14005d2e2
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d301
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x14005d350
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x14005d420
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14009f0c8]
test ecx, ecx
je 0x14005d44f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005d468
cmp byte [rax + 8], 0
je 0x14005d468
add rax, 9
jmp 0x14005d510
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005d440
mov ecx, dword [0x14009f0c8]
test ecx, ecx
je 0x14005d4f1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d50e
mov rdi, rax
test rax, rax
jne 0x14005d4ce
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d527
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x14009f0c8]
test ecx, ecx
je 0x14005d517
dec ecx
mov rdx, rdi
call fcn.14009d0a4
xor ecx, ecx
test rsi, rsi
je 0x14005d4e4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14005d510
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d483
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x14005d4c6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x14005d540
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14009f0e8]
test ecx, ecx
je 0x14005d56f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005d588
cmp byte [rax + 8], 0
je 0x14005d588
add rax, 9
jmp 0x14005d630
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005d560
mov ecx, dword [0x14009f0e8]
test ecx, ecx
je 0x14005d611
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d62e
mov rdi, rax
test rax, rax
jne 0x14005d5ee
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d647
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x14009f0e8]
test ecx, ecx
je 0x14005d637
dec ecx
mov rdx, rdi
call fcn.14009d0a4
xor ecx, ecx
test rsi, rsi
je 0x14005d604
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14005d630
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d5a3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x14005d5e6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x14005d660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009f108]
test ecx, ecx
je 0x14005d75c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005d692
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005d756
mov ecx, dword [0x14009f108]
test ecx, ecx
je 0x14005d785
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d7a2
mov rdi, rax
test rax, rax
jne 0x14005d708
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d7c1
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009f108]
test ecx, ecx
je 0x14005d7ae
dec ecx
mov rdx, rdi
call fcn.14009d0a4
test rsi, rsi
je 0x14005d77e
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14005d77e
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005d756
test rcx, rcx
je 0x14005d756
lock dec qword [rcx]
jne 0x14005d756
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005d7a4
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005d684
jmp 0x14005d692
call sym.std::sync::mpmc::context::Context::new::hf40be5734a4388b1
jmp 0x14005d71e
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d6b1
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x14005d700
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x14005d7e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009f128]
test ecx, ecx
je 0x14005d8e2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005d812
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005d8dc
mov ecx, dword [0x14009f128]
test ecx, ecx
je 0x14005d904
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d921
mov rdi, rax
test rax, rax
jne 0x14005d888
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d940
mov rdi, rax
lea rax, 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____
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009f128]
test ecx, ecx
je 0x14005d92d
dec ecx
mov rdx, rdi
call fcn.14009d0a4
test rsi, rsi
je 0x14005d8a2
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005d8a4
mov rax, qword [rsi + 8]
jmp 0x14005d8a4
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005d8dc
test rcx, rcx
je 0x14005d8dc
lock dec qword [rcx]
jne 0x14005d8dc
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005d923
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 sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005d804
jmp 0x14005d812
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 sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d831
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
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 sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x14005d880
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x14005d950
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009f148]
test ecx, ecx
je 0x14005d983
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005d99c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14005d99c
add rcx, 0x10
jmp 0x14005da99
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005d970
mov ecx, dword [0x14009f148]
test ecx, ecx
je 0x14005da7a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005da97
mov rdi, rax
test rax, rax
jne 0x14005da12
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005dab6
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009f148]
test ecx, ecx
je 0x14005daa3
dec ecx
mov rdx, rdi
call fcn.14009d0a4
test rsi, rsi
je 0x14005da2f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14005da64
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14005da5f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005da64
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x14005da99
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d9bb
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x14005da0a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x140092520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14009259a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140092590
cmp r11, r10
ja 0x140092625
cmp r10, rdx
ja 0x140092637
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140092592
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140092570
jmp 0x140092607
ja 0x14009259a
mov r11, r10
cmp rax, r8
jne 0x140092542
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14009260b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400925e0
mov r8, r10
sub ecx, r9d
jns 0x1400925fe
jmp 0x14009260d
cmp r10, rdx
je 0x140092619
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14009260d
xor al, 1
cmp r8, rdx
jne 0x1400925c0
jmp 0x14009260d
xor eax, eax
jmp 0x14009260d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400b9e58]
call sym.core::option::unwrap_failed::h37b1e1ef647301c4
lea r8, [0x1400b9e70]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
lea r8, [0x1400b9e70]
mov rcx, r10
call dbg.slice_end_index_len_fail
int3
Function at 0x14009de90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14009df00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d3234]
mov rbx, rcx
test esi, esi
jle 0x14009e030
mov rax, qword [0x1400d3238]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009df4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009dfd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009df30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14009e052
mov rax, qword [0x1400d3238]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d3238]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009e037
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009dfce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14009dfe0
add dword [0x1400d3234], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d3238]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009dfce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14009df58
mov rax, qword [0x1400d3238]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009e5c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d32a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d3280]
test rbx, rbx
je 0x14009e61c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14009e613
test rsi, rsi
je 0x14009e613
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009e5f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009e830
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14009e848
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14009e850
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14009e860
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009e8ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14009e8a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009e8af
add rax, 0x28
cmp rax, r9
jne 0x14009e890
xor eax, eax
ret

Function at 0x14009e8b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14009e940
mov rdx, qword [0x1400c4d50]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009e92e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009e92e
cmp word [rax + 0x18], 0x20b
jne 0x14009e92e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14009e940
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14009e919
add rbx, 0x28
cmp rbx, rdi
je 0x14009e940
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14009e910
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14009e950
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c4d50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009e970
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009e978
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009e970
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009e9cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009e9c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009e970
add rax, 0x28
cmp rax, r9
jne 0x14009e9b0
xor eax, eax
ret

Function at 0x14009e9d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c4d50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009e9ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009e9f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009e9ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret