joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a9e0
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
pcmpeqd xmm0, xmm0
lea r13, [rsp + 0x40]
movups xmmword [rcx], xmm0
mov r12, rcx
mov rbx, r8
mov qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, r13
call sym.unk_3444
mov rcx, r13
call sym.unk_3552
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, eax
call sym.unk_2897
mov rsi, rax
test edi, edi
je 0x49aad0
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x49aa66
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x49aa75
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x49aac0
mov dword [rbx], 0
mov qword [rbx + 8], rsi
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x49aa9d
lea rcx, [rsp + 0x60]
call sym.unk_3525
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x49aab1
call sym.operator_delete_void_
mov rax, r12
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov qword [r12 + 0x10], rax
jmp 0x49aa7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
jmp 0x49aa89

Function at 0x49aae0
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbx, rcx
mov dword [rsp + 0x30], 0
lea r12, [rsp + 0x40]
call sym.unk_2897
mov rcx, qword [rbx]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rsi, rax
call dbg._wstat64i32
test eax, eax
jne 0x49abc0
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0
call sym.unk_3477
cmp al, 2
je 0x49ac00
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49ac11
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x49ac28
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.cannot_remove
mov rcx, r12
mov r13, rax
call sym.unk_3441
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, r12
mov rcx, r13
lea r9, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call sym.unk_3583
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x49aba8
call sym.operator_delete_void_
lea r8, [sym.unk_3523]
lea rdx, [0x005095a0]
mov rcx, r13
call sym.__cxa_throw
nop
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
call sym.unk_2898
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
cmp esi, 2
je 0x49abe8
cmp esi, 0x14
je 0x49abe8
test esi, esi
jne 0x49ab5a
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x49ab3d
mov eax, 1
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call sym.unk_2898
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov esi, eax
jmp 0x49abe0
Function at 0x49ac70
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
lea rdx, [rsp + 0x20]
call dbg._wstat64i32
test eax, eax
jne 0x49acd0
call sym.unk_2897
mov dword [rbx], 0
mov rdx, rbx
mov rcx, rsi
mov qword [rbx + 8], rax
mov rdi, rax
call sym.unk_3477
cmp al, 2
je 0x49ad10
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49ad1d
mov eax, dword [rbx]
test eax, eax
je 0x49ad38
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
call sym.unk_2898
cmp esi, 2
mov qword [rbx + 8], rax
sete al
cmp esi, 0x14
mov dword [rbx], esi
sete dl
or al, dl
je 0x49acc4
call sym.unk_2897
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x49acaf
mov eax, 1
mov dword [rbx], 0
mov qword [rbx + 8], rdi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
call sym.unk_2898
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x49acc4

Function at 0x49ad60
Capabilities:
Move file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, rcx
mov rsi, rdx
mov rcx, qword [rcx]
mov rdx, qword [rdx]
call qword [sym.imp.msvcrt.dll__wrename]
test eax, eax
jne 0x49ad90
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sym.unk_2898
mov rdi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov ebp, dword [rax]
test ebp, ebp
je 0x49ad82
mov ecx, 0x30
lea r13, [rsp + 0x40]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_rename
mov rcx, r13
mov r12, rax
call sym.unk_3441
mov eax, ebp
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rdi
call sym.unk_3585
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x49ae00
call sym.operator_delete_void_
lea r8, [sym.unk_3523]
lea rdx, [0x005095a0]
mov rcx, r12
call sym.__cxa_throw
mov rbx, rax
mov rcx, r12
call sym.__cxa_free_exception
mov rcx, rbx
call dbg._Unwind_Resume
mov rcx, qword [rsp + 0x40]
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x49ae19
call sym.operator_delete_void_
jmp 0x49ae19

Function at 0x49ae50
Capabilities:
Move file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
mov rbx, r8
call qword [sym.imp.msvcrt.dll__wrename]
test eax, eax
jne 0x49ae80
call sym.unk_2897
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.unk_2898
mov rsi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x4a6190
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call sym.unk_2897
mov rbx, rax
test esi, esi
je 0x4a6238
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x4a61f9
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x4a6207
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x4a6230
mov dword [r13], 0
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x4a6211
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [r13 + 8], rbx
mov dword [r13], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x4ab8f0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x4ab917
call rbp
cmp dword [rax], 4
jne 0x4ab934
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x4ab910
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4f5660
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0xc6a4a7935bd1e995
mov rax, rdx
mov r11, rdx
imul rax, r9
and r11, 0xfffffffffffffff8
add r11, rcx
xor rax, r8
cmp rcx, r11
je 0x4f56b0
nop dword [rax + rax]
mov r10, qword [rcx]
add rcx, 8
imul r10, r9
mov r8, r10
shr r8, 0x2f
xor r8, r10
imul r8, r9
xor r8, rax
mov rax, r8
imul rax, r9
cmp r11, rcx
jne 0x4f5688
and edx, 7
je 0x4f575b
lea ecx, [rdx - 1]
movsxd rcx, ecx
movzx r8d, byte [r11 + rcx]
mov ecx, edx
sub ecx, 2
js 0x4f574a
movsxd rcx, ecx
shl r8, 8
movzx ecx, byte [r11 + rcx]
add r8, rcx
lea ecx, [rdx - 3]
cmp rdx, 2
je 0x4f574a
movsxd rcx, ecx
shl r8, 8
movzx ecx, byte [r11 + rcx]
add r8, rcx
lea ecx, [rdx - 4]
cmp rdx, 3
je 0x4f574a
movsxd rcx, ecx
shl r8, 8
movzx ecx, byte [r11 + rcx]
add r8, rcx
lea ecx, [rdx - 5]
cmp rdx, 4
je 0x4f574a
movsxd rcx, ecx
shl r8, 8
movzx ecx, byte [r11 + rcx]
add r8, rcx
lea ecx, [rdx - 6]
cmp rdx, 5
je 0x4f574a
movsxd rcx, ecx
shl r8, 8
movzx ecx, byte [r11 + rcx]
add r8, rcx
cmp edx, 7
jne 0x4f574a
movzx edx, byte [r11]
shl r8, 8
add r8, rdx
xor r8, rax
movabs rax, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
movabs r8, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
ret

Function at 0x4f6be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, r8
test rdx, rdx
je 0x4f6c0b
movabs r9, 0x100000001b3
add rdx, rcx
nop dword [rax]
movsx r8, byte [rcx]
inc rcx
xor rax, r8
imul rax, r9
cmp rcx, rdx
jne 0x4f6bf8
ret
Function at 0x2fc4db7c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dc1c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dc25a
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dc23e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dc232
cmp qword [rbp - 0x10], 0
je 0x2fc4dc232
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dc1f8
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dc25b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dc360
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dc388
mov eax, 0
jmp 0x2fc4dc3d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dc3b1
mov eax, 0
jmp 0x2fc4dc3d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dc3d1
mov eax, 0
jmp 0x2fc4dc3d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dc3dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dc45a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dc451
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dc451
mov rax, qword [rbp - 8]
jmp 0x2fc4dc46f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dc424
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140632b00]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140632b10]
mov dword [rax], 1
mov rax, qword [0x140632b20]
mov dword [rax], 1
mov rax, qword [0x140632aa0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140632af0]
mov dword [0x14063800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140632bc0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140632ba0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140632a50]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140008730
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 0x1400087c0
cmp r11, r10
ja 0x140008836
cmp r10, rdx
ja 0x140008848
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400087c2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400087a0
jmp 0x140008824
ja 0x1400087ca
mov r11, r10
cmp rax, r8
jne 0x140008764
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 0x140008800
mov rdi, r8
sub ecx, edx
jns 0x14000881b
jmp 0x140008826
cmp r8, rsi
je 0x140008857
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140008826
xor al, 1
cmp rdi, rsi
jne 0x1400087e0
jmp 0x140008826
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 dbg.slice_index_order_fail
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call dbg.slice_end_index_len_fail
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call dbg.panic
int3

Function at 0x14000b5fe
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14004a028]
test ecx, ecx
je 0x14000b617
dec ecx
add rsp, 0x28
jmp fcn.140047574
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h5ec101c779210f82
call dbg.init
mov ecx, eax
jmp 0x14000b60e

Function at 0x14000b627
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000b648
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14004756c
mov rcx, rax
call dbg.init
mov ecx, eax
jmp 0x14000b63b

Function at 0x14000b654
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx]
mov edx, 1
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::set::h153203d1f1ddd8f8
mov rcx, qword [rsi + 8]
call sym._ZN4core3ptr208drop_in_place_LT_core..option..Option_LT_alloc..rc..Rc_LT_core..cell..UnsafeCell_LT_rand..rngs..adapter..reseed
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
mov rcx, rdi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp sym.std::sys::windows::thread_local_key::StaticKey::set::h153203d1f1ddd8f8
Function at 0x14000c1c2
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call sym.__rand_core::os::OsRng_as_rand_core::RngCore_::try_fill_bytes::ha81fc9a0b4050aa8
test rax, rax
je 0x14000c1fa
mov edx, 4
mov rcx, rax
call sym.__rust_dealloc
jmp 0x14000c233
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call sym.__rand_chacha::chacha::ChaCha12Core_as_rand_core::SeedableRng_::from_seed::he880a1704b171136
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp sym.__rand_chacha::chacha::ChaCha12Core_as_rand_core::block::BlockRngCore_::generate::h660902c8405aaef0
Function at 0x14000e99c
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x14000ea2d
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x14000e9bc
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14000e9bc
xor ebx, 0x80000000
je 0x14000ea2b
mov al, byte [0x140638120]
mov ecx, 4
mov edx, 4
call sym.__rust_alloc
test rax, rax
je 0x14000ea40
mov rsi, rax
mov dword [rax], ebx
jmp 0x14000ea2d
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call dbg.handle_alloc_error
int3

Function at 0x140012330
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae dbg.do_count_chars
cmp rax, rcx
je 0x140012355
cmp rdx, 4
jae 0x140012358
xor eax, eax
xor r8d, r8d
jmp 0x1400123f0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004b5b0]
movdqa xmm3, xmmword [0x14004b5c0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140012380
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140012407
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400123f0
ret
Function at 0x140013370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x1400133cb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400133cb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x1400133e6
cmp eax, 0x42
jne 0x1400133cb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140013496
cmp byte [r8 + r11], 0x5f
jne 0x140013496
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400134fe
mov rcx, rsi
xor edx, edx
call dbg.print_path
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call dbg.print_path
test al, al
jne 0x140013591
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140013422
lea rdx, [0x140621963]
mov r8d, 1
call dbg.pad
test al, al
jne 0x140013591
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400133da
xor r14d, r14d
lea rbx, [0x140621cd1]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140013454
cmp byte [rax + rcx], 0x45
je 0x1400135b3
sub r14, 1
jb 0x140013479
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140013479
mov r8d, 2
mov rdx, rbx
call dbg.pad
test al, al
jne 0x140013591
mov rcx, rsi
call dbg.print_generic_arg
test al, al
jne 0x140013591
mov rax, qword [rsi]
test rax, rax
jne 0x140013440
jmp 0x1400133da
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140013558
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1400134f2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400134dc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400134cb
add dl, 0xa9
jmp 0x1400134da
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140013558
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140013558
movzx edx, bl
add rax, rdx
jae 0x1400134a0
jmp 0x140013558
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140013558
cmp rax, rcx
jae 0x140013555
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400135ab
cmp qword [rsi + 0x20], 0
je 0x1400135a4
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call dbg.print_path_maybe_open_generics
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400133dc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140013599
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140621cb0]
test r9b, r9b
cmovne rdx, rax
call dbg.pad
test al, al
je 0x140013599
mov dil, 2
jmp 0x1400133da
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400133da
mov dil, 1
xor r9d, r9d
jmp 0x14001355a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400133da