joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014e10
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov ebx, 1
bsr rcx, rax
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x140014e41
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 + 0x40], rdi
mov rdi, qword [0x14013e418]
or rax, rbx
bsr rcx, rax
mov r8, rdi
inc ecx
shl rbx, cl
lea rcx, [0x14013e428]
lea rdx, [rbx + rbx]
call fcn.1400020c0
mov rcx, qword [0x14013e418]
lea r9, [rbx - 1]
mov qword [0x14013e440], r9
mov qword [0x14013e448], rbx
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x140014fe2
mov qword [rsp + 0x30], rsi
mov rax, rcx
movabs rsi, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rbx
xor r11, rdx
imul r11, rbx
and r11, r9
shl r11, 4
add r11, qword [0x14013e428]
mov r9, qword [r11]
cmp r9, rdi
jne 0x140014f2c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140014fa3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x140014f69
mov r10, qword [rdx]
cmp r10, rax
je 0x140014f63
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 0x140014fa3
cmp r9, rdx
je 0x140014f7f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x140014fb7
cmp r9, rdx
jne 0x140014f70
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, rdi
je 0x140014fdd
mov r9, qword [0x14013e440]
jmp 0x140014eb1
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 0x140014fa3
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
Function at 0x140017d40
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r9
mov r12, r8
mov rsi, rdx
movzx eax, byte [r8]
mov r15d, eax
movabs rcx, 0xcbf29ce484222325
xor r15, rcx
movabs rcx, 0x100000001b3
imul r15, rcx
mov rcx, qword [0x14013e480]
and rcx, r15
add rcx, rcx
mov rdx, qword [0x14013e468]
mov rbx, qword [rdx + rcx*8 + 8]
mov r14, qword [0x14013e458]
cmp rbx, r14
jne 0x140017dac
mov rbx, r14
mov rbp, r14
jmp 0x140017de8
mov rcx, qword [rdx + rcx*8]
cmp al, byte [rbx + 0x10]
je 0x140017dc3
cmp rbx, rcx
je 0x140017de2
mov rbx, qword [rbx + 8]
cmp al, byte [rbx + 0x10]
jne 0x140017db5
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r14, rbx
mov rbp, rbx
movabs rax, 0x7ffffffffffffff
cmp qword [0x14013e460], rax
jne 0x140017e09
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x14013e458]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov ecx, 0x20
call fcn.1400f3170
mov rdi, rax
mov qword [rsp + 0x28], rax
movzx eax, byte [r12]
mov byte [rdi + 0x10], al
mov rax, qword [r13]
mov qword [rdi + 0x18], rax
mov r8, qword [0x14013e460]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140017e5a
cvtsi2ss xmm0, rcx
jmp 0x140017e6f
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x14013e488]
xorps xmm1, xmm1
test rcx, rcx
js 0x140017e85
cvtsi2ss xmm1, rcx
jmp 0x140017e9a
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x14013e450]
seta al
test al, al
je 0x140017f18
call fcn.1400181d0
mov rcx, qword [0x14013e480]
and rcx, r15
add rcx, rcx
mov rdx, qword [0x14013e468]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [0x14013e458]
cmp rax, rbx
jne 0x140017ee1
mov qword [rsp + 0x28], 0
jmp 0x140017f04
mov rdx, qword [rdx + rcx*8]
movzx ecx, byte [rdi + 0x10]
cmp cl, byte [rax + 0x10]
je 0x140017f01
nop
mov rbx, rax
cmp rax, rdx
je 0x140017f5b
mov rax, qword [rax + 8]
cmp cl, byte [rax + 0x10]
jne 0x140017ef0
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r14, qword [rsp + 0x20]
mov r8, qword [0x14013e460]
mov rdx, qword [rbx + 8]
inc r8
mov qword [0x14013e460], r8
mov qword [rdi], r14
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [0x14013e468]
mov rax, qword [0x14013e480]
and rax, r15
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [0x14013e458]
jne 0x140017f6b
mov qword [rcx + rax*8], rdi
jmp 0x140017f7d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x140017f09
cmp r8, rbp
jne 0x140017f76
mov qword [rcx + rax*8], rdi
jmp 0x140017f82
cmp qword [rcx + rax*8 + 8], rdx
jne 0x140017f82
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
jmp 0x140017dca
Function at 0x140017f90
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r8
mov rsi, rdx
movzx eax, byte [r8]
mov r15d, eax
movabs rcx, 0xcbf29ce484222325
xor r15, rcx
movabs rcx, 0x100000001b3
imul r15, rcx
mov rcx, qword [0x14013e480]
and rcx, r15
add rcx, rcx
mov rdx, qword [0x14013e468]
mov rbx, qword [rdx + rcx*8 + 8]
mov r14, qword [0x14013e458]
cmp rbx, r14
jne 0x140017ff9
mov rbx, r14
mov rbp, r14
jmp 0x140018035
mov rcx, qword [rdx + rcx*8]
cmp al, byte [rbx + 0x10]
je 0x140018010
cmp rbx, rcx
je 0x14001802f
mov rbx, qword [rbx + 8]
cmp al, byte [rbx + 0x10]
jne 0x140018002
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r14, rbx
mov rbp, rbx
movabs rax, 0x7ffffffffffffff
cmp qword [0x14013e460], rax
jne 0x140018056
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x14013e458]
mov qword [rsp + 0x20], rax
xor r13d, r13d
mov qword [rsp + 0x28], r13
lea ecx, [r13 + 0x20]
call fcn.1400f3170
mov rdi, rax
mov qword [rsp + 0x28], rax
movzx eax, byte [r12]
mov byte [rdi + 0x10], al
mov qword [rdi + 0x18], r13
mov r8, qword [0x14013e460]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x1400180a1
cvtsi2ss xmm0, rcx
jmp 0x1400180b6
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x14013e488]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400180cc
cvtsi2ss xmm1, rcx
jmp 0x1400180e1
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x14013e450]
seta al
test al, al
je 0x140018158
call fcn.1400181d0
mov rcx, qword [0x14013e480]
and rcx, r15
add rcx, rcx
mov rdx, qword [0x14013e468]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [0x14013e458]
cmp rax, rbx
je 0x140018144
mov rdx, qword [rdx + rcx*8]
movzx ecx, byte [rdi + 0x10]
cmp cl, byte [rax + 0x10]
je 0x140018141
nop word [rax + rax]
mov rbx, rax
cmp rax, rdx
je 0x14001819b
mov rax, qword [rax + 8]
cmp cl, byte [rax + 0x10]
jne 0x140018130
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r14, qword [rsp + 0x20]
mov r8, qword [0x14013e460]
mov rdx, qword [rbx + 8]
inc r8
mov qword [0x14013e460], r8
mov qword [rdi], r14
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [0x14013e468]
mov rax, qword [0x14013e480]
and rax, r15
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [0x14013e458]
jne 0x1400181a2
mov qword [rcx + rax*8], rdi
jmp 0x1400181b4
mov qword [rsp + 0x20], rax
jmp 0x140018149
cmp r8, rbp
jne 0x1400181ad
mov qword [rcx + rax*8], rdi
jmp 0x1400181b9
cmp qword [rcx + rax*8 + 8], rdx
jne 0x1400181b9
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
jmp 0x140018017
Function at 0x1400181d0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14013e460]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x14013e488]
js 0x1400181f4
cvtsi2ss xmm0, rcx
jmp 0x140018209
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14013e450]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14011e0b0]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14001823b
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14001823b
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14001826d
cmp rbx, 0x200
jae 0x14001826a
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14001826d
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x140018280
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400182b1
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 [0x14013e458]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14013e468]
lea rdx, [rdi + rdi]
call fcn.1400020c0
mov rax, qword [0x14013e458]
lea rdx, [rdi - 1]
mov qword [0x14013e480], rdx
mov qword [0x14013e488], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140018402
mov qword [rsp + 0x40], rsi
movabs rdi, 0xcbf29ce484222325
movabs rsi, 0x100000001b3
movzx r9d, byte [rax + 0x10]
mov rcx, qword [rcx]
mov r11d, r9d
xor r11, rdi
imul r11, rsi
and r11, rdx
shl r11, 4
add r11, qword [0x14013e468]
mov r8, qword [r11]
cmp r8, rbx
jne 0x140018352
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400183c3
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x14001838b
mov r10, qword [rdx]
cmp r10, rax
je 0x140018385
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 0x1400183c3
cmp r8, rdx
je 0x14001839f
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x1400183d7
cmp r8, rdx
jne 0x140018390
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 0x1400183fd
mov rdx, qword [0x14013e480]
jmp 0x140018321
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 0x1400183c3
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140018280
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14013e460]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x14013e488]
js 0x1400181f4
cvtsi2ss xmm0, rcx
jmp 0x140018209
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14013e450]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14011e0b0]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14001823b
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14001823b
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14001826d
cmp rbx, 0x200
jae 0x14001826a
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14001826d
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x140018280
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400182b1
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 [0x14013e458]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14013e468]
lea rdx, [rdi + rdi]
call fcn.1400020c0
mov rax, qword [0x14013e458]
lea rdx, [rdi - 1]
mov qword [0x14013e480], rdx
mov qword [0x14013e488], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140018402
mov qword [rsp + 0x40], rsi
movabs rdi, 0xcbf29ce484222325
movabs rsi, 0x100000001b3
movzx r9d, byte [rax + 0x10]
mov rcx, qword [rcx]
mov r11d, r9d
xor r11, rdi
imul r11, rsi
and r11, rdx
shl r11, 4
add r11, qword [0x14013e468]
mov r8, qword [r11]
cmp r8, rbx
jne 0x140018352
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400183c3
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x14001838b
mov r10, qword [rdx]
cmp r10, rax
je 0x140018385
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 0x1400183c3
cmp r8, rdx
je 0x14001839f
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x1400183d7
cmp r8, rdx
jne 0x140018390
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 0x1400183fd
mov rdx, qword [0x14013e480]
jmp 0x140018321
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 0x1400183c3
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140018dd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140136010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov rsi, qword [0x14013a770]
mov rdi, rdx
mov rbx, rcx
cmp qword [rsi + 0x10], rbp
je 0x140018e97
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x140018e17
mov rdx, qword [rdx]
movabs r9, 0xcbf29ce484222325
mov rcx, rbp
test r8, r8
je 0x140018e53
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
xor r9, rax
imul r9, r10
cmp rcx, r8
jb 0x140018e40
mov r8, rdi
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140020580
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140018e97
cmp rdx, qword [rsi + 8]
je 0x140018e97
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov rax, qword [rdx + 0x38]
test rax, rax
je 0x140018e86
lock inc dword [rax + 8]
mov rcx, qword [rdx + 0x30]
mov qword [rbx], rcx
mov rcx, qword [rdx + 0x38]
mov qword [rbx + 8], rcx
jmp 0x140018ec0
xorps xmm0, xmm0
lea rdx, [rsp + 0x38]
mov r8, rdi
mov rcx, rsi
movups xmmword [rsp + 0x38], xmm0
call fcn.14001b610
mov rax, qword [rsp + 0x38]
mov qword [rbx], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f3150
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d6a0
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 0x14001d6c8
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 0x14001d6ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001d6f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001d749
test ecx, ecx
jle 0x14001d729
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 0x14001d749
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001d749
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 0x14001d770
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 0x14001d792
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14001d7a8
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 0x14001d7c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001d7c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001d802
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 0x14001d89e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001d83d
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 0x14001d87e
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 0x14001d89e
cmp rbx, rax
ja 0x14001d850
test rbx, rbx
je 0x14001d89e
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 0x14001dca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140136010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001dccd
xor eax, eax
jmp 0x14001de2a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14001dcf8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14001dcf8
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 0x14001de2a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001de1d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001dd3b
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 0x14001dd66
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 0x14001de22
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 0x14001ddd5
sub eax, 1
je 0x14001ddd5
cmp eax, 2
jne 0x14001de1d
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 0x14001de22
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001de03
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 0x14001de1d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001de22
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f3150
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001e4f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140136010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001e5c3
cmp byte [rcx + 0x71], 0
je 0x14001e5c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001e5bf
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 0x14001e584
sub eax, 1
je 0x14001e588
cmp eax, 2
jne 0x14001e5bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f3150
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001e5b6
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 0x14001e5bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001e56c
xor al, al
jmp 0x14001e56c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f3150
add rsp, 0x60
pop rbx
ret