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

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002342
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002351
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002374
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002376
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400023b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000244e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400023ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000242e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000244e
cmp rbx, rax
ja 0x140002400
test rbx, rbx
je 0x14000244e
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rsi], dl
invalid
Function at 0x140002470
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002491
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400024be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400024c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002519
test ecx, ecx
jle 0x1400024f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002519
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002519
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
and al, byte [0x145110f9a]
add byte [rcx], cl
add dword [rax + 0x1ec0806], 0xf608ecf3
add ebx, esi
in al, dx
or dh, dh
add eax, 0xfcfefefe
add dl, bh
add dword [rdi], 0x3643e2fc
sub byte ss:[rbx - 0x1e], al
pop rbx
add byte [rcx + rax], 0
add dword [rax], eax
stc
add dword [rdi], 0x7d7cda08
jl 0x1400f0f3f
jl 0x1400f0e9f
ja 0x1400f0ecc
invalid
std
add dword [rax + 0x400007], 0x60056
add byte [rsi], dl
invalid
add byte [rbx + 0x40], bl
add eax, 0
add byte [rax], al
add byte [rax], al
jg 0x1400f0f25
add al, 0x28
lodsb al, byte [rsi]
add byte [rax], al
add byte [rax], al
add byte [rax], al
jg 0x1400f0ef1
add dword [rax], eax
push rdi
add byte [rbx], al
add byte [rdi + 0x40], dl
add byte [rax], al
add al, al
add byte [rax], al
add byte [rax], al
add byte [rbx + 0x40], ah
add ch, byte [rax]
lodsb al, byte [rsi]
rol byte [rax], 0x40
add byte [rax], al
add byte [rax], al
sub esp, esp
in al, 0xe8
test dword [rdi], 0xf0f9030a
invalid
or dword [rsp], edx
and al, 0x31
invalid
invalid
Function at 0x140002b30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140090fc8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002b5d
xor eax, eax
jmp 0x140002cba
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140002b88
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140002b88
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], dil
mov eax, edi
jmp 0x140002cba
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002cad
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140002bcb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002bf6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cb2
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x140002c65
sub eax, 1
je 0x140002c65
cmp eax, 2
jne 0x140002cad
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cb2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002c93
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002cad
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cb2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005f6a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002ce0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140090fc8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002db3
cmp byte [rcx + 0x71], 0
je 0x140002db3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + reloc.libsndfile_1.dll_Ordinal_24]
cmp eax, 0xffffffff
je 0x140002daf
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 0x140002d74
sub eax, 1
je 0x140002d78
cmp eax, 2
jne 0x140002daf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005f6a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002da6
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 0x140002daf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002d5c
xor al, al
jmp 0x140002d5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005f6a0
add rsp, 0x60
pop rbx
ret
Function at 0x1400048d0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x4080
call fcn.140060760
sub rsp, rax
mov rax, qword [0x140090fc8]
xor rax, rsp
mov qword [rsp + 0x4070], rax
movzx eax, dl
mov rdi, rcx
mov rcx, qword [rcx]
xorps xmm0, xmm0
mov dword [rsp + 0x50], eax
xor esi, esi
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov dword [rsp + 0x40], 1
xor r9d, r9d
mov dword [rsp + 0x38], 2
xor r8d, r8d
mov dword [rsp + 0x30], 0x4000
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
je 0x140004961
cmp eax, 0x80000006
jne 0x140004aff
xor eax, eax
jmp 0x140004a93
mov r8d, dword [rsp + 0xac]
mov eax, r8d
mov qword [rsp + 0x40a0], rbx
shr rax, 1
lea rbx, [rdi + 0xa]
mov qword [rdi + 0x4010], rax
test r8, r8
je 0x140004997
lea rdx, [rsp + 0xb4]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x4010]
lea rdx, [rdi + 0x4018]
mov word [rdi + rax*2 + 0xa], si
mov rax, qword [rdi + 0x4010]
lea r9, [rbx + rax*2]
cmp rbx, r9
je 0x140004a40
nop
movzx eax, word [rbx]
add rbx, 2
mov ecx, eax
add eax, 0xffff2800
cmp eax, 0x800
jb 0x140004ab4
cmp ecx, 0x7f
ja 0x1400049f6
mov byte [rdx], cl
mov eax, 1
jmp 0x140004a38
mov word [rdx], 0xbfef
mov byte [rdx + 2], 0xbd
add rdx, 3
jmp 0x140004a3b
movzx r8d, cl
mov eax, ecx
and r8b, 0x3f
shr eax, 6
or r8b, 0x80
cmp ecx, 0x7ff
ja 0x140004a20
and al, 0x1f
or al, 0xc0
mov byte [rdx], al
mov eax, 2
mov byte [rdx + 1], r8b
jmp 0x140004a38
shr ecx, 0xc
and al, 0x3f
or cl, 0xe0
or al, 0x80
mov byte [rdx], cl
mov byte [rdx + 1], al
mov eax, 3
mov byte [rdx + 2], r8b
add rdx, rax
cmp rbx, r9
jne 0x1400049c0
mov rbx, qword [rsp + 0x40a0]
mov rax, rdx
sub rax, rdi
sub rax, 0x4018
mov qword [rdi + 0xc020], rax
mov byte [rdx], sil
mov rax, qword [rsp + 0xa8]
bt eax, 0xa
jae 0x140004a72
mov byte [rdi + 8], 3
jmp 0x140004a90
test al, 0x40
je 0x140004a7c
mov byte [rdi + 8], 5
jmp 0x140004a90
test al, 0x10
je 0x140004a86
mov byte [rdi + 8], 2
jmp 0x140004a90
shr eax, 9
and al, 8
or al, 1
mov byte [rdi + 8], al
mov rax, rdi
mov rcx, qword [rsp + 0x4070]
xor rcx, rsp
call fcn.14005f6a0
mov rsi, qword [rsp + 0x40a8]
add rsp, 0x4080
pop rdi
ret
mov eax, ecx
and eax, 0xfffffc00
cmp eax, 0xd800
jne 0x1400049e7
cmp rbx, r9
je 0x140004a40
movzx r8d, word [rbx]
mov eax, r8d
and eax, 0xfffffc00
cmp eax, 0xd800
jne 0x1400049e7
shl ecx, 0xa
add ecx, 0xfca02400
add ecx, r8d
call fcn.140004d40
add rdx, rax
jmp 0x1400049c0
mov ecx, eax
call fcn.1400054d0
int3
Function at 0x1400052e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov dword [rcx + 4], 3
mov rdi, rdx
mov dword [rcx], r10d
shr rdi, 0x20
mov ebx, edx
mov byte [rcx + 8], r10b
mov r8d, edx
mov qword [rcx + 0xc], r10
lea r11d, [r10 + 4]
and ebx, 1
je 0x140005323
mov dword [rcx], r11d
mov r9d, r11d
and r8d, 0x80000
jmp 0x14000533b
mov r9d, r10d
and r8d, 0x80000
je 0x14000533b
mov dword [rcx], 0x40000000
mov r9d, 0x40000000
test edx, 0x801
je 0x140005361
bts r9d, 0x1f
mov eax, edx
and eax, 0x10080001
mov dword [rcx], r9d
cmp eax, 0x10080001
jne 0x140005361
bts r9d, 0x1e
mov dword [rcx], r9d
bt edx, 0x1c
jb 0x14000537c
bt edx, 0xb
jb 0x14000538f
test ebx, ebx
je 0x140005377
mov dword [rcx + 0xc], r11d
jmp 0x14000539d
test r8d, r8d
je 0x14000539d
mov eax, edx
and eax, 0x100
neg eax
sbb eax, eax
add eax, 2
mov dword [rcx + 0xc], eax
jmp 0x14000539d
test ebx, ebx
setne r10b
add r10d, 3
mov dword [rcx + 0xc], r10d
test dl, 0x10
je 0x1400053b3
bt edx, 8
mov eax, 1
cmovb r11d, eax
mov dword [rcx + 0xc], r11d
test dl, 0x20
je 0x1400053bf
mov dword [rcx + 0x10], 0x20000000
bt edx, 0x18
jae 0x1400053cc
or dword [rcx + 0x10], 0x80000000
bt edx, 0xe
jae 0x1400053d9
or dword [rcx + 0x10], 0x40000000
bt edx, 9
jae 0x1400053e6
or dword [rcx + 0x10], 0x200000
mov r8d, edx
and r8d, 0x40
je 0x140005409
or dword [rcx + 0x10], 0x2000010
cmp dword [rcx + 0xc], 0
jne 0x140005409
or dword [rcx], 0x12019f
mov dword [rcx + 0xc], 3
mov al, 1
test dl, 2
je 0x140005416
or dword [rcx + 0x10], 0x20
xor al, al
test dl, dl
jns 0x140005423
or dword [rcx + 0x10], 0x4000
xor al, al
bt edx, 0xa
jae 0x14000542f
or dword [rcx + 0x10], 2
xor al, al
test dl, 8
je 0x14000543d
or dword [rcx + 0x10], 0x800
xor al, al
bt edx, 0x19
jae 0x140005449
or dword [rcx + 0x10], 4
xor al, al
bt edx, 0x12
jae 0x140005458
or dword [rcx + 0x10], 0x1000
jmp 0x140005463
test al, al
je 0x140005463
or dword [rcx + 0x10], 0x80
bt edx, 0x15
jb 0x140005477
test r8d, r8d
jne 0x14000547e
or dword [rcx + 0x10], 0x10000000
jmp 0x14000547e
or dword [rcx + 0x10], 0x8000000
bt edx, 0x10
jae 0x14000548b
or dword [rcx + 0x10], 0x100000
test dl, 4
jne 0x140005497
or dword [rcx + 0x10], 0x1000000
bt edx, 0x17
jae 0x1400054a4
or dword [rcx + 0x10], 0x800000
bt edx, 0x1a
jae 0x1400054b1
or dword [rcx + 0x10], 0x4000100
mov rax, rcx
test dil, dil
js 0x1400054bd
or dword [rcx + 0x10], 1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1400056b0
Capabilities:
Generate random numbers via rtlgenrandom

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 rbx, r8
mov rbp, rdx
mov rsi, rdx
sub rbx, rdx
je 0x140005701
mov r14d, 0xffffffff
nop
cmp rbx, r14
mov rdi, rbx
mov rcx, rsi
cmova rdi, r14
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test eax, eax
je 0x14000571f
add rsi, rdi
sub rbx, rdi
jne 0x1400056e0
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp rbp, rsi
jne 0x140005701
call fcn.1400052a0
int3
Function at 0x14000a9e0
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 0x14000aa3d
lea rbx, [0x14007ffe0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000aa24
cmp r10, 2
jb 0x14000aa24
cmp byte [r9], r8b
jne 0x14000aa24
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 0x14000aa00
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000aa7f
lea rbx, [0x14007ffe0]
cmp r8b, 0x23
jne 0x14000aa63
cmp byte [r9], r8b
jne 0x14000aa63
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 0x14000aa50
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000abc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000abda
mov qword [r8], 0
lea rdx, [0x14007f8b4]
call fcn.14000aa90
mov rbx, rax
test rax, rax
jne 0x14000abfa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000acd1
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 0x14000acd1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000acd1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000acd1
cmp rdi, 0xffffffffffffffff
je 0x14000acd1
mov rax, qword [0x140115950]
test rax, rax
je 0x14000ac6e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000acd1
mov r9, rbx
mov r8, rdi
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, rdi
je 0x14000acbe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140115950]
test rax, rax
je 0x14000acb3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000acda
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000accc
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000acdc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000dab0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
mov rax, qword [rcx + 0x110]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14007ffe0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x140115950]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x401c], ebx
jne 0x14000db46
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14002c4f0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14001b0e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140090fc8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140115950]
mov edi, ecx
cmp byte [rbx + 0x43fd], 0
jne 0x14001b141
cmp byte [rbx + 0x43fe], 0
jne 0x14001b141
movsx r9d, word [rbx + 0x54de]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000a960
test dil, 1
je 0x14001b269
jmp 0x14001b1d1
movss xmm1, dword [rbx + 0x39c0]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x54de]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400853d4]
mulss xmm1, dword [0x1400853c8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd9c]
addss xmm1, dword [rbx + 0xda0]
mov qword [rbx + 0x410c], rax
mov dword [rbx + 0x40f4], 1
movss dword [rbx + 0x4104], xmm0
mov byte [rbx + 0x412c], 1
movss dword [rbx + 0x4108], xmm1
movss xmm0, dword [rbx + 0x3a1c]
mulss xmm0, dword [0x1400852fc]
or dword [rbx + 0x40f0], 0x41
movss dword [rbx + 0x4150], xmm0
call fcn.14000a960
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001b221
lea r11, [0x14007ffe0]
cmp r9b, 0x23
jne 0x14001b204
cmp byte [r8], r9b
jne 0x14001b204
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 0x14001b1f1
not ecx
call fcn.140012e40
test rax, rax
je 0x14001b269
cmp byte [rax + 0xcb], 0
je 0x14001b269
mov byte [rax + 0xd2], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xec], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x54de]
mov edx, 0x10
movsx r9d, word [rbx + 0x54de]
call fcn.14000a960
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x22c0347
call fcn.140015bd0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005f6a0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140020570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x55d0], 0
lea rbx, [rcx + 0x55d8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140020617
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400205ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002d690
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000b350
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x55d0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x55e0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140115948]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002061f
mov rcx, rbx
call fcn.14000b350
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140020970
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x1400209c2
lea r11, [0x14007ffe0]
cmp r9b, 0x23
jne 0x1400209a5
cmp byte [r8], r9b
jne 0x1400209a5
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140020992
mov r11, qword [0x140115950]
mov r10, qword [r11 + 0x5598]
test r10, r10
je 0x140020a09
lea r9, [r10 + 4]
test r9, r9
je 0x140020a09
not eax
cmp dword [r9], eax
je 0x140020a12
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x5590]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x1400209e0
mov rcx, rbx
pop rbx
jmp fcn.140020880
mov rax, r9
pop rbx
ret

Function at 0x140020a20
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140115950]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140020a83
mov qword [rsp], rbx
lea rbx, [0x14007ffe0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140020a63
cmp byte [r8], r9b
jne 0x140020a63
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140020a50
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5580]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140020ab7
mov r10, qword [r10 + 0x5588]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140020abe
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140020aa4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret