joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180056750
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
jbe 0x180056785
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
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.180056610
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 0x1800568c6
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180056840
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1800568b5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18005687d
mov r10, qword [rdx]
cmp r10, rax
je 0x180056877
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 0x1800568b5
cmp r9, rdx
je 0x180056891
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1800568d7
cmp r9, rdx
jne 0x180056882
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 0x1800567f0
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 0x1800568b5
Function at 0x1800571d0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x18007fe30]
xorps xmm0, xmm0
add rcx, 1
js 0x1800571eb
cvtsi2ss xmm0, rcx
jmp 0x180057200
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x18007fe20]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x18006d2b0]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x180057232
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180057232
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x18007fe58]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x18005726b
cmp rdx, 0x200
jae 0x180057268
lea rdx, [rdx*8]
cmp rdx, rcx
jae 0x18005726b
mov rdx, rcx
add rsp, 0x28
jmp 0x1800572a0
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1800572d1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18007fe28]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18007fe38]
lea rdx, [rdi + rdi]
call fcn.180056610
mov rax, qword [0x18007fe28]
lea r9, [rdi - 1]
mov qword [0x18007fe50], r9
mov qword [0x18007fe58], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180057444
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
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, r9
shl r11, 4
add r11, qword [0x18007fe38]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180057390
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180057405
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1800573cd
mov r10, qword [rdx]
cmp r10, rax
je 0x1800573c7
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 0x180057405
cmp r9, rdx
je 0x1800573e1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180057419
cmp r9, rdx
jne 0x1800573d2
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
je 0x18005743f
mov r9, qword [0x18007fe50]
jmp 0x180057341
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 0x180057405
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800572a0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x18007fe30]
xorps xmm0, xmm0
add rcx, 1
js 0x1800571eb
cvtsi2ss xmm0, rcx
jmp 0x180057200
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x18007fe20]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x18006d2b0]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x180057232
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180057232
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x18007fe58]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x18005726b
cmp rdx, 0x200
jae 0x180057268
lea rdx, [rdx*8]
cmp rdx, rcx
jae 0x18005726b
mov rdx, rcx
add rsp, 0x28
jmp 0x1800572a0
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1800572d1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18007fe28]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18007fe38]
lea rdx, [rdi + rdi]
call fcn.180056610
mov rax, qword [0x18007fe28]
lea r9, [rdi - 1]
mov qword [0x18007fe50], r9
mov qword [0x18007fe58], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180057444
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
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, r9
shl r11, 4
add r11, qword [0x18007fe38]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180057390
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180057405
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1800573cd
mov r10, qword [rdx]
cmp r10, rax
je 0x1800573c7
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 0x180057405
cmp r9, rdx
je 0x1800573e1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180057419
cmp r9, rdx
jne 0x1800573d2
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
je 0x18005743f
mov r9, qword [0x18007fe50]
jmp 0x180057341
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 0x180057405
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800581f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180050d90
movzx ebx, byte [rbx]
mov byte [rsp + 0x48], bl
cmp qword [rsi + 0x88], 0
je 0x18005836d
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180058240
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rsi
call fcn.18005f630
mov r10, rax
mov ecx, dword [0x18006d060]
mov dword [rsp + 0x20], ecx
cmp byte [0x18006d063], 0
je 0x180058343
xor r8d, r8d
cmp dword [0x180079018], 2
jl 0x180058307
movdqa xmm3, xmmword [0x18006d3c0]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x18006d550]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x18006d550]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
mov eax, 5
movd xmm0, eax
psrad xmm2, xmm0
mov eax, 0x1f
movd xmm0, eax
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x18006d400]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18006d410]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18006d430]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
jmp 0x180058343
lea r9, [rsp + 0x20]
nop dword [rax]
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x180058310
lea rdx, [rsp + 0x20]
mov rcx, r10
call fcn.18000a130
movzx edx, bl
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___bool____ptr64]
lea rdx, [0x18005cf20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1800583ad
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800583a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800583a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180061ec0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180061a00
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x180058570
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180050d90
mov ebx, dword [rbx]
mov dword [rsp + 0x48], ebx
cmp qword [rsi + 0x88], 0
je 0x1800586ec
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1800585bf
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rsi
call fcn.18005f630
mov r10, rax
mov ecx, dword [0x18006d060]
mov dword [rsp + 0x20], ecx
cmp byte [0x18006d063], 0
je 0x1800586c3
xor r8d, r8d
cmp dword [0x180079018], 2
jl 0x180058686
movdqa xmm3, xmmword [0x18006d3c0]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x18006d550]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x18006d550]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
mov eax, 5
movd xmm0, eax
psrad xmm2, xmm0
mov eax, 0x1f
movd xmm0, eax
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x18006d400]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18006d410]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18006d430]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
jmp 0x1800586c3
lea r9, [rsp + 0x20]
nop dword [rax + rax]
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x180058690
lea rdx, [rsp + 0x20]
mov rcx, r10
call fcn.18000a130
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x18005cf20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x18005872c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058727
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180058727
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180061ec0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180061a00
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x18005bfc0
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 0x18005bfe8
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 0x18005c00e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18005c010
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18005c069
test ecx, ecx
jle 0x18005c049
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 0x18005c069
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18005c069
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 0x18005c090
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 0x18005c0b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18005c0c8
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 0x18005c0e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18005c0e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18005c122
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 0x18005c1be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18005c15d
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 0x18005c19e
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 0x18005c1be
cmp rbx, rax
ja 0x18005c170
test rbx, rbx
je 0x18005c1be
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 0x18005c5f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18005c61d
xor eax, eax
jmp 0x18005c789
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18005c657
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18005c657
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 0x18005c789
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18005c77c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18005c69a
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 0x18005c6c5
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 0x18005c781
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 0x18005c734
sub eax, 1
je 0x18005c734
cmp eax, 2
jne 0x18005c77c
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 0x18005c781
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18005c762
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 0x18005c77c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18005c781
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180061a00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18005cb20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18005cbf3
cmp byte [rcx + 0x71], 0
je 0x18005cbf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18005cbef
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 0x18005cbb4
sub eax, 1
je 0x18005cbb8
cmp eax, 2
jne 0x18005cbef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180061a00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18005cbe6
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 0x18005cbef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18005cb9c
xor al, al
jmp 0x18005cb9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180061a00
add rsp, 0x60
pop rbx
ret
Function at 0x180060be0
Capabilities:
Hash data using fnv

Disassembly:
test rcx, rcx
je 0x180060ddb
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180079010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
mov rsi, rcx
mov rdx, qword [0x18007e4d8]
mov rdi, qword [0x18007e4d0]
xor ebp, ebp
cmp rdi, rdx
je 0x180060c48
nop
mov ecx, dword [rdi]
and ecx, 0x7fff
cmp dword [rdi], 0xffffffff
cmove ecx, ebp
mov eax, ebx
and eax, 0x7fff
cmp ebx, 0xffffffff
cmove eax, ebp
cmp ecx, eax
je 0x180060c48
add rdi, 0x38
cmp rdi, rdx
jne 0x180060c20
mov rax, qword [rsi]
mov r8, qword [rax + 0x110]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call r8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 8]
movsx eax, byte [rcx]
test al, al
je 0x180060c8e
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
inc rcx
call fcn.180002260
cmp eax, 0x28ecd7a1
jne 0x180060c8e
mov eax, 1
jmp 0x180060cee
mov rax, qword [rsi]
mov rdx, qword [rax + 0x4b0]
mov rcx, rsi
call rdx
test al, al
je 0x180060ca8
mov eax, 2
jmp 0x180060cee
mov rax, qword [rsi]
mov r8, qword [rax + 0x110]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call r8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 8]
movsx eax, byte [rcx]
test al, al
je 0x180060cec
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
inc rcx
call fcn.180002260
cmp eax, 0x4e65f325
mov eax, 3
je 0x180060cee
mov eax, ebp
mov rsi, qword [0x18007e4d8]
cmp rdi, rsi
jne 0x180060dba
xor ecx, ecx
mov qword [rsp + 0x28], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x2c], eax
test eax, eax
je 0x180060d75
cmp rsi, qword [0x18007e4e0]
je 0x180060d60
mov dword [rsi], ebx
mov dword [rsi + 4], eax
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x30]
call fcn.18000e5c0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x20], xmm0
movzx eax, byte [rsp + 0x58]
mov byte [rsi + 0x30], al
add qword [0x18007e4d8], 0x38
jmp 0x180060d75
lea r8, [rsp + 0x28]
mov rdx, rsi
lea rcx, [0x18007e4d0]
call fcn.180060de0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180060dbf
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x180060db3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180060db3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180061ec0
jmp 0x180060dbf
mov dword [rdi], ebx
mov dword [rdi + 4], eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180061a00
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret