joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c2fc0
Capabilities:
Encode data using xor

Disassembly:
endbr64
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
movups xmmword [rsp + 0x90], xmm6
movups xmmword [rsp + 0xa0], xmm7
movups xmmword [rsp + 0xb0], xmm8
mov rsi, qword [0x14023b4a0]
mov rax, qword [rsi]
mov qword [rsp + 0x88], rax
xor eax, eax
mov r13, rcx
mov rbx, rdx
mov rbp, r8
cmp r8, 0x40
ja 0x1400c3178
movdqu xmm0, xmmword [str.6666666666666666_]
pxor xmm8, xmm8
movdqu xmm7, xmmword [0x140232010]
mov qword [rcx + 0x38], 0
movdqu xmm6, xmmword [0x140232020]
movups xmmword [rcx + 0x20], xmm8
lea r12, [rsp + 0x40]
mov qword [rcx + 0x30], 0
movups xmmword [rcx], xmm7
movups xmmword [rcx + 0x10], xmm6
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
test r8, r8
je 0x1400c31f0
lea rdi, [rsp + 0x20]
mov rax, r12
mov rdx, rbx
lea r8, [r12 + rbp]
nop dword [rax]
movzx ecx, byte [rdx]
xor byte [rax], cl
add rax, 1
add rdx, 1
cmp r8, rax
jne 0x1400c3080
mov r8d, 0x200
mov rdx, r12
mov rcx, r13
call sym.blake256_update
pxor xmm0, xmm0
mov rax, r12
mov rdx, rbx
movups xmmword [r13 + 0xa0], xmm0
movdqu xmm0, xmmword [0x140232040]
lea r8, [r12 + rbp]
lea rcx, [r13 + 0x80]
mov qword [r13 + 0xb8], 0
mov qword [r13 + 0xb0], 0
movups xmmword [r13 + 0x80], xmm7
movups xmmword [r13 + 0x90], xmm6
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
nop word [rax + rax]
movzx r9d, byte [rdx]
xor byte [rax], r9b
add rax, 1
add rdx, 1
cmp r8, rax
jne 0x1400c3108
mov rdx, r12
mov r8d, 0x200
call sym.blake256_update
mov edx, 0x20
mov rcx, rdi
call sym.memwipe
mov rax, qword [rsp + 0x88]
sub rax, qword [rsi]
jne 0x1400c3259
movups xmm6, xmmword [rsp + 0x90]
movups xmm7, xmmword [rsp + 0xa0]
movups xmm8, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdi, [rsp + 0x20]
mov ebp, 0x1c
lea r12, [rsp + 0x40]
mov rcx, rdi
mov rbx, rdi
call sym.blake256_hash
pxor xmm0, xmm0
movdqu xmm7, xmmword [0x140232010]
movdqu xmm6, xmmword [0x140232020]
movups xmmword [r13 + 0x20], xmm0
movdqu xmm0, xmmword [str.6666666666666666_]
mov qword [r13 + 0x38], 0
mov qword [r13 + 0x30], 0
movups xmmword [r13], xmm7
movups xmmword [r13 + 0x10], xmm6
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
jmp 0x1400c3073
mov r8d, 0x200
mov rdx, r12
lea rdi, [rsp + 0x20]
call sym.blake256_update
movdqu xmm0, xmmword [0x140232040]
mov qword [r13 + 0xb8], 0
lea rcx, [r13 + 0x80]
mov qword [r13 + 0xb0], 0
movups xmmword [r13 + 0x80], xmm7
movups xmmword [r13 + 0x90], xmm6
movups xmmword [r13 + 0xa0], xmm8
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
jmp 0x1400c311c
call dbg.__stack_chk_fail
nop
nop
Function at 0x1400c4770
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov r12, qword [0x14023b4a0]
mov rax, qword [r12]
mov qword [rsp + 0x128], rax
xor eax, eax
mov rdi, rcx
lea rbp, [rsp + 0x20]
lea rbx, [rsp + 0xe0]
movdqu xmm1, xmmword [rdx + rax]
movdqu xmm0, xmmword [rdi + rax]
pxor xmm0, xmm1
movups xmmword [rbx + rax], xmm1
movups xmmword [rbp + rax], xmm0
add rax, 0x10
cmp rax, 0x40
jne 0x1400c47a4
lea rsi, [rsp + 0xa0]
xor r8d, r8d
lea r13, [rsp + 0x60]
mov rcx, rbx
mov rdx, rsi
call sym.RND512Q
mov r8d, 0x1000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x2000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x3000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x4000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x5000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x6000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x7000000
mov rdx, rbx
mov rcx, rsi
call sym.RND512Q
mov r8d, 0x8000000
mov rdx, rsi
mov rcx, rbx
call sym.RND512Q
mov r8d, 0x9000000
mov rdx, r13
mov rcx, rsi
call sym.RND512Q
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call sym.RND512P
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 2
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 3
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 4
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 5
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 6
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 7
mov rdx, rbx
mov rcx, rsi
call sym.RND512P
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.RND512P
mov r8d, 9
mov rdx, rbp
mov rcx, rsi
call sym.RND512P
xor eax, eax
movdqu xmm0, xmmword [rdi + rax]
pxor xmm0, xmmword [rbp + rax]
pxor xmm0, xmmword [r13 + rax]
movups xmmword [rdi + rax], xmm0
add rax, 0x10
cmp rax, 0x40
jne 0x1400c4922
mov rax, qword [rsp + 0x128]
sub rax, qword [r12]
jne 0x1400c4960
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call dbg.__stack_chk_fail
nop
nop word cs:[rax + rax]
Function at 0x1400c6740
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
endbr64
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rsi, qword [0x14023b4a0]
mov r12, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0x100]
mov rax, qword [rsi]
mov qword [rsp + 0x98], rax
xor eax, eax
mov rbx, r9
mov rax, r8
xor r9d, r9d
or rax, r9
je 0x1400c6802
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r9
call sym.__udivmodti4
mov rcx, qword [rsp + 0x50]
movups xmmword [rsp + 0x20], xmm0
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov qword [rbx], rax
mov qword [r12], rdx
test rbp, rbp
je 0x1400c67db
mov qword [rbp], 0
test rdi, rdi
je 0x1400c67e3
mov qword [rdi], rcx
mov rax, qword [rsp + 0x98]
sub rax, qword [rsi]
jne 0x1400c6879
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, str.eval_divide_128__128__boost::multiprecision::unsigned_magnitude__boost::multiprecision::unchecked__void_
lea rbx, str.D:_Projects_msys2_mingw64_include_boost_multiprecision_cpp_int_divide.hpp
mov qword [rsp + 0x70], 0x282
movq xmm1, rax
movq xmm0, rbx
lea rdi, [rsp + 0x80]
punpcklqdq xmm0, xmm1
lea rdx, str.Division_by_zero.
mov rcx, rdi
movups xmmword [rsp + 0x60], xmm0
call sym.std::overflow_error::overflow_error_char_const_
mov rax, qword [rsp + 0x98]
sub rax, qword [rsi]
jne 0x1400c6879
lea rdx, [rsp + 0x60]
mov rcx, rdi
call method.void_boost::throw_exception_std.overflow_error__std::overflow_error_const__boost::source_location_const_
endbr64
mov rcx, rdi
mov rbx, rax
call fcn.1400fa4b0
mov rax, qword [rsp + 0x98]
sub rax, qword [rsi]
je 0x1400c687e
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [0x14023b4a0]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rbx, r8
mov rsi, rcx
mov rdi, rdx
sub rbx, rdx
mov qword [rsp + 0x20], rbx
cmp rbx, 0xf
ja 0x1400c6900
mov rcx, qword [rcx]
cmp rbx, 1
jne 0x1400c68f8
movzx eax, byte [rdx]
mov byte [rcx], al
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov qword [rsi + 8], rbx
mov byte [rcx + rbx], 0
mov rax, qword [rsp + 0x28]
sub rax, qword [rbp]
jne 0x1400c6931
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rbx, rbx
je 0x1400c68d7
jmp 0x1400c691c
lea rdx, [rsp + 0x20]
xor r8d, r8d
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_create_unsigned_long_long__unsigned_long_long_
mov qword [rsi], rax
mov rcx, rax
mov rax, qword [rsp + 0x20]
mov qword [rsi + 0x10], rax
mov r8, rbx
mov rdx, rdi
call sym.memcpy
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
jmp 0x1400c68d7
call dbg.__stack_chk_fail
nop
nop word [rax + rax]
Function at 0x1400c6890
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
endbr64
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rsi, qword [0x14023b4a0]
mov r12, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0x100]
mov rax, qword [rsi]
mov qword [rsp + 0x98], rax
xor eax, eax
mov rbx, r9
mov rax, r8
xor r9d, r9d
or rax, r9
je 0x1400c6802
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r9
call sym.__udivmodti4
mov rcx, qword [rsp + 0x50]
movups xmmword [rsp + 0x20], xmm0
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov qword [rbx], rax
mov qword [r12], rdx
test rbp, rbp
je 0x1400c67db
mov qword [rbp], 0
test rdi, rdi
je 0x1400c67e3
mov qword [rdi], rcx
mov rax, qword [rsp + 0x98]
sub rax, qword [rsi]
jne 0x1400c6879
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, str.eval_divide_128__128__boost::multiprecision::unsigned_magnitude__boost::multiprecision::unchecked__void_
lea rbx, str.D:_Projects_msys2_mingw64_include_boost_multiprecision_cpp_int_divide.hpp
mov qword [rsp + 0x70], 0x282
movq xmm1, rax
movq xmm0, rbx
lea rdi, [rsp + 0x80]
punpcklqdq xmm0, xmm1
lea rdx, str.Division_by_zero.
mov rcx, rdi
movups xmmword [rsp + 0x60], xmm0
call sym.std::overflow_error::overflow_error_char_const_
mov rax, qword [rsp + 0x98]
sub rax, qword [rsi]
jne 0x1400c6879
lea rdx, [rsp + 0x60]
mov rcx, rdi
call method.void_boost::throw_exception_std.overflow_error__std::overflow_error_const__boost::source_location_const_
endbr64
mov rcx, rdi
mov rbx, rax
call fcn.1400fa4b0
mov rax, qword [rsp + 0x98]
sub rax, qword [rsi]
je 0x1400c687e
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [0x14023b4a0]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rbx, r8
mov rsi, rcx
mov rdi, rdx
sub rbx, rdx
mov qword [rsp + 0x20], rbx
cmp rbx, 0xf
ja 0x1400c6900
mov rcx, qword [rcx]
cmp rbx, 1
jne 0x1400c68f8
movzx eax, byte [rdx]
mov byte [rcx], al
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov qword [rsi + 8], rbx
mov byte [rcx + rbx], 0
mov rax, qword [rsp + 0x28]
sub rax, qword [rbp]
jne 0x1400c6931
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rbx, rbx
je 0x1400c68d7
jmp 0x1400c691c
lea rdx, [rsp + 0x20]
xor r8d, r8d
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_create_unsigned_long_long__unsigned_long_long_
mov qword [rsi], rax
mov rcx, rax
mov rax, qword [rsp + 0x20]
mov qword [rsi + 0x10], rax
mov r8, rbx
mov rdx, rdi
call sym.memcpy
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
jmp 0x1400c68d7
call dbg.__stack_chk_fail
nop
nop word [rax + rax]
Function at 0x1400c6940
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
endbr64
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, qword [0x14023b4a0]
xor r9d, r9d
mov rdx, qword [rcx + 8]
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
xor eax, eax
lea rsi, [rsp + 0x30]
lea rdi, [rsp + 0x40]
mov word [rsp + 0x40], ax
mov rax, qword [rcx]
mov r8, rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0
add rdx, rax
mov rcx, rax
call sym.boost::filesystem::detail::path_traits::convert_char_const__char_const__std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____std::codecvt_wchar_t__char__int__const_
lea rcx, [rsp + 0x28]
xor r8d, r8d
mov rdx, rsi
call sym.boost::filesystem::detail::status_boost::filesystem::path_const__boost::system::error_code_
mov rcx, qword [rsp + 0x30]
cmp dword [rsp + 0x28], 1
seta sil
cmp rcx, rdi
je 0x1400c69c5
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rsp + 0x58]
sub rax, qword [rbx]
jne 0x1400c69f2
mov eax, esi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
mov rdi, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::_M_dispose__
mov rax, qword [rsp + 0x58]
sub rax, qword [rbx]
je 0x1400c69fd
call dbg.__stack_chk_fail
endbr64
jmp 0x1400c69dd
mov rcx, rdi
call sym._Unwind_Resume
nop
nop word cs:[rax + rax]
Function at 0x1400c6a10
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
endbr64
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rbp, qword [0x14023b4a0]
xor r8d, r8d
mov rax, qword [rbp]
mov qword [rsp + 0x98], rax
xor eax, eax
lea rax, [rsp + 0x70]
mov rsi, rdx
lea rdi, [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0
mov word [rsp + 0x60], r8w
call method.epee::string_tools.utf8_to_utf16_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rax, qword [rsp + 0x70]
lea rbx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x78]
cmp rax, rbx
je 0x1400c6bf0
movq xmm0, r8
movhps xmm0, qword [rsp + 0x80]
cmp rcx, rdi
je 0x1400c6bc8
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x58], xmm0
test rcx, rcx
je 0x1400c6bd2
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x78], 0
xor eax, eax
mov word [rcx], ax
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x1400c6aea
mov rax, qword [rsp + 0x80]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c6bc0
mov r12, qword [rsi + 8]
mov rdx, qword [rsi]
lea r9, [rsp + 0x4c]
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [rsp + 0x4c], r12d
je 0x1400c6ba0
mov rcx, qword [rsp + 0x50]
cmp rcx, rdi
je 0x1400c6b74
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rsp + 0x98]
sub rax, qword [rbp]
jne 0x1400c6c66
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test esi, esi
setne bl
jmp 0x1400c6b5b
xor ebx, ebx
jmp 0x1400c6b5b
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x70], rbx
lea rbx, [rsp + 0x80]
mov rcx, rbx
jmp 0x1400c6ac0
test r8, r8
je 0x1400c6c10
cmp r8, 1
je 0x1400c6c30
add r8, r8
mov rdx, rbx
call sym.memcpy
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x58], r8
mov word [rcx + r8*2], dx
mov rcx, qword [rsp + 0x70]
jmp 0x1400c6ac0
movzx eax, word [rsp + 0x80]
mov word [rcx], ax
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
jmp 0x1400c6c10
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop word cs:[rax + rax]
nop
Function at 0x1400c6c80
Capabilities:
Get file size
Read file on windows

Disassembly:
endbr64
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r12, qword [0x14023b4a0]
mov rax, qword [r12]
mov qword [rsp + 0x98], rax
xor eax, eax
lea rax, [rsp + 0x70]
mov rbp, rdx
mov rdi, r8
lea rsi, [rsp + 0x60]
xor r8d, r8d
mov rdx, rcx
mov rcx, rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0
mov word [rsp + 0x60], r8w
call method.epee::string_tools.utf8_to_utf16_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rdx, qword [rsp + 0x70]
lea rbx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x78]
cmp rdx, rbx
je 0x1400c6e70
movq xmm0, r8
movhps xmm0, qword [rsp + 0x80]
cmp rcx, rsi
je 0x1400c6e50
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rdx
movups xmmword [rsp + 0x58], xmm0
test rcx, rcx
je 0x1400c6e5a
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 0
xor eax, eax
mov word [rcx], ax
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x1400c6d5f
mov rax, qword [rsp + 0x80]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c6dba
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
cmp eax, 0xffffffff
je 0x1400c6db1
mov edx, eax
cmp rdi, rdx
jae 0x1400c6e00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x1400c6dd5
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rsp + 0x98]
sub rax, qword [r12]
jne 0x1400c6ee6
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov rcx, rbp
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::resize_unsigned_long_long__char_
mov rdx, qword [rbp]
lea r9, [rsp + 0x4c]
mov r8d, r13d
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [rsp + 0x4c], r13d
jne 0x1400c6dbc
test edi, edi
setne bl
jmp 0x1400c6dbc
mov qword [rsp + 0x50], rdx
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x70], rbx
lea rbx, [rsp + 0x80]
mov rcx, rbx
jmp 0x1400c6d35
test r8, r8
je 0x1400c6e90
cmp r8, 1
je 0x1400c6eb0
add r8, r8
mov rdx, rbx
call sym.memcpy
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x58], r8
mov word [rcx + r8*2], dx
mov rcx, qword [rsp + 0x70]
jmp 0x1400c6d35
movzx eax, word [rsp + 0x80]
mov word [rcx], ax
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
jmp 0x1400c6e90
call dbg.__stack_chk_fail
endbr64
mov rcx, rax
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400c6dba
Function at 0x1400c6f10
Capabilities:
Get file size

Disassembly:
endbr64
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rbp, qword [0x14023b4a0]
xor r8d, r8d
mov rax, qword [rbp]
mov qword [rsp + 0x98], rax
xor eax, eax
lea rax, [rsp + 0x70]
mov rdi, rdx
lea rsi, [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0
mov word [rsp + 0x60], r8w
call method.epee::string_tools.utf8_to_utf16_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rax, qword [rsp + 0x70]
lea rbx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x78]
cmp rax, rbx
je 0x1400c70e0
movq xmm0, r8
movhps xmm0, qword [rsp + 0x80]
cmp rcx, rsi
je 0x1400c70b8
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x58], xmm0
test rcx, rcx
je 0x1400c70c2
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x78], 0
xor eax, eax
mov word [rcx], ax
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x1400c6fea
mov rax, qword [rsp + 0x80]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c70b0
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r12d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
jne 0x1400c7090
mov rax, qword [rdi]
test rax, rax
setne bl
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x1400c7067
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rsp + 0x98]
sub rax, qword [rbp]
jne 0x1400c7156
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
jmp 0x1400c7048
xor ebx, ebx
jmp 0x1400c704e
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x70], rbx
lea rbx, [rsp + 0x80]
mov rcx, rbx
jmp 0x1400c6fc0
test r8, r8
je 0x1400c7100
cmp r8, 1
je 0x1400c7120
add r8, r8
mov rdx, rbx
call sym.memcpy
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x58], r8
mov word [rcx + r8*2], dx
mov rcx, qword [rsp + 0x70]
jmp 0x1400c6fc0
movzx eax, word [rsp + 0x80]
mov word [rcx], ax
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
jmp 0x1400c7100
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400ce1e0
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
movzx eax, byte [0x140269748]
mov ebx, ecx
mov esi, edx
test al, al
je 0x1400ce290
movzx eax, byte [0x140269738]
test al, al
je 0x1400ce250
cmp byte [0x140269740], 0
je 0x1400ce220
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
cmp ebx, 6
ja case.0x1400ce247.0
lea rax, [0x1402358cc]
mov edx, ebx
movsxd rdx, dword [rax + rdx*4]
add rdx, rax
jmp rdx
lea rdi, [0x140269738]
mov rcx, rdi
call sym.__cxa_guard_acquire
test eax, eax
je 0x1400ce205
mov rdx, qword [0x140269750]
xor eax, eax
test rdx, rdx
je 0x1400ce277
cmp byte [rdx], 0
setne al
mov rcx, rdi
mov byte [0x140269740], al
call sym.__cxa_guard_release
jmp 0x1400ce205
lea rdi, [0x140269748]
mov rcx, rdi
call sym.__cxa_guard_acquire
test eax, eax
je 0x1400ce1fa
lea rcx, str.NO_COLOR
call sym.getenv
mov rcx, rdi
mov qword [0x140269750], rax
call sym.__cxa_guard_release
jmp 0x1400ce1fa
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xa
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xc
jmp 0x1400ce2dc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xb
jmp 0x1400ce2dc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xd
jmp 0x1400ce2dc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 9
jmp 0x1400ce2dc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xe
jmp 0x1400ce2dc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xf
jmp 0x1400ce2dc

Function at 0x1400d0e40
Capabilities:
Query environment variable

Disassembly:
mov ecx, edx
movzx edx, r8b
jmp method.el::base::utils.setConsoleColor_el::Color__bool_

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
je 0x1400d1180
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400d1180
shr eax, 4
and eax, 1
test bl, bl
cmovne eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret