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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rsi, rdx
test rax, rax
je 0x14005a4b2
mov rcx, rax
mov rdx, rsi
call dbg.drop_in_place<core::result::Result<std::sys::windows::fs::File, std::io::error::Error>>
mov qword [rdi], 0
jmp 0x14005a61a
lea rcx, [rsp + 0x40]
mov rdx, rsi
call dbg.file_attr
cmp dword [rsp + 0x40], 2
jne 0x14005a538
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x14005a519
test rcx, rcx
je 0x14005a519
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x14005a506
mov r8, qword [r15 + 0x10]
mov rcx, r14
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400bd974
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x14005a58a
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, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14005a606
mov rbx, qword [rsp + 0x40]
jmp 0x14005a58c
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 0x14005a5f5
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.1400bd974
test r15, r15
je 0x14005a5f5
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x14005a612
mov qword [rdi], 0
mov rcx, rbx
call fcn.1400bd974
jmp 0x14005a612
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call fcn.1400bd974
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14005c8f0
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 [0x1400c0058]
test ecx, ecx
je 0x14005c920
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005c939
cmp qword [rax + 8], 0
je 0x14005c939
add rax, 0x10
jmp 0x14005ca01
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005c910
mov ecx, dword [0x1400c0058]
test ecx, ecx
je 0x14005c9e2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005c9ff
mov rdi, rax
test rax, rax
jne 0x14005c9ab
mov rax, qword [0x1400f13c8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ca18
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 [0x1400c0058]
test ecx, ecx
je 0x14005ca08
dec ecx
mov rdx, rdi
call fcn.1400bd694
xor ecx, ecx
test rsi, rsi
je 0x14005c9cb
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14005c9cb
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14005c9cd
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x14005ca01
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005c958
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::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005c9a3
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x14005ca30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov ecx, dword [0x1400c0078]
test ecx, ecx
je 0x14005cb5e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005ca62
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005cb58
mov ecx, dword [0x1400c0078]
test ecx, ecx
je 0x14005cb80
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005cb9d
mov rdi, rax
test rax, rax
jne 0x14005caec
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400f13c8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005cbbc
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x1400c0078]
test ecx, ecx
je 0x14005cba9
dec ecx
mov rdx, rdi
call fcn.1400bd694
lea rax, [rdi + 8]
test rsi, rsi
je 0x14005cb11
mov rcx, qword [rsi]
mov qword [rsi], 0
mov rdx, rcx
test rcx, rcx
je 0x14005cb15
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
jmp 0x14005cb15
xor ecx, ecx
xor edx, edx
mov r8, qword [rax + 0x10]
mov qword [rsp + 0x30], r8
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rdx
cmp qword [rsp + 0x20], 0
je 0x14005cb58
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14005cb58
lock dec qword [rax]
jne 0x14005cb58
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005cb9f
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005ca54
jmp 0x14005ca62
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005ca81
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005cae4
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x14005cbf0
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 [0x1400c0098]
test ecx, ecx
je 0x14005cc1f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005cc38
cmp byte [rax + 8], 0
je 0x14005cc38
add rax, 9
jmp 0x14005cce0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005cc10
mov ecx, dword [0x1400c0098]
test ecx, ecx
je 0x14005ccc1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005ccde
mov rdi, rax
test rax, rax
jne 0x14005cc9e
mov rax, qword [0x1400f13c8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ccf7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400c0098]
test ecx, ecx
je 0x14005cce7
dec ecx
mov rdx, rdi
call fcn.1400bd694
xor ecx, ecx
test rsi, rsi
je 0x14005ccb4
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 0x14005cce0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005cc53
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005cc96
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x14005cd10
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 [0x1400c00b8]
test ecx, ecx
je 0x14005cd3f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005cd58
cmp byte [rax + 8], 0
je 0x14005cd58
add rax, 9
jmp 0x14005ce00
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005cd30
mov ecx, dword [0x1400c00b8]
test ecx, ecx
je 0x14005cde1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005cdfe
mov rdi, rax
test rax, rax
jne 0x14005cdbe
mov rax, qword [0x1400f13c8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ce17
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400c00b8]
test ecx, ecx
je 0x14005ce07
dec ecx
mov rdx, rdi
call fcn.1400bd694
xor ecx, ecx
test rsi, rsi
je 0x14005cdd4
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 0x14005ce00
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005cd73
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005cdb6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x14005ce30
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 [0x1400c00d8]
test ecx, ecx
je 0x14005cf40
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005ce62
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005cf3a
mov ecx, dword [0x1400c00d8]
test ecx, ecx
je 0x14005cf69
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005cf86
mov rdi, rax
test rax, rax
jne 0x14005ceec
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400f13c8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005cfa5
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400c00d8]
test ecx, ecx
je 0x14005cf92
dec ecx
mov rdx, rdi
call fcn.1400bd694
test rsi, rsi
je 0x14005cf62
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14005cf62
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005cf3a
test rcx, rcx
je 0x14005cf3a
lock dec qword [rcx]
jne 0x14005cf3a
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005cf88
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005ce54
jmp 0x14005ce62
call sym.std::sync::mpmc::context::Context::new::hecdaf09487166125
jmp 0x14005cf02
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005ce81
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::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005cee4
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005cfd0
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 [0x1400c00f8]
test ecx, ecx
je 0x14005d0e6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d002
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005d0e0
mov ecx, dword [0x1400c00f8]
test ecx, ecx
je 0x14005d108
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d125
mov rdi, rax
test rax, rax
jne 0x14005d08c
mov qword [rsp + 0x28], 0
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 [rsp + 0x20], rax
mov rax, qword [0x1400f13c8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d144
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400c00f8]
test ecx, ecx
je 0x14005d131
dec ecx
mov rdx, rdi
call fcn.1400bd694
test rsi, rsi
je 0x14005d0a6
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005d0a8
mov rax, qword [rsi + 8]
jmp 0x14005d0a8
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005d0e0
test rcx, rcx
je 0x14005d0e0
lock dec qword [rcx]
jne 0x14005d0e0
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005d127
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::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005cff4
jmp 0x14005d002
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::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d021
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::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005d084
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005d170
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 [0x1400c0118]
test ecx, ecx
je 0x14005d1a3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d1bc
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14005d1bc
add rcx, 0x10
jmp 0x14005d2b9
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d190
mov ecx, dword [0x1400c0118]
test ecx, ecx
je 0x14005d29a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d2b7
mov rdi, rax
test rax, rax
jne 0x14005d232
mov rax, qword [0x1400f13c8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d2d6
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 [0x1400c0118]
test ecx, ecx
je 0x14005d2c3
dec ecx
mov rdx, rdi
call fcn.1400bd694
test rsi, rsi
je 0x14005d24f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14005d284
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 0x14005d27f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005d284
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x14005d2b9
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d1db
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::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005d22a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400a4320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400a439a
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 0x1400a4390
cmp r11, r10
ja 0x1400a4433
cmp r10, rdx
ja 0x1400a4447
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400a4392
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400a4370
jmp 0x1400a4407
ja 0x1400a439a
mov r11, r10
cmp rax, r8
jne 0x1400a4342
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400a440b
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 0x1400a43e0
mov r8, r10
sub ecx, r9d
jns 0x1400a43fe
jmp 0x1400a440d
cmp r10, rdx
je 0x1400a4419
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400a440d
xor al, 1
cmp r8, rdx
jne 0x1400a43c0
jmp 0x1400a440d
xor eax, eax
jmp 0x1400a440d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, [0x1400e41d8]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x1400e41f0]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x1400e41f0]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400b34a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r13, rdx
movzx eax, byte [rcx + 0x28]
cmp al, 0x82
jne 0x1400b34c3
jmp 0x1400b35f7
movzx r8d, byte [rcx + 0x40]
cmp r8b, 0x82
je 0x1400b3519
cmp r8b, 0x81
je 0x1400b3506
cmp r8b, 0x80
je 0x1400b34ef
movzx edx, byte [rcx + 0x43]
mov byte [rsp + 0x5a], dl
movzx edx, word [rcx + 0x41]
mov word [rsp + 0x58], dx
mov r9d, dword [rcx + 0x48]
mov r10d, dword [rcx + 0x44]
movzx edx, byte [rsp + 0x5a]
mov byte [rsp + 0x3a], dl
movzx edx, word [rsp + 0x58]
mov word [rsp + 0x38], dx
movzx edx, byte [rsp + 0x3a]
mov byte [rsp + 0x5a], dl
movzx edx, word [rsp + 0x38]
mov word [rsp + 0x58], dx
mov byte [rsp + 0x2f], r8b
movzx edx, byte [rsp + 0x5a]
mov byte [rsp + 0x32], dl
movzx edx, word [rsp + 0x58]
mov word [rsp + 0x30], dx
cmp al, 0x81
je 0x1400b3568
cmp al, 0x80
je 0x1400b354e
movzx edx, byte [rcx + 0x2b]
mov byte [rsp + 0x5a], dl
movzx edx, word [rcx + 0x29]
mov word [rsp + 0x58], dx
mov r8d, dword [rcx + 0x30]
mov edx, dword [rcx + 0x2c]
movzx r11d, byte [rsp + 0x5a]
mov byte [rsp + 0x36], r11b
movzx r11d, word [rsp + 0x58]
mov word [rsp + 0x34], r11w
movzx r11d, byte [rcx + 0x34]
mov byte [rsp + 0x2e], r11b
cmp r11b, 0x81
je 0x1400b35b2
cmp byte [rsp + 0x2e], 0x80
je 0x1400b3598
movzx r11d, byte [rcx + 0x37]
mov byte [rsp + 0x5a], r11b
movzx r11d, word [rcx + 0x35]
mov word [rsp + 0x58], r11w
mov r14d, dword [rcx + 0x3c]
mov edi, dword [rcx + 0x38]
movzx r11d, byte [rsp + 0x5a]
mov byte [rsp + 0x3a], r11b
movzx r11d, word [rsp + 0x58]
mov word [rsp + 0x38], r11w
movzx r11d, byte [rsp + 0x32]
mov byte [rsp + 0x4a], r11b
movzx r11d, word [rsp + 0x30]
mov word [rsp + 0x48], r11w
movzx r11d, word [rsp + 0x34]
mov word [rsp + 0x50], r11w
movzx r11d, byte [rsp + 0x36]
mov byte [rsp + 0x52], r11b
movzx r11d, word [rsp + 0x38]
mov word [rsp + 0x4c], r11w
movzx r11d, byte [rsp + 0x3a]
mov byte [rsp + 0x4e], r11b
movzx ebx, byte [rcx + 0x1c]
cmp bl, 0x82
mov dword [rsp + 0xbc], edi
mov qword [rsp + 0xd0], r14
jne 0x1400b3614
invalid
jmp 0x1400b36c9
movzx ebp, byte [rcx + 0x10]
cmp bpl, 0x81
je 0x1400b365f
cmp bpl, 0x80
je 0x1400b363c
movzx r11d, byte [rcx + 0x13]
mov byte [rsp + 0x5a], r11b
Function at 0x1400be490
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 0x1400be500
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401032b4]
mov rbx, rcx
test esi, esi
jle 0x1400be630
mov rax, qword [0x1401032b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400be54b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400be5d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400be530
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400be652
mov rax, qword [0x1401032b8]
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 [0x1401032b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400be637
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400be5ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400be5e0
add dword [0x1401032b4], 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 [0x1401032b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400be5ce
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 0x1400be558
mov rax, qword [0x1401032b8]
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 0x1400bebe0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140103320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140103300]
test rbx, rbx
je 0x1400bec3c
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 rsi, rsi
je 0x1400bec33
test eax, eax
jne 0x1400bec33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400bec18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]