joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7d2
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov r9, qword [rbp + 0x10]
mov r8d, 0x35
mov edx, 1
lea rcx, str.____build_id_STYLE___________Generate_build_ID_note_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x82
mov edx, 1
lea rcx, str.____compress_debug_sections_nonezlibzlib_gnuzlib_gabi__n______________________________Compress_DWARF_debug_sections_using_zlib_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x2d
mov edx, 1
lea rcx, str._______________________________Default:_none_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x3b
mov edx, 1
lea rcx, str.___z_common_page_sizeSIZE____Set_common_page_size_to_SIZE_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x3c
mov edx, 1
lea rcx, str.___z_max_page_sizeSIZE_______Set_maximum_page_size_to_SIZE_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x48
mov edx, 1
lea rcx, str.___z_defs_____________________Report_unresolved_symbols_in_object_files_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x39
mov edx, 1
lea rcx, str.___z_muldefs__________________Allow_multiple_definitions_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x4c
mov edx, 1
lea rcx, str.___z_execstack________________Mark_executable_as_requiring_executable_stack_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x50
mov edx, 1
lea rcx, str.___z_noexecstack______________Mark_executable_as_not_requiring_executable_stack_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x48
mov edx, 1
lea rcx, str.___z_globalaudit______________Mark_executable_requiring_global_auditing_n
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x20
pop rbp
ret

Function at 0x40b8f3
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov r9, qword [rbp + 0x10]
mov r8d, 0x47
mov edx, 1
lea rcx, str.____ld_generated_unwind_info__Generate_exception_handling_info_for_PLT_n
call sub.msvcrt.dll_fwrite
mov r9, qword [rbp + 0x10]
mov r8d, 0x6d
mov edx, 1
lea rcx, str.____no_ld_generated_unwind_info_n______________________________Dont_generate_exception_handling_info_for_PLT_n
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x20
pop rbp
ret
Function at 0x414052
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov r9, rax
mov r8d, 0xd
mov edx, 1
lea rcx, str._FILL_mask_0x
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
add rax, 8
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rbp - 8], rax
jmp 0x4140d5
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov r8d, edx
lea rdx, [0x0052ebbb]
mov rcx, rax
call sub.msvcrt.dll_fprintf
add qword [rbp - 0x10], 1
sub qword [rbp - 8], 1
cmp qword [rbp - 8], 0
jne 0x4140a4
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
nop
add rsp, 0x30
pop rbp
ret

Function at 0x4147f4
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov r9, rax
mov r8d, 0xc
mov edx, 1
lea rcx, str.START_GROUP_n
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call fcn.00414869
mov rax, qword [0x005865e0]
mov rax, qword [rax + 0x58]
mov r9, rax
mov r8d, 0xa
mov edx, 1
lea rcx, str.END_GROUP_n
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x20
pop rbp
ret
Function at 0x4252a5
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0xc], 0
lea rax, [0x004fe100]
mov qword [rbp - 8], rax
jmp 0x425318
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0xb0]
test rax, rax
je 0x425313
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x58]
mov r8, rax
lea rdx, str._s:__n
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fprintf
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0xb0]
mov rcx, qword [rbp + 0x10]
call rax
mov dword [rbp - 0xc], 1
add qword [rbp - 8], 8
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
jne 0x4252c5
cmp dword [rbp - 0xc], 0
jne 0x425345
mov r9, qword [rbp + 0x10]
mov r8d, 0x21
mov edx, 1
lea rcx, str.__no_emulation_specific_options._n
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x40
pop rbp
ret
Function at 0x4286ae
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov r9, qword [rbp + 0x10]
mov r8d, 0x18
mov edx, 1
lea rcx, str._nCross_Reference_Table_n_n
call sub.msvcrt.dll_fwrite
lea rax, str.Symbol
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fputs
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [rbp - 4], eax
jmp 0x428713
mov rdx, qword [rbp + 0x10]
mov ecx, 0x20
call sub.msvcrt.dll_putc
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x31
jle 0x428701
mov r9, qword [rbp + 0x10]
mov r8d, 5
mov edx, 1
lea rcx, str.File_n
call sub.msvcrt.dll_fwrite
mov eax, dword [0x0059e748]
test eax, eax
jne 0x42875e
mov r9, qword [rbp + 0x10]
mov r8d, 0xb
mov edx, 1
lea rcx, str.No_symbols_n
call sub.msvcrt.dll_fwrite
jmp 0x428832
mov rax, qword [0x0059e750]
shl rax, 3
mov rcx, rax
call fcn.004fb406
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x30]
mov r8, rax
lea rdx, [0x00428593]
lea rcx, [0x0059e720]
call fcn.0043f15c
mov rax, qword [rbp - 0x30]
mov rdx, rax
mov rax, qword [rbp - 0x20]
sub rdx, rax
mov rax, rdx
sar rax, 3
mov rdx, rax
mov rax, qword [0x0059e750]
cmp rdx, rax
je 0x4287cc
mov edx, 0x188
lea rcx, str._workdir_repo_binutils_gdb_gnu_ld_ldcref.c
call fcn.00426b58
mov rdx, qword [0x0059e750]
mov rax, qword [rbp - 0x20]
lea r9, [0x0042863d]
mov r8d, 8
mov rcx, rax
call sub.msvcrt.dll_qsort
mov rax, qword [0x0059e750]
lea rdx, [rax*8]
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x10], rax
jmp 0x428828
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00428838
add qword [rbp - 0x10], 8
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x28]
jb 0x428810
add rsp, 0x50
pop rbp
ret
Function at 0x43c074
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
jge 0x43c0cf
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_ferror
test eax, eax
je 0x43c0cf
mov ecx, 1
call fcn.0043833d
mov rax, qword [rbp - 8]
jmp 0x43c0e7
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
jge 0x43c0e3
mov ecx, 0x12
call fcn.0043833d
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x446c1b
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
not dword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x446c76
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax]
movzx eax, al
xor eax, dword [rbp + 0x10]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x0055ce60]
mov eax, dword [rdx + rax]
mov edx, dword [rbp + 0x10]
shr edx, 8
xor eax, edx
mov dword [rbp + 0x10], eax
add qword [rbp + 0x18], 1
mov rax, qword [rbp + 0x18]
cmp rax, qword [rbp - 8]
jb 0x446c42
mov eax, dword [rbp + 0x10]
not eax
add rsp, 0x10
pop rbp
ret

Function at 0x44c805
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x44c826
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
jmp 0x44c836
lea rcx, str.GNUTARGET
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x44c854
mov rax, qword [rbp - 8]
lea rdx, str.default
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x44c8a2
mov rax, qword [0x004fe8b0]
test rax, rax
je 0x44c86d
mov rax, qword [0x004fe8b0]
mov qword [rbp - 0x10], rax
jmp 0x44c87b
mov rax, qword [0x004fe8a0]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
cmp qword [rbp + 0x18], 0
je 0x44c89c
mov rax, qword [rbp + 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp + 0x18]
movzx edx, byte [rax + 0x43]
or edx, 4
mov byte [rax + 0x43], dl
mov rax, qword [rbp - 0x10]
jmp 0x44c8ec
cmp qword [rbp + 0x18], 0
je 0x44c8b7
mov rax, qword [rbp + 0x18]
movzx edx, byte [rax + 0x43]
and edx, 0xfffffffb
mov byte [rax + 0x43], dl
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.0044c6e0
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x44c8d5
mov eax, 0
jmp 0x44c8ec
cmp qword [rbp + 0x18], 0
je 0x44c8e8
mov rax, qword [rbp + 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x10]
add rsp, 0x30
pop rbp
ret
Function at 0x46e436
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0x1505
jmp 0x46e469
mov eax, dword [rbp - 0xc]
shl eax, 5
mov edx, eax
mov eax, dword [rbp - 0xc]
add edx, eax
movzx eax, byte [rbp - 0xd]
add eax, edx
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov qword [rbp - 8], rdx
movzx eax, byte [rax]
mov byte [rbp - 0xd], al
cmp byte [rbp - 0xd], 0
jne 0x46e453
mov eax, dword [rbp - 0xc]
add rsp, 0x10
pop rbp
ret
Function at 0x4ab91c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x18]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.004ab83b
test eax, eax
jne 0x4ab956
mov eax, 0
jmp 0x4ab9be
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp - 8], rax
sub qword [rbp - 8], 1
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
and eax, 0x7f
xor eax, 0x40
sub eax, 0x40
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
mov qword [rax], rdx
jmp 0x4ab9af
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
shl rax, 7
mov rdx, rax
sub qword [rbp - 8], 1
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
and eax, 0x7f
or rdx, rax
mov rax, qword [rbp + 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x10]
ja 0x4ab985
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x4eeb30
Capabilities:
Hash data with md5

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x67452301
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0xefcdab89
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x98badcfe
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0x10325476
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], edx
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], 0
nop
pop rbp
ret

Function at 0x4efd30
Capabilities:
Hash data using sha1

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x67452301
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0xefcdab89
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x98badcfe
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0x10325476
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0xc3d2e1f0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], 0
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x18]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], edx
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x1c], 0
nop
pop rbp
ret
Function at 0x4f5c2b
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [0x0051b190]
mov dword [0x005a2f6c], eax
mov eax, dword [0x005a2f6c]
mov dword [0x005a2f68], eax
mov qword [0x005a2f50], 0
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov qword [0x005a2f60], rax
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x4f5c90
mov dword [0x005a2f58], 2
add qword [rbp + 0x20], 1
jmp 0x4f5cce
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x4f5cac
mov dword [0x005a2f58], 0
add qword [rbp + 0x20], 1
jmp 0x4f5cce
mov rax, qword [0x005a2f60]
test rax, rax
je 0x4f5cc4
mov dword [0x005a2f58], 0
jmp 0x4f5cce
mov dword [0x005a2f58], 1
mov rax, qword [rbp + 0x20]
add rsp, 0x20
pop rbp
ret
Function at 0x4fbca0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x005a36e4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x4fbdc0
mov rax, qword [0x005a36e8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4fbcec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x4fbda6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x4fbcd0
mov rcx, rsi
call fcn.004fc8e0
test rax, rax
mov r12, rax
je 0x4fbdf8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x005a36e8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.004fca30
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x005a36e8]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4fbddb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4fbd9f
sub eax, 0x40
and eax, 0xffffffbf
je 0x4fbd9f
add rbx, qword [0x005a36e8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4fbdc7
add dword [0x005a36e4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x4fbcf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004fbc30
mov rax, qword [0x005a36e8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004fbc30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.004fbc30
nop
nop dword [rax + rax]

Function at 0x4fc550
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005a39c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005a39a0]
test rbx, rbx
je 0x4fc5a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4fc59b
test rsi, rsi
je 0x4fc59b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4fc580
lea rcx, [0x005a39c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4fc8e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00586300]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4fc900
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004fc7c0
test eax, eax
je 0x4fc8f8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4fc95d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4fc954
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4fc8f8
add rdx, 0x28
cmp rdx, r9
jne 0x4fc940
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4fcc20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x4fcdac
cmp byte [rbx], 0
je 0x4fcd74
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4fcd90
test al, 0x10
je 0x4fcd74
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4fcc7e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x4fcd9f
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x4fcd10
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x4fcd10
cmp al, 0x5c
je 0x4fcd10
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x4fcd65
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x4fcd65
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x4fcd65
Function at 0x140002b80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002bdd
lea rbx, [0x140040640]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002bc4
cmp r10, 2
jb 0x140002bc4
cmp byte [r9], r8b
jne 0x140002bc4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002ba0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002c1f
lea rbx, [0x140040640]
cmp r8b, 0x23
jne 0x140002c03
cmp byte [r9], r8b
jne 0x140002c03
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002bf0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002de0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002e0f
mov r8d, 0x748
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140002e1b
mov qword [rdi], 0
lea rdx, [0x14003ff08]
mov rcx, rbx
call fcn.140002c30
mov rbx, rax
test rax, rax
jne 0x140002e3d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002f14
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002f14
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002f14
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002f14
cmp rsi, 0xffffffffffffffff
je 0x140002f14
mov rax, qword [0x14004d1e0]
test rax, rax
je 0x140002eb1
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002f14
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002f01
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004d1e0]
test rax, rax
je 0x140002ef6
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002f1d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002f0f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002f1f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005670
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xd0], 0
mov rbx, rcx
movsxd rdi, edx
jg 0x1400056a7
mov r8d, 0x702
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0xd8]
lea rdx, [0x140040640]
movsxd r8, dword [rbx + 0xd0]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [0x14004d1e0]
not ebx
cmp dword [rcx + 0x3ec4], ebx
jne 0x140005726
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001b430
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014330
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x14004d1e0]
mov edi, ecx
cmp byte [rbx + 0x423d], 0
jne 0x140014382
cmp byte [rbx + 0x423e], 0
jne 0x140014382
movsx r9d, word [rbx + 0x5332]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002a40
test dil, 1
je 0x1400144a8
jmp 0x14001440b
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x140046fac]
xor eax, eax
mulss xmm1, dword [0x140046f8c]
addss xmm0, dword [rbx + 0xdfc]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x3fa8], rax
mov dword [rbx + 0x3f94], 1
movss dword [rbx + 0x3fa0], xmm0
movss dword [rbx + 0x3fa4], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x140046efc]
or dword [rbx + 0x3f90], 0x41
movss dword [rbx + 0x3ff0], xmm0
movsx r9d, word [rbx + 0x5332]
call fcn.140002a40
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140014460
lea r11, [0x140040640]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140014443
cmp byte [r8], r9b
jne 0x140014443
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140014430
not ecx
call fcn.14000bc50
test rax, rax
je 0x1400144a8
cmp byte [rax + 0x96], 0
je 0x1400144a8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5332]
mov edx, 0x10
movsx r9d, word [rbx + 0x5332]
call fcn.140002a40
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000e580
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret