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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rdi, rdx
test rax, rax
je 0x14005dbf0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call dbg.file_attr
cmp dword [rsp + 0x38], 2
jne 0x14005dc1f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14005dc6b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14005dc97
lea rcx, [rsp + 0x88]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14005dcf5
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14005dd71
mov rbx, qword [rsp + 0x80]
jmp 0x14005dcf7
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 0x14005dd60
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 sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x14005dd60
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14005dd9d
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x14005dd9d
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x14005dbdf
Function at 0x14005fcc0
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 [0x1400a2070]
test ecx, ecx
je 0x14005fcf0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005fd09
cmp qword [rax + 8], 0
je 0x14005fd09
add rax, 0x10
jmp 0x14005fdd4
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005fce0
mov ecx, dword [0x1400a2070]
test ecx, ecx
je 0x14005fdb5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005fdd2
test rax, rax
jne 0x14005fd7b
mov rax, qword [0x140acba88]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005fdf4
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400a2070]
test ecx, ecx
je 0x14005fddb
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009f514
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x14005fd9b
mov rdx, qword [rsi]
mov qword [rsi], 0
cmp rdx, 1
jne 0x14005fd9b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14005fd9d
xor edx, edx
mov qword [rax + 8], 1
lea r8, [rax + 0x10]
mov qword [rax + 0x10], rdx
mov byte [rax + 0x18], cl
mov rax, r8
jmp 0x14005fdd4
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005fd28
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005fd6d
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x14005fe10
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 [0x1400a2090]
test ecx, ecx
je 0x14005ff29
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005fe3f
cmp qword [rax + 8], 0
jne 0x14005ff23
mov ecx, dword [0x1400a2090]
test ecx, ecx
je 0x14005ff4b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005ff68
test rax, rax
jne 0x14005fec9
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rsp + 0x20], rax
mov rax, qword [0x140acba88]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ff8a
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a2090]
test ecx, ecx
je 0x14005ff71
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009f514
mov rax, rdi
test rsi, rsi
je 0x14005fee3
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14005fee5
mov rcx, qword [rsi + 8]
jmp 0x14005fee5
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14005ff23
test rdx, rdx
je 0x14005ff23
lock dec qword [rdx]
jne 0x14005ff23
lea rcx, [rsp + 0x28]
mov rsi, rax
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rax, rsi
add rax, 0x10
jmp 0x14005ff6a
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005fe34
jmp 0x14005fe3f
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005fe5e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005febb
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005ffc0
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 [0x1400a20b0]
test ecx, ecx
je 0x14005ffef
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140060008
cmp byte [rax + 8], 0
je 0x140060008
add rax, 9
jmp 0x1400600bb
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005ffe0
mov ecx, dword [0x1400a20b0]
test ecx, ecx
je 0x14006009c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400600b9
test rax, rax
jne 0x140060076
mov rax, qword [0x140acba88]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400600d8
lea rcx, dbg.destroy_value_u8_
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1400a20b0]
test ecx, ecx
je 0x1400600c2
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009f514
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x14006008c
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 0x1400600bb
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140060027
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x140060068
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3

Function at 0x1400600f0
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 [0x1400a20d0]
test ecx, ecx
je 0x14006011f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140060138
cmp byte [rax + 8], 0
je 0x140060138
add rax, 9
jmp 0x1400601eb
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140060110
mov ecx, dword [0x1400a20d0]
test ecx, ecx
je 0x1400601cc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400601e9
test rax, rax
jne 0x1400601a6
mov rax, qword [0x140acba88]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140060208
lea rcx, dbg.destroy_value_u8_
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1400a20d0]
test ecx, ecx
je 0x1400601f2
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009f514
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x1400601bc
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 0x1400601eb
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140060157
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x140060198
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x140060220
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 [0x1400a20f0]
test ecx, ecx
je 0x140060333
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14006024f
cmp qword [rax + 8], 0
jne 0x14006032d
mov ecx, dword [0x1400a20f0]
test ecx, ecx
je 0x140060365
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060382
test rax, rax
jne 0x1400602d9
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 [0x140acba88]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400603a4
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a20f0]
test ecx, ecx
je 0x14006038b
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009f514
mov rax, rdi
test rsi, rsi
je 0x140060355
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x140060355
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14006032d
test rdx, rdx
je 0x14006032d
lock dec qword [rdx]
jne 0x14006032d
lea rcx, [rsp + 0x28]
mov rsi, rax
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
mov rax, rsi
add rax, 0x10
jmp 0x140060384
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140060244
jmp 0x14006024f
mov rsi, rax
call sym.std::sync::mpmc::context::Context::new::h52887c5962e8c9c3
mov rcx, rax
mov rax, rsi
jmp 0x1400602ef
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14006026e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x1400602cb
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400603d0
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 [0x1400a2110]
test ecx, ecx
je 0x1400604e9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400603ff
cmp qword [rax + 8], 0
jne 0x1400604e3
mov ecx, dword [0x1400a2110]
test ecx, ecx
je 0x14006050b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060528
test rax, rax
jne 0x140060489
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 [0x140acba88]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14006054a
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a2110]
test ecx, ecx
je 0x140060531
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009f514
mov rax, rdi
test rsi, rsi
je 0x1400604a3
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400604a5
mov rcx, qword [rsi + 8]
jmp 0x1400604a5
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x1400604e3
test rdx, rdx
je 0x1400604e3
lock dec qword [rdx]
jne 0x1400604e3
lea rcx, [rsp + 0x28]
mov rsi, rax
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov rax, rsi
add rax, 0x10
jmp 0x14006052a
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 dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400603f4
jmp 0x1400603ff
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 dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14006041e
xor eax, eax
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____
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14006047b
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x140060580
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 [0x1400a2130]
test ecx, ecx
je 0x140060672
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400605af
cmp qword [rax + 8], 0
jne 0x14006066c
mov ecx, dword [0x1400a2130]
test ecx, ecx
je 0x140060694
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400606b1
test rax, rax
jne 0x140060625
mov rax, qword [0x140acba88]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400606d3
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400a2130]
test ecx, ecx
je 0x1400606ba
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009f514
mov rax, rdi
test rsi, rsi
je 0x14006063e
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x140060660
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x1400606b3
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400605a4
jmp 0x1400605af
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400605ce
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x140060617
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x140094900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14009497a
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 0x140094970
cmp r11, r10
ja 0x140094a05
cmp r10, rdx
ja 0x140094a17
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140094972
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140094950
jmp 0x1400949e7
ja 0x14009497a
mov r11, r10
cmp rax, r8
jne 0x140094922
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400949eb
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 0x1400949c0
mov r8, r10
sub ecx, r9d
jns 0x1400949de
jmp 0x1400949ed
cmp r10, rdx
je 0x1400949f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400949ed
xor al, 1
cmp r8, rdx
jne 0x1400949a0
jmp 0x1400949ed
xor eax, eax
jmp 0x1400949ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140ac0b80]
call sym.core::option::unwrap_failed::hc0851016c6838662
lea r8, [0x140ac0b98]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
lea r8, [0x140ac0b98]
mov rcx, r10
call dbg.slice_end_index_len_fail
int3
Function at 0x140099490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0xb0
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x1400994ea
test cl, 0x20
jne 0x140099534
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400995b5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x140ac0006]
movzx ecx, word [rcx + r8]
mov word [rsp + 0x55], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400995c0
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov ecx, eax
nop word [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 0x140099500
jmp 0x140099582
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov ecx, eax
nop word cs:[rax + 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 0x140099550
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x140099622
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x140ac0002]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x140099613
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400995ca
or cl, 0x30
mov byte [rsp + r8 + 0x30], cl
jmp 0x1400995e4
movzx ecx, cl
lea r8, [0x140ac0006]
movzx ecx, word [r8 + rcx*2]
mov word [rsp + 0x55], cx
mov r8d, 0x25
lea rcx, [rsp + r8]
add rcx, 0x30
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
lea r8, [0x140abd468]
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call dbg.pad_integral
nop
add rsp, 0xb0
pop rsi
ret
lea r8, [0x140abffe8]
mov edx, pe_nt_image_headers64
call dbg.slice_start_index_len_fail
int3
Function at 0x1400a0340
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, [0x140acb860]
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 0x1400a03b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140ada1f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400a0560
mov rax, qword [0x140ada1f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400a03fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400a0487
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400a03e0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1400a05bd
mov rax, qword [0x140ada1f8]
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 [0x140ada1f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a05a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400a0480
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400a0510
add dword [0x140ada1f4], 1
cmp ebx, 8
jae 0x1400a04b8
test bl, 4
jne 0x1400a0570
test ebx, ebx
je 0x1400a04a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400a0590
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 0x1400a04a9
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 0x1400a04ea
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 [0x140ada1f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a0480
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140acb8d8]
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1400a0407
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400a04a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400a04a9
mov rax, qword [0x140ada1f8]
mov edx, dword [rbp + 8]
lea rcx, [0x140acb8a0]
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, [0x140acb880]
call dbg.__report_error
nop
nop dword [rax]