joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000baf0
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 0x14000bb12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000bb28
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 0x14000bb72
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 0x14000bbe1
mov rcx, rbp
call fcn.140002220
cmp rbx, 0xfff
jbe 0x14000bbc1
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 0x14000bbfa
cmp rbx, rax
ja 0x14000bb90
test rdi, rdi
je 0x14000bbe1
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 0x14000bbe4
Function at 0x14000bc00
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 0x14000bc28
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 0x14000bc9c
test rax, rax
jle 0x14000bc7c
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 0x14000bc9c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000bc9c
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 0x1400356f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140035742
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140035742
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140035742
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140035742
cmp dword [rcx + 0x84], 0xe
jbe 0x140035742
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140035744
xor al, al
add rsp, 0x28
ret
Function at 0x1400744c0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov rsi, qword [rsp + 0x98]
mov rdi, r9
and qword [rax - 0x18], 0
mov rbx, r8
mov r14, rdx
and dword [rsi], 0
cmp qword [r8 + 0x18], 8
jb 0x1400744fa
mov rdx, qword [r8]
jmp 0x1400744fd
mov rdx, rbx
mov rcx, qword [r14]
lea rax, [rsp + 0x50]
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov dword [rsi], eax
cmp eax, 2
jne 0x140074576
cmp qword [rbx + 0x18], 8
jb 0x140074530
mov rbx, qword [rbx]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x2011b
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
mov dword [rsi], eax
sete bl
test eax, eax
jne 0x1400745c4
mov rcx, qword [rsp + 0x90]
cmp qword [rcx + 0x18], 8
mov rax, qword [rcx + 0x10]
jb 0x14007458c
mov rcx, qword [rcx]
cmp qword [rdi + 0x18], 8
jb 0x140074596
mov rdi, qword [rdi]
add eax, eax
mov r9d, 2
mov dword [rsp + 0x28], eax
mov r8, rdi
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
nop dword [rax + rax]
test eax, eax
mov dword [rsi], eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400745da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

Function at 0x140074600
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r14
sub rsp, 0x50
mov rsi, qword [rsp + 0x80]
mov rbx, r9
mov r14, qword [rsp + 0x88]
mov rax, r8
and qword [r11 - 0x18], 0
mov r10, rdx
and dword [rsi], 0
and dword [r14], 0
cmp qword [r8 + 0x18], 8
jb 0x140074644
mov rax, qword [r8]
lea rcx, [rsp + 0x40]
mov r9d, 0x20119
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r10]
Function at 0x18061f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18061f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18061f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18061f06f
add dl, dl
jne 0x18061f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18061f0f6
xor eax, eax
add dl, dl
jne 0x18061f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18061f1ad
add dl, dl
jne 0x18061f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18061f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18061f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18061f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18061f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18061f07e
mov eax, 1
add dl, dl
jne 0x18061f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18061f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18061f0fb
sub eax, ebx
mov ebx, 1
jne 0x18061f14c
mov ecx, 1
add dl, dl
jne 0x18061f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18061f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18061f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18061f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18061f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18061f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18061f15d
cmp eax, 0x7d00
jae 0x18061f19b
cmp eax, 0x500
jb 0x18061f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18061f07e
cmp eax, 0x7f
ja 0x18061f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18061f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18061f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18061f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800132c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180013338
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180013338
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180013325
nop
cmp rbx, rcx
jae 0x180013338
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180013310
cmp rbx, rcx
jae 0x180013338
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18001333a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800136c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1801ad040]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x180217b1c], 0
jne 0x18001372f
lea rcx, [rsp + 0x20]
mov byte [0x180217b1c], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x28]
cvtsi2ss xmm1, qword [rsp + 0x20]
movss dword [0x180217b28], xmm0
movss dword [0x180217924], xmm1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x20]
subss xmm0, dword [0x180217924]
divss xmm0, dword [0x180217b28]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801493c0
add rsp, 0x48
ret
Function at 0x1800291f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1801ad040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x180248e48]
movabs rax, 0x7fffffffffffffff
mov r8, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x18002928d
cmp qword [0x180248e50], 0xf
lea r9, [0x180248e38]
cmova r9, qword [0x180248e38]
cmp qword [rcx + 0x18], 0xf
jbe 0x180029241
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
call fcn.180011d10
cmp qword [rsp + 0x60], 0xf
lea rcx, [rsp + 0x48]
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, [rsp + 0x48]
call fcn.180010460
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1801493c0
add rsp, 0x78
ret
call fcn.1800051a0
int3
Function at 0x18003a730
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
test edx, edx
je 0x18003a75f
mov r9d, edx
lea r10, [0x18018bdd0]
movzx edx, word [rcx]
lea rcx, [rcx + 2]
mov eax, r8d
shr r8d, 8
xor rdx, rax
movzx eax, dl
xor r8d, dword [r10 + rax*4]
sub r9, 1
jne 0x18003a741
not r8d
mov eax, r8d
ret
Function at 0x18006c820
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x180217a91], 0
mov rdi, rdx
mov rbx, rcx
je 0x18006c86c
mov ecx, dword [0x180217a9c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18006c86c
cmp qword [0x180217b60], rdi
jne 0x18006c86c
mov dword [rbx], 0x3f800000
mov dword [rbx + 4], 0x3dcccccd
mov dword [rbx + 8], 0x3dcccccd
jmp 0x18006c91a
mov edx, 0x10
mov rcx, rdi
call fcn.18004d950
test al, al
je 0x18006c897
movss xmm2, dword [0x1801ff0d8]
movss xmm1, dword [0x1801ff0d4]
movss xmm0, dword [0x1801ff0d0]
jmp 0x18006c90c
mov rcx, rdi
call fcn.18004cd80
mov rcx, qword [rax]
call fcn.18004ba30
test al, al
jne 0x18006c8f4
mov rcx, rdi
call fcn.18004e090
test al, al
je 0x18006c8da
cmp byte [0x180217ac2], 0
je 0x18006c8da
movss xmm2, dword [0x1801ff138]
movss xmm1, dword [0x1801ff134]
movss xmm0, dword [0x1801ff130]
jmp 0x18006c90c
movss xmm2, dword [0x1801ff148]
movss xmm1, dword [0x1801ff144]
movss xmm0, dword [0x1801ff140]
jmp 0x18006c90c
movss xmm2, dword [0x1801ff118]
movss xmm1, dword [0x1801ff114]
movss xmm0, dword [0x1801ff110]
movss dword [rbx + 8], xmm2
movss dword [rbx + 4], xmm1
movss dword [rbx], xmm0
mov dword [rbx + 0xc], 0x3f800000
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180074b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbp
push rdi
sub rsp, 0x70
movaps xmmword [rax - 0x28], xmm7
mov rbp, rdx
mov qword [rax + 8], rbx
movaps xmm7, xmm2
mov qword [rax + 0x10], rsi
mov rdi, rcx
mov rax, qword [rcx]
mov dword [rax], 0x7f7fffff
mov dword [rax + 4], 0x800000
mov dword [rax + 8], 0x7f7fffff
mov dword [rax + 0xc], 0x800000
mov rbx, qword [rcx + 8]
lea rsi, [rbx + 0x280]
cmp rbx, rsi
je 0x180074c57
movaps xmmword [rsp + 0x60], xmm6
add rbx, 0x14
movss xmm6, dword [0x1801934c4]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi + 0x10]
movsx edx, byte [rbx - 8]
mov rcx, qword [rax]
call fcn.18004d6e0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1800433f0
cmp byte [rbx - 8], 0x30
movsd xmm0, qword [rax]
movsd qword [rbx - 4], xmm0
mov eax, dword [rax + 8]
mov dword [rbx + 4], eax
jne 0x180074bbe
movss xmm0, dword [rbx]
addss xmm0, xmm6
movss dword [rbx], xmm0
movsd xmm0, qword [rbx - 4]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x3c]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], eax
call fcn.1800689d0
movsd xmm0, qword [rax]
movsd qword [rbx - 0x14], xmm0
mov eax, dword [rax + 8]
mov dword [rbx - 0xc], eax
mov rax, qword [rdi]
movss xmm1, dword [rbx - 0x14]
movss xmm0, dword [rax]
comiss xmm0, xmm1
jbe 0x180074c00
movss dword [rax], xmm1
mov rax, qword [rdi]
movss xmm0, dword [rbx - 0x14]
comiss xmm0, dword [rax + 4]
jbe 0x180074c13
movss dword [rax + 4], xmm0
mov rax, qword [rdi]
movss xmm1, dword [rbx - 0x10]
movss xmm0, dword [rax + 8]
comiss xmm0, xmm1
jbe 0x180074c2a
movss dword [rax + 8], xmm1
mov rax, qword [rdi]
movss xmm0, dword [rbx - 0x10]
comiss xmm0, dword [rax + 0xc]
jbe 0x180074c3d
movss dword [rax + 0xc], xmm0
mov byte [rbx - 7], 1
add rbx, 0x20
lea rax, [rbx - 0x14]
cmp rax, rsi
jne 0x180074b80
movaps xmm6, xmmword [rsp + 0x60]
mov rax, qword [rdi]
movss xmm2, dword [0x180193850]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
movss xmm1, dword [rax]
ucomiss xmm1, xmm2
jp 0x180074c7d
je 0x180074ca9
movss xmm0, dword [rax + 4]
movss xmm3, dword [0x180193448]
ucomiss xmm0, xmm3
jp 0x180074c91
je 0x180074ca9
movss xmm0, dword [rax + 8]
ucomiss xmm0, xmm2
jp 0x180074c9d
je 0x180074ca9
movss xmm0, dword [rax + 0xc]
ucomiss xmm0, xmm3
jp 0x180074cbe
jne 0x180074cbe
xor al, al
mov rbp, qword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop rdi
ret
movaps xmm0, xmm7
subss xmm1, xmm7
movss dword [rax], xmm1
mov rax, qword [rdi]
addss xmm0, dword [rax + 4]
movss dword [rax + 4], xmm0
mov rax, qword [rdi]
movss xmm0, dword [rax + 8]
subss xmm0, xmm7
movss dword [rax + 8], xmm0
mov rax, qword [rdi]
addss xmm7, dword [rax + 0xc]
movss dword [rax + 0xc], xmm7
mov rax, qword [rdi]
movaps xmm7, xmmword [rsp + 0x50]
movups xmm0, xmmword [rax]
mov al, 1
movups xmmword [rbp], xmm0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x180095d40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180095d75
mov qword [rsp + 0x28], 0
lea r8, [0x180095b50]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180217b80], rax
mov al, 1
add rsp, 0x38
ret

Function at 0x180096df0
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 0x180096e18
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 0x180096e3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180096e40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180096e99
test ecx, ecx
jle 0x180096e79
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 0x180096e99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180096e99
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
Function at 0x180096ec0
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 0x180096ee2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180096ef8
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 0x180096f14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180096f16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180096f52
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 0x180096fee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180096f8d
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 0x180096fce
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 0x180096fee
cmp rbx, rax
ja 0x180096fa0
test rbx, rbx
je 0x180096fee
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
Function at 0x180097420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801ad040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18009744d
xor eax, eax
jmp 0x1800975b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180097487
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180097487
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1800975b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800975ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800974ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x1800974f5
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 0x1800975b1
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 0x180097564
sub eax, 1
je 0x180097564
cmp eax, 2
jne 0x1800975ac
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 0x1800975b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180097592
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 0x1800975ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800975b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1801493c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800987c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1801ad040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180098893
cmp byte [rcx + 0x71], 0
je 0x180098893
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18009888f
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 0x180098854
sub eax, 1
je 0x180098858
cmp eax, 2
jne 0x18009888f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801493c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180098886
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 0x18009888f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18009883c
xor al, al
jmp 0x18009883c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801493c0
add rsp, 0x60
pop rbx
ret

Function at 0x18009e3f0
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 0x18009e44d
lea rbx, [0x18018c4c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18009e434
cmp r10, 2
jb 0x18009e434
cmp byte [r9], r8b
jne 0x18009e434
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 0x18009e410
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18009e48f
lea rbx, [0x18018c4c0]
cmp r8b, 0x23
jne 0x18009e473
cmp byte [r9], r8b
jne 0x18009e473
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 0x18009e460
mov rbx, qword [rsp + 8]
not eax
ret