joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ff300
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1401ff3af
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1401ff3be
cmp ecx, 0x17
jne 0x1401ff3e5
cmp eax, 0x1c
jb 0x1401ff3fe
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1401ff3ec
cmp eax, 0x10
jb 0x1401ff418
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument8:5_
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140353a20]
mov edx, 0x43
call dbg.panic
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1403539c0]
mov edx, 0x42
call dbg.panic
ud2

Function at 0x1401ff6b0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x90]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
cmp word [r10], 0
je 0x1401ff6fa
movups xmm0, xmmword [r10 + 4]
mov ecx, dword [r10 + 0x14]
mov r11d, dword [r10 + 0x18]
movzx r10d, word [r10 + 0x1c]
mov r9d, 0x1c
mov di, 0x17
jmp 0x1401ff710
mov ecx, dword [r10 + 2]
movzx r10d, word [r10 + 6]
mov r9d, 0x10
mov di, 2
xorps xmm0, xmm0
rol r10w, 8
mov word [rsp + 0x3c], di
mov word [rsp + 0x3e], r10w
mov dword [rsp + 0x40], ecx
movups xmmword [rsp + 0x44], xmm0
mov dword [rsp + 0x54], r11d
mov rcx, qword [rdx]
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call sub.ws2_32.dll_sendto
cmp eax, 0xffffffff
je 0x1401ff75a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401ff770
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1402068b0
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 [0x14026a488]
test ecx, ecx
je 0x1402068e0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1402068f9
cmp qword [rax + 8], 0
je 0x1402068f9
add rax, 0x10
jmp 0x1402069c1
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 0x1402068d0
mov ecx, dword [0x14026a488]
test ecx, ecx
je 0x1402069a2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1402069bf
mov rdi, rax
test rax, rax
jne 0x14020696b
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1402069d8
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 [0x14026a488]
test ecx, ecx
je 0x1402069c8
dec ecx
mov rdx, rdi
call fcn.14026861c
xor ecx, ecx
test rsi, rsi
je 0x14020698b
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14020698b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14020698d
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x1402069c1
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 0x140206918
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 0x140206963
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1402069f0
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 [0x14026a4a8]
test ecx, ecx
je 0x140206b1e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140206a22
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140206b18
mov ecx, dword [0x14026a4a8]
test ecx, ecx
je 0x140206b40
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140206b5d
mov rdi, rax
test rax, rax
jne 0x140206aac
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 [str.Qp__]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140206b7c
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 [0x14026a4a8]
test ecx, ecx
je 0x140206b69
dec ecx
mov rdx, rdi
call fcn.14026861c
lea rax, [rdi + 8]
test rsi, rsi
je 0x140206ad1
mov rcx, qword [rsi]
mov qword [rsi], 0
mov rdx, rcx
test rcx, rcx
je 0x140206ad5
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
jmp 0x140206ad5
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 0x140206b18
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140206b18
lock dec qword [rax]
jne 0x140206b18
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140206b5f
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 0x140206a14
jmp 0x140206a22
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 0x140206a41
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 0x140206aa4
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x140206bb0
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 [0x14026a4c8]
test ecx, ecx
je 0x140206bdf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140206bf8
cmp byte [rax + 8], 0
je 0x140206bf8
add rax, 9
jmp 0x140206ca0
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 0x140206bd0
mov ecx, dword [0x14026a4c8]
test ecx, ecx
je 0x140206c81
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140206c9e
mov rdi, rax
test rax, rax
jne 0x140206c5e
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140206cb7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x14026a4c8]
test ecx, ecx
je 0x140206ca7
dec ecx
mov rdx, rdi
call fcn.14026861c
xor ecx, ecx
test rsi, rsi
je 0x140206c74
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 0x140206ca0
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 0x140206c13
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 0x140206c56
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x140206cd0
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 [0x14026a4e8]
test ecx, ecx
je 0x140206cff
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140206d18
cmp byte [rax + 8], 0
je 0x140206d18
add rax, 9
jmp 0x140206dc0
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 0x140206cf0
mov ecx, dword [0x14026a4e8]
test ecx, ecx
je 0x140206da1
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140206dbe
mov rdi, rax
test rax, rax
jne 0x140206d7e
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140206dd7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x14026a4e8]
test ecx, ecx
je 0x140206dc7
dec ecx
mov rdx, rdi
call fcn.14026861c
xor ecx, ecx
test rsi, rsi
je 0x140206d94
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 0x140206dc0
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 0x140206d33
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 0x140206d76
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x140206df0
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 [0x14026a508]
test ecx, ecx
je 0x140206f00
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140206e22
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140206efa
mov ecx, dword [0x14026a508]
test ecx, ecx
je 0x140206f29
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140206f46
mov rdi, rax
test rax, rax
jne 0x140206eac
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 [str.Qp__]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140206f65
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 [0x14026a508]
test ecx, ecx
je 0x140206f52
dec ecx
mov rdx, rdi
call fcn.14026861c
test rsi, rsi
je 0x140206f22
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x140206f22
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 0x140206efa
test rcx, rcx
je 0x140206efa
lock dec qword [rcx]
jne 0x140206efa
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140206f48
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 0x140206e14
jmp 0x140206e22
call sym.std::sync::mpmc::context::Context::new::hecdaf09487166125
jmp 0x140206ec2
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 0x140206e41
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 0x140206ea4
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x140206f90
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 [0x14026a528]
test ecx, ecx
je 0x1402070a6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140206fc2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x1402070a0
mov ecx, dword [0x14026a528]
test ecx, ecx
je 0x1402070c8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1402070e5
mov rdi, rax
test rax, rax
jne 0x14020704c
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 [str.Qp__]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140207104
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 [0x14026a528]
test ecx, ecx
je 0x1402070f1
dec ecx
mov rdx, rdi
call fcn.14026861c
test rsi, rsi
je 0x140207066
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140207068
mov rax, qword [rsi + 8]
jmp 0x140207068
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 0x1402070a0
test rcx, rcx
je 0x1402070a0
lock dec qword [rcx]
jne 0x1402070a0
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 0x1402070e7
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 0x140206fb4
jmp 0x140206fc2
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 0x140206fe1
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 0x140207044
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x140207130
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 [0x14026a548]
test ecx, ecx
je 0x140207163
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14020717c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14020717c
add rcx, 0x10
jmp 0x140207279
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 0x140207150
mov ecx, dword [0x14026a548]
test ecx, ecx
je 0x14020725a
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140207277
mov rdi, rax
test rax, rax
jne 0x1402071f2
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140207296
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 [0x14026a548]
test ecx, ecx
je 0x140207283
dec ecx
mov rdx, rdi
call fcn.14026861c
test rsi, rsi
je 0x14020720f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x140207244
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 0x14020723f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140207244
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x140207279
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 0x14020719b
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 0x1402071ea
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x14024ec70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14024ecea
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 0x14024ece0
cmp r11, r10
ja 0x14024ed83
cmp r10, rdx
ja 0x14024ed97
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14024ece2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14024ecc0
jmp 0x14024ed57
ja 0x14024ecea
mov r11, r10
cmp rax, r8
jne 0x14024ec92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14024ed5b
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 0x14024ed30
mov r8, r10
sub ecx, r9d
jns 0x14024ed4e
jmp 0x14024ed5d
cmp r10, rdx
je 0x14024ed69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14024ed5d
xor al, 1
cmp r8, rdx
jne 0x14024ed10
jmp 0x14024ed5d
xor eax, eax
jmp 0x14024ed5d
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, [0x14036db08]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x14036db20]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x14036db20]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x140269180
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 0x1402691f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403b7304]
mov rbx, rcx
test esi, esi
jle 0x140269320
mov rax, qword [0x1403b7308]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14026923b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1402692c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140269220
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140269342
mov rax, qword [0x1403b7308]
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 [0x1403b7308]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.kernel32.dll_VirtualQuery]
test rax, rax
je 0x140269327
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1402692be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1402692d0
add dword [0x1403b7304], 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 [0x1403b7308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1402692be
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 0x140269248
mov rax, qword [0x1403b7308]
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 0x1402698b0
Capabilities:
Get thread local storage value

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