joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a560
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rcx
mov r13, rdx
mov rsi, r8
mov rdi, r9
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41a6e8
test rbp, rbp
je 0x41a59b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x41a610
test rsi, rsi
je 0x41a600
mov ecx, 0x14
call r14
cmp esi, 4
je 0x41a610
add rsi, 1
jmp 0x41a5cf
xor ecx, ecx
call r12
jmp 0x41a5f9
lea rsi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rsi
call sym.replace_spin_keys.constprop.10
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x41a6cd
xor edx, edx
test r13, r13
je 0x41a66d
mov eax, dword [r13]
mov edx, dword [r13 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x41a7a0
mov eax, dword [r13 + 0x18]
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [sym.pthread_create_wrapper]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rdi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x41a700
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41a6ac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov rcx, rsi
call sym.replace_spin_keys.constprop.10
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test rbp, rbp
je 0x41a6da
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x41a790
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x41a730
add edx, 0xd
cmp eax, 0xffffffff
jl 0x41a730
cmp eax, 0xe
mov edx, 0xf
jle 0x41a7c0
nop word cs:[rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x41a770
mov qword [rbx + 0x28], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rdi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a756
mov rcx, rbx
call sym.push_pthread_mem.part.2
jmp 0x41a6e8
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [rbx + 0xc0], eax
jmp 0x41a66d
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x41a730
Function at 0x41d760
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x41d78c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x41e360
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x004a3e70], 0
jne 0x41e466
mov byte [0x004a3e70], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x41e43c
mov rbx, qword [rax + 8]
lea r9, [rsp + 0x2c]
xor eax, eax
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x41e42d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x004a56a1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x41e428
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x41e3f7
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x41e4fb
call sym.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x41e461
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x41e461

Function at 0x46c1b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x46c1d8
call r12
cmp dword [rax], 4
jne 0x46c1f6
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x46c1d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x47d590
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, str.mt19937
mov rcx, rsi
call method.std::string.compare_char_const__const
mov ecx, 0x1571
test eax, eax
jne 0x47d5f5
mov dword [rbx], ecx
mov edx, 1
jmp 0x47d5c4
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x47d5c0
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sym.strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x47d619
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x47d5b4
lea rcx, str.random_device::random_device_const_std::string_
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4a0e10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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 rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140004d50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edi, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x18b
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x140004e8f
nop word [rax + rax]
movsxd rsi, edi
xor r9d, r9d
mov r8, rsi
mov edx, 0x187
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140004e70
xor r9d, r9d
mov r8, rsi
mov edx, 0x199
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
or ebx, 1
mov dword [rsp + 0x38], ebx
mov r8, qword [rsi + 0x28]
mov rcx, qword [rsi + 8]
mov rdx, qword [rcx]
mov qword [rsp + 0x28], rdx
lea rcx, [rsp + 0x30]
test r8, r8
je 0x140004e27
mov rax, qword [rsi + 0x20]
mov r9, qword [rax]
mov r8, qword [r8]
lea rdx, str._s_s_llu_s
jmp 0x140004e3c
lea r9, str._md5_256kb__
lea r8, str._md5_file__
lea rdx, str._s_s_llu_s_r_n
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov r8, qword [rsp + 0x30]
lea rdx, str._s_r_n
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CPane::AllocElements]
and ebx, 0xfffffffe
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x18b
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jl 0x140004db0
mov rsi, qword [rsp + 0x40]
mov eax, dword [rsi - 0x10]
inc eax
movsxd rdi, eax
add rdi, rdi
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140004f0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x140004ece
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140004f0c
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140004f0c
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1406c8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406c81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c806f
add dl, dl
jne 0x1406c8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c80f6
xor eax, eax
add dl, dl
jne 0x1406c80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c81ad
add dl, dl
jne 0x1406c80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c807e
mov eax, 1
add dl, dl
jne 0x1406c8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c80fb
sub eax, ebx
mov ebx, 1
jne 0x1406c814c
mov ecx, 1
add dl, dl
jne 0x1406c812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c815d
cmp eax, 0x7d00
jae 0x1406c819b
cmp eax, 0x500
jb 0x1406c8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c807e
cmp eax, 0x7f
ja 0x1406c819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x8d17b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008d193f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x8d17e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x8d17cf
add dl, dl
jne 0x8d17f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x8d1856
xor eax, eax
add dl, dl
jne 0x8d1805
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x8d190d
add dl, dl
jne 0x8d1816
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d1823
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d1830
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d183d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x8d184a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x8d17de
mov eax, 1
add dl, dl
jne 0x8d1866
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d1873
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x8d185b
sub eax, ebx
mov ebx, 1
jne 0x8d18ac
mov ecx, 1
add dl, dl
jne 0x8d188e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d189b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x8d1883
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x8d17de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d18c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d18d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x8d18bd
cmp eax, 0x7d00
jae 0x8d18fb
cmp eax, 0x500
jb 0x8d18f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x8d17de
cmp eax, 0x7f
ja 0x8d18fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x8d17de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x8d1932
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x8d17de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x14196b88c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14196b896
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14196b8bf
pop rbp
sub rbp, 0x33
sub rbp, 0x196b88c
sub rsp, 0x20
jmp 0x14196b8de
mov rax, 0x196b88c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffa1b4cffe
xor byte [rax], dl
inc rax
dec rcx
jne 0x14196b8fd
jmp 0x14196b914
mov dh, 0x77
invalid
Function at 0x14000610e
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x14000612c
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
and qword [rcx], 0
cmp r8, 1
je 0x140006160
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14000615b
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140006160
call fcn.14001dd00
mov ecx, dword [0x14004e198]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
add rsp, 0x38
ret
Function at 0x14000d0c0
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 0x14000d150
cmp r10, r11
jb 0x14000d1c6
cmp r10, rdx
ja 0x14000d1da
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000d152
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000d130
jmp 0x14000d1b4
ja 0x14000d15a
mov r11, r10
cmp rax, r8
jne 0x14000d0f4
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 0x14000d190
mov rdi, r8
sub ecx, edx
jns 0x14000d1ab
jmp 0x14000d1b6
cmp r8, rsi
je 0x14000d1eb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000d1b6
xor al, 1
cmp rdi, rsi
jne 0x14000d170
jmp 0x14000d1b6
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.140031150
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140030f50
ud2
lea rcx, str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_88fb1b922b047981fc0cfc62aa1418b4361ae72elibrary_alloc_src_vecmod.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140030f60
ud2
Function at 0x140014120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001417b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001417b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140014196
cmp eax, 0x42
jne 0x14001417b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140014246
cmp byte [r9 + r11], 0x5f
jne 0x140014246
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400142ae
mov rcx, rsi
xor edx, edx
call fcn.14000fb80
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 fcn.14000fb80
test al, al
jne 0x140014341
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400141d2
lea rdx, [0x14003e2a3]
mov r8d, 1
call fcn.14000afa0
test al, al
jne 0x140014341
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001418a
xor r14d, r14d
lea rbx, [0x14003e66e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140014204
cmp byte [rax + rcx], 0x45
je 0x140014363
sub r14, 1
jb 0x140014229
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014229
mov r8d, 2
mov rdx, rbx
call fcn.14000afa0
test al, al
jne 0x140014341
mov rcx, rsi
call fcn.140014380
test al, al
jne 0x140014341
mov rax, qword [rsi]
test rax, rax
jne 0x1400141f0
jmp 0x14001418a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140014308
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400142a2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001428c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001427b
add dl, 0xa9
jmp 0x14001428a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140014308
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140014308
movzx edx, bl
add rax, rdx
jae 0x140014250
jmp 0x140014308
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140014308
cmp rax, rcx
jae 0x140014305
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001435b
cmp qword [rsi + 0x20], 0
je 0x14001436f
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 fcn.140014120
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001418c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014349
lea rax, [0x14003e639]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14000afa0
test al, al
je 0x140014349
mov dil, 2
jmp 0x14001418a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001418a
mov dil, 1
xor r8d, r8d
jmp 0x14001430a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001418a
xor edi, edi
jmp 0x14001418a
Function at 0x14001b640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14001b670
test ecx, ecx
jne 0x14001b6c0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001b67c
test ecx, ecx
jne 0x14001b6c0
mov rcx, rdi
call fcn.14001b520
movzx eax, al
test bpl, bpl
jne 0x14001b6c7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14001b6b3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14001b838]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14001b6b3.2
xor eax, eax
test bpl, bpl
je 0x14001b68c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14001b819
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001b6fa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14001b779
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14001b740
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001b75b
inc rax
dec rdi
cmp rax, 1
jne 0x14001b720
jmp 0x14001b779
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001b75b
cmp ebx, 0x5c
je 0x14001b75b
inc rax
dec rdi
cmp rax, 1
jne 0x14001b740
jmp 0x14001b779
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14001b827
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14001b7a3
mov al, 9
cmp rdx, 2
je 0x14001b7a7
cmp rdx, 1
jne 0x14001b7b7
cmp byte [r8], 0x2e
jne 0x14001b7b7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14001b7b7
mov al, 0xa
jmp 0x14001b7b7
cmp byte [r8], 0x2e
jne 0x14001b7b7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14001b6b3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14001b6b3.2
mov ecx, 2
jmp case.0x14001b6b3.2
lea r8, str.library_std_srcpath.rs
call fcn.140030f40
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140030f40
ud2
Function at 0x14001dd00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14001dd43
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14001c510]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140030e80
ud2

Function at 0x140026f28
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140026d18