joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400063c4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rbp, rdx
mov edx, 0xffffffea
mov ebx, ecx
lea r8d, [rdx + 0x18]
call fcn.140017684
mov edi, eax
test eax, eax
js 0x14000652f
mov r8d, 0x16
mov rdx, rbp
mov ecx, ebx
call fcn.1400169b4
test eax, eax
js 0x14000652f
movzx eax, byte [rbp + 2]
movzx ecx, byte [rbp + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x140006440
mov eax, edi
jmp 0x140006532
xor edx, edx
mov ecx, ebx
lea r8d, [rdx + 2]
call fcn.140017684
mov r12d, eax
test eax, eax
js 0x14000652f
mov edi, 0x10015
mov r8d, 2
mov ecx, ebx
cmp eax, edi
mov esi, edi
cmovl esi, eax
mov edx, esi
neg edx
call fcn.140017684
test eax, eax
js 0x14000652f
mov ecx, edi
call fcn.14000b274
mov rdi, rax
test rax, rax
je 0x14000652f
mov r8d, esi
mov rdx, rax
mov ecx, ebx
call fcn.1400169b4
test eax, eax
js 0x140006527
movsxd rsi, eax
add eax, 0xffffffea
movsxd rbx, eax
add rsi, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x140006527
cmp byte [rbx], 0x50
jne 0x1400064fd
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x1400064fd
movzx eax, byte [rbx + 0x15]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rbx + 0x14]
or rcx, rax
lea rax, [rcx + rbx + 0x16]
cmp rax, rsi
je 0x140006502
dec rbx
jmp 0x1400064b4
mov r8d, 0x16
mov rdx, rbx
mov rcx, rbp
call fcn.14000a0e0
mov rcx, rdi
call fcn.14000b400
mov r11d, r12d
sub r11, rsi
lea rax, [rbx + r11]
jmp 0x140006532
mov rcx, rdi
call fcn.14000b400
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140009b40
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400099b0

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14000c2e6
call fcn.14000bd80
and dword [rax], 0
call fcn.14000bd60
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14000cfbc
mov eax, ebx
jmp 0x14000c336
test edx, 0xfffffff9
jne 0x14000c2c9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000c30f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000bda0
call fcn.14000bd60
mov eax, dword [rax]
jmp 0x14000c336
test al, 0x10
jne 0x14000c334
test al, 1
je 0x14000c334
test bl, 2
je 0x14000c334
call fcn.14000bd80
mov dword [rax], 5
call fcn.14000bd60
mov dword [rax], 0xd
jmp 0x14000c306
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400109f3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400230c0]
jne 0x14000a7da
rol rcx, 0x10
test cx, 0xffff
jne 0x14000a7d6
repz ret
ror rcx, 0x10
jmp 0x14001094c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140025470]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140025568]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400109d1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140025470]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400109f3
mov rax, qword [rsp + 0x88]
mov qword [0x140025568], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140025508], rax
mov rax, qword [0x140025568]
mov qword [0x1400253e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400254f0], rax
mov dword [0x1400253d0], 0xc0000409
mov dword [0x1400253d4], 1
mov rax, qword [0x1400230c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400230c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140025468], eax
mov ecx, 1
call fcn.140014dec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001f6c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140025468], 0
jne 0x140010a7a
mov ecx, 1
call fcn.140014dec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140014e3c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400230c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000d018
xor ebx, ebx
cmp qword [0x140025970], rbx
mov rdi, rax
jne 0x140014f4f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140015026
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015026
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140025970], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140025978], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140025980], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140025990], rax
test rax, rax
je 0x140014f46
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140025988], rax
jmp 0x140014f56
mov rax, qword [0x140025988]
jmp 0x140014f5d
mov rax, qword [0x140025988]
mov r11, qword [0x140025990]
cmp rax, rdi
je 0x140014fc4
cmp r11, rdi
je 0x140014fc4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140025990]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140014fc4
test rax, rax
je 0x140014fc4
call rsi
test rax, rax
je 0x140014fbe
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140014fbe
test byte [rsp + 0x40], 1
jne 0x140014fc4
bts ebp, 0x15
jmp 0x140015004
mov rcx, qword [0x140025978]
cmp rcx, rdi
je 0x140015004
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140015004
call rax
mov rbx, rax
test rax, rax
je 0x140015004
mov rcx, qword [0x140025980]
cmp rcx, rdi
je 0x140015004
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140015004
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140025970]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140015026
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140015028
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a7c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f670
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140089480]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, r8d
mov rsi, rdx
xor r9d, r9d
cmp ecx, 0xe9
ja 0x14000f6b4
movsxd rax, ecx
lea r9, [0x1400888e0]
mov r9, qword [r9 + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
test r9, r9
jne 0x14000f6fa
mov qword [rbp - 0x20], 0xa
movsd xmm0, qword [str.Select_Key]
movsd qword [rbp - 0x30], xmm0
movzx eax, word [0x140072928]
mov word [rbp - 0x28], ax
mov byte [rbp - 0x26], r9b
jmp 0x14000f738
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], 0
jne 0x14000f701
lea rcx, [rbp - 0x30]
cmp rbx, 0xf
ja 0x14000f72b
mov qword [rbp - 0x20], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x30], 0
jmp 0x14000f738
movzx r8d, byte [rbp - 0x40]
mov rdx, rbx
call fcn.140004d40
cmp edi, 1
jne 0x14000f78f
mov rax, qword [rbp - 0x18]
cmp rax, 9
jb 0x14000f775
lea rbx, [rbp - 0x30]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x30]
mov qword [rbp - 0x20], 9
lea r8d, [rdi + 8]
lea rdx, str.Press_Key
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 9], 0
jmp 0x14000f78f
lea r9, str.Press_Key
movzx r8d, byte [rbp - 0x40]
mov edx, 9
lea rcx, [rbp - 0x30]
call fcn.140004d40
mov dword [rbp - 0x3c], 0x42fa0000
mov dword [rbp - 0x38], 0x41c80000
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x3c]
call fcn.14005e690
test al, al
je 0x14000f7da
test edi, edi
jne 0x14000f7da
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14000f818
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f813
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d2bc
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14006d680
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000fd00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140089480]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000fdd3
cmp byte [rcx + 0x71], 0
je 0x14000fdd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000fdcf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000fd94
sub eax, 1
je 0x14000fd98
cmp eax, 2
jne 0x14000fdcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006d680
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000fdc6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000fdcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000fd7c
xor al, al
jmp 0x14000fd7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006d680
add rsp, 0x60
pop rbx
ret
Function at 0x140019a00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140089480]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140019a2d
xor eax, eax
jmp 0x140019b96
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140019a6d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140019a6d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140019b8e
cmp qword [rdi + 0x80], 0
je 0x140019b89
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140019aa7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140019ad2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140019b8e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140019b41
sub eax, 1
je 0x140019b41
cmp eax, 2
jne 0x140019b89
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140019b8e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140019b6f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140019b89
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140019b8e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006d680
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400204c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x1400204e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400204f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140020542
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x1400205b1
mov rcx, rbp
call fcn.1400106c0
cmp rbx, 0xfff
jbe 0x140020591
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400205ca
cmp rbx, rax
ja 0x140020560
test rdi, rdi
je 0x1400205b1
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x1400205b4
Function at 0x1400205d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400205f8
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14002066c
test rax, rax
jle 0x14002064c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14002066c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002066c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x140021dc0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140021f5b
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140021c80
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140021f24
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140021e9e
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140021f13
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140021edb
mov r10, qword [rdx]
cmp r10, rax
je 0x140021ed5
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140021f13
cmp r9, rdx
je 0x140021eef
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140021f35
cmp r9, rdx
jne 0x140021ee0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140021e51
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140021f13
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140028d40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x14008a2f8]
xor r15d, r15d
mov ebp, ecx
mov r14d, r15d
mov rsi, qword [rdi + 0x3ec8]
test cl, 0x10
jne 0x140028ecf
mov ebx, dword [rdi + 0x4764]
test ebx, ebx
je 0x140028db7
cmp dword [rdi + 0x3f28], ebx
jne 0x140028ec8
mov eax, dword [rdi + 0x3f54]
cmp eax, 0xffffffff
cmove eax, r15d
movsxd r15, eax
cmp byte [r15 + rdi + 0xe10], r14b
je 0x140028ec8
cmp byte [rsi + 0xbb], r14b
jmp 0x140028e70
cmp byte [rdi + 0xe10], r14b
je 0x140028ec8
cmp byte [rsi + 0xbb], r14b
jne 0x140028ec8
test byte [rdi + 0x476c], 1
jne 0x140028df4
cmp dword [rdi + 0x3f28], r14d
je 0x140028ec8
cmp qword [rdi + 0x3f48], rsi
jne 0x140028ec8
test bpl, 8
je 0x140028ec8
lea rdx, [rdi + 0x4770]
mov rcx, rsi
call fcn.14002dd40
mov ebx, eax
mov dword [rdi + 0x4764], eax
mov rax, qword [0x14008a2f8]
cmp dword [rax + 0x3f28], ebx
jne 0x140028e2a
mov dword [rax + 0x3f2c], ebx
cmp dword [rax + 0x3f58], ebx
jne 0x140028e39
mov byte [rax + 0x3f5c], 1
mov edx, ebx
lea rcx, [rdi + 0x4770]
call fcn.140030dd0
movzx r14d, al
test al, al
je 0x140028e6a
cmp byte [rdi + 0x3748], r15b
je 0x140028e6a
mov rdx, rsi
mov ecx, ebx
call fcn.14003a750
mov rcx, rsi
call fcn.14002d6f0
cmp dword [rdi + 0x3f28], ebx
jne 0x140028ec8
mov byte [rdi + 0x3f35], r14b
movsxd rcx, dword [rsi + 0xf0]
mov rax, qword [rsi + 0xf8]
mov r14d, dword [rax + rcx*4 - 4]
mov rax, qword [0x14008a2f8]
movsxd rcx, r15d
cmp byte [rcx + rax + 0xe10], 0
jne 0x140028ea5
xor sil, sil
jmp 0x140028ebe
movss xmm1, dword [rax + 0x38]
movss xmm0, dword [rax + rcx*4 + 0x37a0]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae sil
call fcn.14003a8b0
test sil, sil
jne 0x140028f22
xor al, al
jmp 0x140028fc2
mov r9d, 0xffffffff
lea rdx, [0x140076059]
mov ebx, r9d
lea r10, [0x1400749d0]
mov r8b, 0x23
nop dword [rax]
cmp r8b, 0x23
jne 0x140028f03
cmp byte [rdx], r8b
jne 0x140028f03
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140028ef0
not ebx
cmp byte [rdi + 0x4a4c], 0
jne 0x140028f60
call fcn.14002a650
mov dword [rdi + 0x4a6c], ebx
mov dword [rdi + 0x4a70], r14d
mov byte [rdi + 0x4a4c], 1
mov dword [rdi + 0x4a50], ebp
mov dword [rdi + 0x4a58], r15d
cmp ebx, dword [rdi + 0x3f28]
jne 0x140028f60
mov byte [rdi + 0x3f36], 1
mov eax, dword [rdi + 0x3e48]
mov dword [rdi + 0x4a54], eax
mov byte [rdi + 0x4a4d], 1
test bpl, 1
jne 0x140028fb3
xor edx, edx
xor ecx, ecx
call fcn.140029370
cmp dword [rdi + 0x4ac0], 0
je 0x140028fb3
test dword [rdi + 0x4ab4], 0x1000
je 0x140028fb3
mov rax, qword [rdi + 0x3ec8]
mov byte [rax + 0xbb], 1
mov byte [rax + 0xbd], 1
mov byte [rax + 0xd8], 1
test bpl, 0x12
jne 0x140028fc0
and dword [rdi + 0x476c], 0xfffffffe
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret