joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421850
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp dbg.__shmem_grab

Function at 0x421870
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp dbg.__shmem_grab

Function at 0x421e40
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x421e80
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x421ea8
call method.std::_V2.generic_category__
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x421e8d
xor eax, eax
jmp 0x421e6f

Function at 0x4231a0
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 0x4231cc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x423e30
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004cfe30], 0
jne 0x423f3a
mov byte [0x004cfe30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x423f10
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x423f01
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004d1fd1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x423efc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x423ecb
mov ecx, 2
call qword [dbg.__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 [dbg.__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 0x423fcf
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x423f35
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x423f35
Function at 0x483cf0
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
test al, al
je 0x483d57
cmp al, 0xff
je 0x483d48
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x483d60
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x483d6d
mov eax, dword [rbx]
test eax, eax
jne 0x483d57
call method.std::_V2.generic_category__
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x483d59
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x483d18
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x483e80
Capabilities:
Move file

Disassembly:
push r12
sub rsp, 0x20
mov rdx, qword [rdx]
mov rcx, qword [rcx]
mov r12, r8
call qword [sym.imp.msvcrt.dll__wrename]
test eax, eax
jne 0x483eb8
call method.std::_V2.system_category__
mov dword [r12], 0
mov qword [r12 + 8], rax
add rsp, 0x20
pop r12
ret
mov rcx, r12
add rsp, 0x20
pop r12
jmp method.std::filesystem.current_path_std::filesystem::__cxx11::path_const__std::error_code___clone_.part.0_

Function at 0x48c8a0
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call method.std::_V2.system_category__
mov rbx, rax
test esi, esi
je 0x48c948
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x48c909
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x48c917
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x48c940
mov dword [r13], 0
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x48c921
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [r13 + 8], rbx
mov dword [r13], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x491ac0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x491ae7
call rbp
cmp dword [rax], 4
jne 0x491b04
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x491ae0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x4c3d00
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0xc6a4a7935bd1e995
mov rax, rdx
mov r11, rdx
imul rax, r9
and r11, 0xfffffffffffffff8
add r11, rcx
xor rax, r8
cmp rcx, r11
je 0x4c3d50
nop dword [rax + rax]
mov r10, qword [rcx]
add rcx, 8
imul r10, r9
mov r8, r10
shr r8, 0x2f
xor r8, r10
imul r8, r9
xor r8, rax
mov rax, r8
imul rax, r9
cmp r11, rcx
jne 0x4c3d28
and edx, 7
je 0x4c3d85
sub edx, 1
xor r8d, r8d
movsxd rdx, edx
nop
movzx ecx, byte [r11 + rdx]
shl r8, 8
sub rdx, 1
add r8, rcx
test edx, edx
jns 0x4c3d60
xor r8, rax
movabs rax, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
movabs r8, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
ret

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

Disassembly:
mov rax, r8
test rdx, rdx
je 0x4c490c
movabs r9, 0x100000001b3
add rdx, rcx
nop dword [rax]
movsx r8, byte [rcx]
add rcx, 1
xor rax, r8
imul rax, r9
cmp rcx, rdx
jne 0x4c48f8
ret
Function at 0x140052d30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x1400832c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
xor eax, eax
mov word [rsp + 0x50], ax
jmp 0x140083388
movzx eax, word [rsp + 0x50]
inc ax
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 0x18]
jae 0x1400833e9
movzx eax, word [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400834d0
cmp eax, dword [rsp + 0x78]
jne 0x1400833e7
movzx eax, word [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x1400833eb
jmp 0x14008337b
xor eax, eax
add rsp, 0x60
pop rdi
ret
Function at 0x140083400
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x50
mov rdi, rsp
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x60]
mov rax, qword gs:[0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
sub rax, 0x10
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp qword [rax], rcx
je 0x1400834c3
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x60]
call fcn.140083560
cmp eax, dword [rsp + 0x60]
jne 0x1400834a1
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x30]
jmp 0x1400834c5
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
cmp qword [rax], rcx
jne 0x1400834b4
xor eax, eax
jmp 0x1400834c5
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x140083465
xor eax, eax
add rsp, 0x50
pop rdi
ret

Function at 0x1400834d0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov dword [rsp], 0x1505
mov dword [rsp + 4], 0
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp dword [rsp + 8], 0
je 0x140083550
cmp dword [rsp + 4], 0x41
jl 0x14008353e
cmp dword [rsp + 4], 0x5a
jg 0x14008353e
mov eax, dword [rsp + 4]
add eax, 0x20
mov dword [rsp + 4], eax
mov eax, dword [rsp]
shl eax, 5
add eax, dword [rsp]
add eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x1400834fd
mov eax, dword [rsp]
add rsp, 0x10
pop rdi
ret

Function at 0x140083560
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov dword [rsp], 0x1505
mov dword [rsp + 4], 0
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
cmp dword [rsp + 8], 0
je 0x1400835e1
cmp dword [rsp + 4], 0x41
jl 0x1400835cf
cmp dword [rsp + 4], 0x5a
jg 0x1400835cf
mov eax, dword [rsp + 4]
add eax, 0x20
mov dword [rsp + 4], eax
mov eax, dword [rsp]
shl eax, 5
add eax, dword [rsp]
add eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x14008358d
mov eax, dword [rsp]
add rsp, 0x10
pop rdi
ret
Function at 0x140001da0
Capabilities:
Terminate process

Disassembly:
push r14
push r15
sub rsp, 0x58
mov rax, qword [rdx]
mov r14, rdx
mov r15, rcx
cmp qword [rcx], rax
jne 0x140001dcf
mov rax, qword [rdx + 8]
cmp qword [rcx + 8], rax
jne 0x140001dcf
inc dword [0x14000c04c]
add rsp, 0x58
pop r15
pop r14
ret
mov qword [rsp + 0x70], rbx
mov ecx, 2
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x50], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14000c04c]
lea rdx, str._rError:_128_bit_hash_test__i:_Internal_sanity_check_failed._n
mov rcx, rax
call fcn.1400070e0
mov rbx, qword [r14 + 8]
mov ecx, 2
mov rdi, qword [r14]
mov rsi, qword [r15 + 8]
mov rbp, qword [r15]
shr rbx, 0x20
shr rdi, 0x20
shr rsi, 0x20
shr rbp, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [r15]
lea rdx, str._rGot__0x_08X_08XULL__0x_08X_08XULL___expected__0x_08X_08XULL__0x_08X_08XULL___n
mov rcx, rax
mov r8d, ebp
mov eax, dword [r14 + 8]
mov dword [rsp + 0x48], eax
mov eax, dword [r14]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], eax
mov eax, dword [r15 + 8]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
call fcn.1400070e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._rNote:_If_you_modified_the_hash_functions__make_sure_to_either_update_the_values_nor_temporarily_comment_out_the_tests_in_BMK_sanityCheck._n
call fcn.1400070e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
int3

Function at 0x140001eb0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov edi, ecx
cmp ecx, edx
je 0x140001f29
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14000c044]
lea rdx, str._rError:_32_bit_hash_test__i:_Internal_sanity_check_failed__n
mov rcx, rax
call fcn.1400070e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str._rGot_0x_08X__expected_0x_08X._n
mov rcx, rax
mov r8d, edi
call fcn.1400070e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._rNote:_If_you_modified_the_hash_functions__make_sure_to_either_update_the_values_nor_temporarily_comment_out_the_tests_in_BMK_sanityCheck._n
call fcn.1400070e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
inc dword [0x14000c044]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001f40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp rcx, rdx
je 0x140001fe9
mov qword [rsp + 0x40], rbx
mov ecx, 2
mov qword [rsp + 0x48], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14000c048]
lea rdx, str._rError:_64_bit_hash_test__i:_Internal_sanity_check_failed__n
mov rcx, rax
call fcn.1400070e0
mov rbx, rsi
mov rdi, rbp
mov ecx, 2
shr rbx, 0x20
shr rdi, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], esi
lea rdx, str._rGot_0x_08X_08XULL__expected_0x_08X_08XULL._n
mov rcx, rax
mov dword [rsp + 0x20], ebx
mov r9d, ebp
mov r8d, edi
call fcn.1400070e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._rNote:_If_you_modified_the_hash_functions__make_sure_to_either_update_the_values_nor_temporarily_comment_out_the_tests_in_BMK_sanityCheck._n
call fcn.1400070e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
inc dword [0x14000c048]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x140004aa0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x14000c088]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov ebp, r8d
mov r14d, r8d
mov r13d, r8d
shr ebp, 8
mov ebx, r8d
shr r14d, 0x10
mov rsi, rdx
shr r13d, 0x18
mov rdi, rcx
xor edx, edx
mov r8d, 0xc0
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8, rsi
lea rcx, [rsp + 0x60]
mov rdx, rdi
call sub.xxhash.dll_XXH3_generateSecret
movzx eax, byte [rsp + 0xe3]
movzx r12d, byte [rsp + 0x60]
movzx r15d, byte [rsp + 0x9e]
mov byte [rsp + 0x56], al
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x11f]
mov byte [rsp + 0x57], al
mov byte [rsp + 0x54], r12b
mov byte [rsp + 0x55], r15b
mov byte [rsp + 0x50], al
cmp dword [rsp + 0x54], ebx
je 0x140004bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14000c058]
lea rdx, str._rError:_Secret_generation_test__i:_Internal_sanity_check_failed.__n
mov rcx, rax
call fcn.1400070e0
mov ecx, 2
movzx edi, r14b
movzx r14d, byte [rsp + 0x51]
movzx esi, bpl
movzx ebp, byte [rsp + 0x50]
movzx ebx, bl
movzx r15d, r15b
movzx r12d, r12b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x48], r13d
lea rdx, str._rGot__0x_02X__0x_02X__0x_02X__0x_02X___expected__0x_02X__0x_02X__0x_02X__0x_02X___n
mov dword [rsp + 0x40], edi
mov rcx, rax
mov dword [rsp + 0x38], esi
mov r9d, r15d
mov dword [rsp + 0x30], ebx
mov r8d, r12d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r14d
call fcn.1400070e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
inc dword [0x14000c058]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140007fa0
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005330
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14d, r9d
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
call sub.xxhash.dll_XXH32_createState
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
mov rdi, rax
call sub.xxhash.dll_XXH32
mov ecx, eax
mov edx, r14d
call fcn.140001eb0
mov edx, ebx
mov rcx, rdi
call sub.xxhash.dll_XXH32_reset
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call sub.xxhash.dll_XXH32_update
mov rcx, rdi
call sub.xxhash.dll_XXH32_digest
mov ecx, eax
mov edx, r14d
call fcn.140001eb0
mov edx, ebx
mov rcx, rdi
call sub.xxhash.dll_XXH32_reset
xor ebx, ebx
test rsi, rsi
je 0x1400053cb
lea rdx, [rbx + rbp]
mov r8d, 1
mov rcx, rdi
call sub.xxhash.dll_XXH32_update
inc rbx
cmp rbx, rsi
jb 0x1400053b1
mov rcx, rdi
call sub.xxhash.dll_XXH32_digest
mov ebx, eax
cmp eax, r14d
je 0x140005441
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14000c044]
lea rdx, str._rError:_32_bit_hash_test__i:_Internal_sanity_check_failed__n
mov rcx, rax
call fcn.1400070e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r14d
lea rdx, str._rGot_0x_08X__expected_0x_08X._n
mov rcx, rax
mov r8d, ebx
call fcn.1400070e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._rNote:_If_you_modified_the_hash_functions__make_sure_to_either_update_the_values_nor_temporarily_comment_out_the_tests_in_BMK_sanityCheck._n
call fcn.1400070e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
inc dword [0x14000c044]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x140007e36
jmp qword [sym.imp.xxhash.dll_XXH32_freeState]
Function at 0x1400055f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
call sub.xxhash.dll_XXH64_createState
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
mov rdi, rax
call sub.xxhash.dll_XXH64
mov rcx, rax
mov rdx, r14
call fcn.140001f40
mov rdx, rbx
mov rcx, rdi
call sub.xxhash.dll_XXH64_reset
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call sub.xxhash.dll_XXH64_update
mov rcx, rdi
call sub.xxhash.dll_XXH64_digest
mov rcx, rax
mov rdx, r14
call fcn.140001f40
mov rdx, rbx
mov rcx, rdi
call sub.xxhash.dll_XXH64_reset
xor ebx, ebx
test rsi, rsi
je 0x14000569a
nop word [rax + rax]
lea rdx, [rbx + rbp]
mov r8d, 1
mov rcx, rdi
call sub.xxhash.dll_XXH64_update
inc rbx
cmp rbx, rsi
jb 0x140005680
mov rcx, rdi
call sub.xxhash.dll_XXH64_digest
mov rsi, rax
cmp rax, r14
je 0x140005728
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14000c048]
lea rdx, str._rError:_64_bit_hash_test__i:_Internal_sanity_check_failed__n
mov rcx, rax
call fcn.1400070e0
mov rbx, r14
mov rdi, rsi
mov ecx, 2
shr rbx, 0x20
shr rdi, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], r14d
lea rdx, str._rGot_0x_08X_08XULL__expected_0x_08X_08XULL._n
mov rcx, rax
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, edi
call fcn.1400070e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._rNote:_If_you_modified_the_hash_functions__make_sure_to_either_update_the_values_nor_temporarily_comment_out_the_tests_in_BMK_sanityCheck._n
call fcn.1400070e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
inc dword [0x14000c048]
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp 0x140007e66
jmp qword [sym.imp.xxhash.dll_XXH64_freeState]
Function at 0x140005cd0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x370
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffc0
mov rax, qword [0x14000c088]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov r15, qword [rsp + 0x3c0]
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x10]
mov rdi, r9
mov ebx, r8d
call sub.xxhash.dll_XXH32_reset
xor edx, edx
lea rcx, [rbp + 0x40]
call sub.xxhash.dll_XXH64_reset
lea rcx, [rbp + 0xc0]
call sub.xxhash.dll_XXH3_128bits_reset
mov r9, r14
mov r8, r15
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140005dad
nop dword [rax]
mov ecx, ebx
test ebx, ebx
je 0x140005d85
sub ecx, 1
je 0x140005d74
cmp ecx, 1
jne 0x140005d94
mov r8, rax
lea rcx, [rbp + 0xc0]
mov rdx, rdi
call sub.xxhash.dll_XXH3_128bits_update
jmp 0x140005d94
mov r8, rax
lea rcx, [rbp + 0x40]
mov rdx, rdi
call sub.xxhash.dll_XXH64_update
jmp 0x140005d94
mov r8, rax
lea rcx, [rbp + 0x10]
mov rdx, rdi
call sub.xxhash.dll_XXH32_update
mov r9, r14
mov r8, r15
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x140005d50
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x140005de0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_a_failure_occurred_reading_the_input_file._n
call fcn.1400070e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
test ebx, ebx
je 0x140005e1d
sub ebx, 1
je 0x140005e0f
cmp ebx, 1
jne 0x140005e28
lea rdx, [rbp + 0xc0]
lea rcx, [rbp]
call sub.xxhash.dll_XXH3_128bits_digest
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
jmp 0x140005e28
lea rcx, [rbp + 0x40]
call sub.xxhash.dll_XXH64_digest
mov qword [rsi], rax
jmp 0x140005e28
lea rcx, [rbp + 0x10]
call sub.xxhash.dll_XXH32_digest
mov dword [rsi], eax
mov rax, rsi
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140007fa0
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x370
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret