joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e33c0
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 [0x140148080]
test ecx, ecx
je 0x1400e33f0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e3409
cmp qword [rax + 8], 0
je 0x1400e3409
add rax, 0x10
jmp 0x1400e34d1
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e33e0
mov ecx, dword [0x140148080]
test ecx, ecx
je 0x1400e34b2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e34cf
mov rdi, rax
test rax, rax
jne 0x1400e347b
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e34e8
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 [0x140148080]
test ecx, ecx
je 0x1400e34d8
dec ecx
mov rdx, rdi
call fcn.140145d58
xor ecx, ecx
test rsi, rsi
je 0x1400e349b
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x1400e349b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x1400e349d
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x1400e34d1
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e3428
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::h082b3a5bc3552b62
mov ecx, eax
jmp 0x1400e3473
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400e3500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401480a0]
test ecx, ecx
je 0x1400e3534
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e354d
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1400e354d
add rbx, 0x10
jmp 0x1400e3638
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::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e3521
mov ecx, dword [0x1401480a0]
test ecx, ecx
je 0x1400e3619
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e3636
mov rdi, rax
test rax, rax
jne 0x1400e35c3
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e3656
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401480a0]
test ecx, ecx
je 0x1400e3643
dec ecx
mov rdx, rdi
call fcn.140145d58
test rsi, rsi
je 0x1400e35e4
mov rax, qword [rsi]
mov qword [rsi], 0
mov rdx, rax
test rax, rax
je 0x1400e35e8
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
jmp 0x1400e35e8
xor eax, eax
xor edx, edx
lea rbx, [rdi + 0x10]
cmp qword [rdi + 8], 0
mov rcx, qword [rdi + 0x18]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
je 0x1400e3638
test rcx, rcx
je 0x1400e3638
lock dec qword [rcx]
jne 0x1400e3638
call dbg.drop_slow<std::thread::Inner>
jmp 0x1400e3638
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::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e356c
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
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::h082b3a5bc3552b62
mov ecx, eax
jmp 0x1400e35bb
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400e3680
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 [0x1401480c0]
test ecx, ecx
je 0x1400e36af
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e36c8
cmp byte [rax + 8], 0
je 0x1400e36c8
add rax, 9
jmp 0x1400e3770
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e36a0
mov ecx, dword [0x1401480c0]
test ecx, ecx
je 0x1400e3751
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e376e
mov rdi, rax
test rax, rax
jne 0x1400e372e
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e3787
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1401480c0]
test ecx, ecx
je 0x1400e3777
dec ecx
mov rdx, rdi
call fcn.140145d58
xor ecx, ecx
test rsi, rsi
je 0x1400e3744
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 0x1400e3770
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e36e3
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::h082b3a5bc3552b62
mov ecx, eax
jmp 0x1400e3726
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x1400e37a0
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 [0x1401480e0]
test ecx, ecx
je 0x1400e37cf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e37e8
cmp byte [rax + 8], 0
je 0x1400e37e8
add rax, 9
jmp 0x1400e3890
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e37c0
mov ecx, dword [0x1401480e0]
test ecx, ecx
je 0x1400e3871
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e388e
mov rdi, rax
test rax, rax
jne 0x1400e384e
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e38a7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1401480e0]
test ecx, ecx
je 0x1400e3897
dec ecx
mov rdx, rdi
call fcn.140145d58
xor ecx, ecx
test rsi, rsi
je 0x1400e3864
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 0x1400e3890
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e3803
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::h082b3a5bc3552b62
mov ecx, eax
jmp 0x1400e3846
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x1400e38c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140148100]
test ecx, ecx
je 0x1400e38f4
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e390d
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1400e390d
add rbx, 0x10
jmp 0x1400e39e8
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::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e38e1
mov ecx, dword [0x140148100]
test ecx, ecx
je 0x1400e39c9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e39e6
mov rdi, rax
test rax, rax
jne 0x1400e397f
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e3a06
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 [0x140148100]
test ecx, ecx
je 0x1400e39f3
dec ecx
mov rdx, rdi
call fcn.140145d58
test rsi, rsi
je 0x1400e39c2
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x1400e39c2
lea rbx, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
je 0x1400e39e8
test rcx, rcx
je 0x1400e39e8
lock dec qword [rcx]
jne 0x1400e39e8
call dbg.drop_slow<std::sync::mpmc::context::Inner>
jmp 0x1400e39e8
call sym.std::sync::mpmc::context::Context::new::ha2d106ff5b7f8e1a
jmp 0x1400e3995
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::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e392c
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
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::h082b3a5bc3552b62
mov ecx, eax
jmp 0x1400e3977
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400e3a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140148120]
test ecx, ecx
je 0x1400e3a64
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e3a7d
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1400e3a7d
add rbx, 0x10
jmp 0x1400e3b57
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______
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e3a51
mov ecx, dword [0x140148120]
test ecx, ecx
je 0x1400e3b38
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e3b55
mov rdi, rax
test rax, rax
jne 0x1400e3aef
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e3b75
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______
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140148120]
test ecx, ecx
je 0x1400e3b62
dec ecx
mov rdx, rdi
call fcn.140145d58
test rsi, rsi
je 0x1400e3b09
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x1400e3b0b
mov rax, qword [rsi + 8]
jmp 0x1400e3b0b
xor eax, eax
lea rbx, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
je 0x1400e3b57
test rcx, rcx
je 0x1400e3b57
lock dec qword [rcx]
jne 0x1400e3b57
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>>
jmp 0x1400e3b57
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______
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e3a9c
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
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______
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
jmp 0x1400e3ae7
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400e3ba0
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 [0x140148140]
test ecx, ecx
je 0x1400e3bd3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e3bec
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400e3bec
add rcx, 0x10
jmp 0x1400e3ce9
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e3bc0
mov ecx, dword [0x140148140]
test ecx, ecx
je 0x1400e3cca
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e3ce7
mov rdi, rax
test rax, rax
jne 0x1400e3c62
mov rax, qword [0x140183048]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e3d06
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 [0x140148140]
test ecx, ecx
je 0x1400e3cf3
dec ecx
mov rdx, rdi
call fcn.140145d58
test rsi, rsi
je 0x1400e3c7f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400e3cb4
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 0x1400e3caf
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400e3cb4
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1400e3ce9
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e3c0b
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::h082b3a5bc3552b62
mov ecx, eax
jmp 0x1400e3c5a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x14012cb80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14012cbfa
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 0x14012cbf0
cmp r10, r11
jb 0x14012cc93
cmp r10, rdx
ja 0x14012cca7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14012cbf2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14012cbd0
jmp 0x14012cc67
ja 0x14012cbfa
mov r11, r10
cmp rax, r8
jne 0x14012cba2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14012cc6b
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 0x14012cc40
mov r8, r10
sub ecx, r9d
jns 0x14012cc5e
jmp 0x14012cc6d
cmp r10, rdx
je 0x14012cc79
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14012cc6d
xor al, 1
cmp r8, rdx
jne 0x14012cc20
jmp 0x14012cc6d
xor eax, eax
jmp 0x14012cc6d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140173b99]
lea r8, [0x140175f58]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x140175f40]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x140175f40]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x140146810
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140146880
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401a42f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140146a30
mov rax, qword [0x1401a42f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1401468cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140146957
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1401468b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140146a8d
mov rax, qword [0x1401a42f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401a42f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140146a72
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140146950
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401469e0
add dword [0x1401a42f4], 1
cmp ebx, 8
jae 0x140146988
test bl, 4
jne 0x140146a40
test ebx, ebx
je 0x140146979
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140146a60
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140146979
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1401469ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401a42f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140146950
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1401468d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140146979
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140146979
mov rax, qword [0x1401a42f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140146fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401a4360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401a4340]
test rbx, rbx
je 0x140146ff4
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140146feb
test r12, r12
je 0x140146feb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140146fd0
lea rcx, [0x1401a4360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140147220
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140147230
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140147240
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140147285
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14014727c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140147287
add rax, 0x28
cmp rax, r9
jne 0x140147268
xor eax, eax
ret

Function at 0x140147330
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140182fc0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1401473a9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1401473a9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1401473a6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14014739d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1401473a9
add r8, 0x28
cmp r8, r9
jne 0x140147388
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140147490
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140182fc0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1401474ff
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1401474ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1401474fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401474f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140147508
add rax, 0x28
cmp rax, r9
jne 0x1401474e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140147520
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140182fc0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140147598
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140147598
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140147598
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140147598
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14014758c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1401475a0
add rdx, 0x28
cmp rdx, r10
jne 0x140147578
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1401475b0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1401475be
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140147595
test r8d, r8d
jg 0x1401475a8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x18001d710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x18001d7a0
cmp r10, r11
jb 0x18001d816
cmp r10, rdx
ja 0x18001d82a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x18001d7a2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x18001d780
jmp 0x18001d804
ja 0x18001d7aa
mov r11, r10
cmp rax, r8
jne 0x18001d744
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x18001d7e0
mov rdi, r8
sub ecx, edx
jns 0x18001d7fb
jmp 0x18001d806
cmp r8, rsi
je 0x18001d83b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x18001d806
xor al, 1
cmp rdi, rsi
jne 0x18001d7c0
jmp 0x18001d806
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180146b80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180146880
ud2
lea rcx, [0x1801f050b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180146900
ud2