joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14029d6a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x1402e1380]
test ecx, ecx
je 0x14029d6d5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14029d6ee
cmp byte [rax + 8], 0
je 0x14029d6ee
add rax, 9
jmp 0x14029d7a1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14029d6c6
mov ecx, dword [0x1402e1380]
test ecx, ecx
je 0x14029d782
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14029d79f
test rax, rax
jne 0x14029d75c
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14029d7bf
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1402e1380]
test ecx, ecx
je 0x14029d7a9
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1402dd8f4
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x14029d772
cmp byte [rsi], 0
mov byte [rsi], 0
movzx edx, byte [rsi + 1]
cmove edx, ecx
mov ecx, edx
lea rdx, [rax + 9]
mov byte [rax + 8], 1
mov byte [rax + 9], cl
mov rax, rdx
jmp 0x14029d7a1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14029d70d
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14029d74e
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
int3
Function at 0x14029d7d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x1402e13a0]
test ecx, ecx
je 0x14029d805
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14029d81e
cmp byte [rax + 8], 0
je 0x14029d81e
add rax, 9
jmp 0x14029d8d1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14029d7f6
mov ecx, dword [0x1402e13a0]
test ecx, ecx
je 0x14029d8b2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14029d8cf
test rax, rax
jne 0x14029d88c
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14029d8ef
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1402e13a0]
test ecx, ecx
je 0x14029d8d9
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1402dd8f4
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x14029d8a2
cmp byte [rsi], 0
mov byte [rsi], 0
movzx edx, byte [rsi + 1]
cmove edx, ecx
mov ecx, edx
lea rdx, [rax + 9]
mov byte [rax + 8], 1
mov byte [rax + 9], cl
mov rax, rdx
jmp 0x14029d8d1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14029d83d
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h2b177c9f1f87cf45
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14029d87e
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
int3
Function at 0x14029d900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x1402e13c0]
test ecx, ecx
je 0x14029da12
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14029d935
cmp qword [rax + 8], 0
jne 0x14029da0c
mov ecx, dword [0x1402e13c0]
test ecx, ecx
je 0x14029da44
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14029da61
test rax, rax
jne 0x14029d9bb
mov qword [rbp - 0x10], 0
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
mov qword [rbp - 0x18], rax
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14029da84
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402e13c0]
test ecx, ecx
je 0x14029da6b
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1402dd8f4
mov rax, rdi
test rsi, rsi
je 0x14029da34
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14029da34
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14029da0c
test rdx, rdx
je 0x14029da0c
lock dec qword [rdx]
jne 0x14029da0c
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::h2abb8d0ae7b3533e
mov rax, rsi
add rax, 0x10
jmp 0x14029da63
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14029d92a
jmp 0x14029d935
mov rsi, rax
call sym.std::sync::mpmc::context::Context::new::h7ff74aa247c03544
mov rcx, rax
mov rax, rsi
jmp 0x14029d9d1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14029d954
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14029d9ad
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2
Function at 0x14029dab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x1402e13e0]
test ecx, ecx
je 0x14029dbc8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14029dae5
cmp qword [rax + 8], 0
jne 0x14029dbc2
mov ecx, dword [0x1402e13e0]
test ecx, ecx
je 0x14029dbea
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14029dc07
test rax, rax
jne 0x14029db6b
mov qword [rbp - 0x10], 0
lea rax, str._a__
mov qword [rbp - 0x18], rax
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14029dc2a
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402e13e0]
test ecx, ecx
je 0x14029dc11
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1402dd8f4
mov rax, rdi
test rsi, rsi
je 0x14029db85
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14029db87
mov rcx, qword [rsi + 8]
jmp 0x14029db87
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14029dbc2
test rdx, rdx
je 0x14029dbc2
lock dec qword [rdx]
jne 0x14029dbc2
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::h3350d1a16dd8b830
mov rax, rsi
add rax, 0x10
jmp 0x14029dc09
lea rcx, str._a__
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14029dada
jmp 0x14029dae5
lea rcx, str._a__
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14029db04
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, str._a__
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14029db5d
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2
Function at 0x14029dc50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rsi, rcx
mov ecx, dword [0x1402e1400]
test ecx, ecx
je 0x14029dd45
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14029dc85
cmp qword [rax + 8], 0
jne 0x14029dd3f
mov ecx, dword [0x1402e1400]
test ecx, ecx
je 0x14029dd67
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14029dd84
test rax, rax
jne 0x14029dcfb
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14029dda7
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1402e1400]
test ecx, ecx
je 0x14029dd8e
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1402dd8f4
mov rax, rdi
test rsi, rsi
je 0x14029dd14
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x14029dd33
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rbp - 0x10]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x14029dd86
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14029dc7a
jmp 0x14029dc85
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14029dca4
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14029dced
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
int3
Function at 0x14029ddc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x1402e1420]
test ecx, ecx
je 0x14029ded8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14029ddf5
cmp qword [rax + 8], 0
jne 0x14029ded2
mov ecx, dword [0x1402e1420]
test ecx, ecx
je 0x14029defa
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14029df17
test rax, rax
jne 0x14029de7b
mov qword [rbp - 0x10], 0
lea rax, str.P___
mov qword [rbp - 0x18], rax
mov rax, qword [0x14050df18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14029df3a
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402e1420]
test ecx, ecx
je 0x14029df21
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1402dd8f4
mov rax, rdi
test rsi, rsi
je 0x14029de95
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14029de97
mov rcx, qword [rsi + 8]
jmp 0x14029de97
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14029ded2
test rdx, rdx
je 0x14029ded2
lock dec qword [rdx]
jne 0x14029ded2
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::hf2a241d43703bb56
mov rax, rsi
add rax, 0x10
jmp 0x14029df19
lea rcx, str.P___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14029ddea
jmp 0x14029ddf5
lea rcx, str.P___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14029de14
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.P___
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14029de6d
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2

Function at 0x1402a1340
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x1402a135a
mov r8d, edx
and r8d, 3
cmp rdx, 4
jae 0x1402a135e
xor eax, eax
jmp 0x1402a13d5
xor eax, eax
pop rbp
ret
and rdx, 0xfffffffffffffffc
xor eax, eax
nop word cs:[rax + rax]
shl eax, 4
movzx r9d, byte [rcx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 1]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 2]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 3]
add rcx, 4
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
add rdx, 0xfffffffffffffffc
jne 0x1402a1370
test r8, r8
je 0x1402a13ff
xor edx, edx
nop dword [rax]
shl eax, 4
movzx r9d, byte [rcx + rdx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
inc rdx
cmp r8, rdx
jne 0x1402a13e0
and eax, 0xfffffff
pop rbp
ret
Function at 0x1402a1410
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x1402a1430
mov r8d, edx
and r8d, 7
cmp rdx, 8
jae 0x1402a1437
mov eax, 0x1505
jmp 0x1402a14bd
mov eax, 0x1505
pop rbp
ret
and rdx, 0xfffffffffffffff8
mov eax, 0x1505
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx]
add eax, r9d
movzx r9d, byte [rcx + 1]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 2]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 3]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 4]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 5]
add r9d, eax
shl eax, 5
add r9d, eax
movzx r10d, byte [rcx + 6]
add r10d, r9d
shl r9d, 5
add r10d, r9d
movzx eax, byte [rcx + 7]
add eax, r10d
shl r10d, 5
add rcx, 8
add eax, r10d
add rdx, 0xfffffffffffffff8
jne 0x1402a1440
test r8, r8
je 0x1402a14e9
xor edx, edx
nop word cs:[rax + rax]
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx + rdx]
add eax, r9d
inc rdx
cmp r8, rdx
jne 0x1402a14d0
pop rbp
ret
Function at 0x1402d0b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1402d0bfa
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x1402d0bf0
cmp r11, r10
ja 0x1402d0c76
cmp r10, rdx
ja 0x1402d0c88
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1402d0bf2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1402d0bd0
jmp 0x1402d0c57
ja 0x1402d0bfa
mov r11, r10
cmp rax, r8
jne 0x1402d0b97
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1402d0c5b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1402d0c30
mov r8, r10
sub ecx, r9d
jns 0x1402d0c4e
jmp 0x1402d0c5d
cmp r10, rdx
je 0x1402d0c6a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1402d0c5d
xor al, 1
cmp r8, rdx
jne 0x1402d0c10
jmp 0x1402d0c5d
xor eax, eax
jmp 0x1402d0c5d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x140502c60]
call sym.core::option::unwrap_failed::h511674c62460528b
lea r8, str.5_P_
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::hf943cfe51be07c4a
lea r8, str.5_P_
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::ha4157f6c56c31a58
int3
Function at 0x1402d7720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x1402d7782
test cl, 0x20
jne 0x1402d77c4
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1402d7835
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1405020ee]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1402d7840
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1402d7790
jmp 0x1402d7802
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1402d77d0
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x1402d78a1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x1405020ec]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x1402d7891
mov r8d, 0x26
cmp cl, 0xa
jae 0x1402d784a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x1402d7863
movzx ecx, cl
lea r8, [0x1405020ee]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::hd7d09bba8c9ff4c9
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::hc4490513dd7cd116
int3
Function at 0x1402df270
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 sym.__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 sym.__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 0x1402df2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140550204]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1402df490
mov rax, qword [0x140550208]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1402df32c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1402df3b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1402df310
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1402df4ed
mov rax, qword [0x140550208]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140550208]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1402df4d2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1402df3b0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1402df440
add dword [0x140550204], 1
cmp ebx, 8
jae 0x1402df3e8
test bl, 4
jne 0x1402df4a0
test ebx, ebx
je 0x1402df3d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1402df4c0
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 0x1402df3d9
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 0x1402df41a
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 [0x140550208]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1402df3b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor edi, edi
jmp 0x1402df337
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1402df3d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1402df3d9
mov rax, qword [0x140550208]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call sym.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop dword [rax]