joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027a50
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b704
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b704
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027ba0
cmp rax, 0xffffffffffffffff
je 0x140027ba0
xor edi, edi
test rbp, rbp
jle 0x140027b4b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dcec
mov rbx, rax
test rax, rax
jne 0x140027ad8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027b41
mov edx, 0x8000
mov ecx, r14d
call fcn.140015908
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c3dc
cmp eax, 0xffffffff
je 0x140027b21
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027ae8
mov edx, r15d
mov ecx, r14d
call fcn.140015908
jmp 0x140027b41
cmp byte [rsi + 0x38], dil
je 0x140027b38
cmp dword [rsi + 0x34], 5
jne 0x140027b38
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027b41
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019dd8
jmp 0x140027bb4
jns 0x140027bb4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b704
cmp rax, 0xffffffffffffffff
jne 0x140027b6c
cmp byte [rsi + 0x30], dil
je 0x140027bb4
mov edi, dword [rsi + 0x2c]
jmp 0x140027bb4
mov ecx, r14d
call fcn.140016e84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027bb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027bb4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027bad
mov eax, dword [rsi + 0x2c]
jmp 0x140027bb2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b704
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028cb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028cd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028cd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400072d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140007304
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400072f0
ret
Function at 0x14000cb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r11, rcx
test rdx, rdx
jne 0x14000cb4e
mov rcx, qword [rcx]
mov dl, 0x30
mov rax, qword [rcx]
add rsp, 0x28
jmp qword [rax]
mov qword [rsp + 0x30], rbx
lea r9, [rcx + 0x10]
mov qword [rsp + 0x20], rdi
test rdx, rdx
jns 0x14000cc6d
mov rax, rdx
mov byte [rcx + 0x10], 0x2d
cqo
mov ecx, 1
mov r8, rax
xor r8, rdx
sub r8, rdx
mov rdx, r8
cmp r8, 0xa
jb 0x14000cbc7
movabs r10, 0x346dc5d63886594b
nop
cmp rdx, 0x64
jb 0x14000cc66
cmp rdx, 0x3e8
jb 0x14000cc5e
cmp rdx, 0x2710
jb 0x14000cc56
mov rax, r10
add ecx, 4
mul rdx
shr rdx, 0xb
cmp rdx, 0xa
jae 0x14000cb90
inc ecx
mov r10d, ecx
lea rdi, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
add r9, r10
cmp r8, 0x64
jb 0x14000cc32
mov qword [rsp + 0x38], rsi
movabs rsi, 0x47ae147ae147ae15
nop dword [rax + rax]
mov rcx, r8
mov rax, rsi
mul r8
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 6
imul rax, r8, 0x64
sub rcx, rax
mov eax, ecx
lea rcx, [rax + rax]
movzx eax, byte [rcx + rdi + 1]
mov byte [r9 - 1], al
add r9, 0xfffffffffffffffe
movzx eax, byte [rcx + rdi]
mov byte [r9], al
cmp r8, 0x64
jae 0x14000cbf0
mov rsi, qword [rsp + 0x38]
cmp r8, 0xa
jb 0x14000ccca
mov eax, r8d
lea rcx, [rax + rax]
movzx eax, byte [rcx + rdi + 1]
mov byte [r9 - 1], al
movzx eax, byte [rcx + rdi]
mov byte [r9 - 2], al
jmp 0x14000ccd2
add ecx, 3
jmp 0x14000cbc7
add ecx, 2
jmp 0x14000cbc7
inc ecx
jmp 0x14000cbc7
mov ecx, 1
cmp rdx, 0xa
jb 0x14000cbc9
movabs r10, 0x346dc5d63886594b
cmp rdx, 0x64
jb 0x14000cbc7
cmp rdx, 0x3e8
jb 0x14000ccc2
cmp rdx, 0x2710
jb 0x14000ccba
mov rax, r10
add ecx, 4
mul rdx
shr rdx, 0xb
cmp rdx, 0xa
jae 0x14000cc86
jmp 0x14000cbc9
add ecx, 3
jmp 0x14000cbc9
add ecx, 2
jmp 0x14000cbc9
add r8b, 0x30
mov byte [r9 - 1], r8b
mov rcx, qword [r11]
lea rdx, [r11 + 0x10]
mov r8, r10
mov rax, qword [rcx]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
jmp qword [rax + ioctlsocket]
Function at 0x14001f480
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a82e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001f553
cmp byte [rcx + 0x71], 0
je 0x14001f553
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001f54f
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 0x14001f514
sub eax, 1
je 0x14001f518
cmp eax, 2
jne 0x14001f54f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006b910
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001f546
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 0x14001f54f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001f4fc
xor al, al
jmp 0x14001f4fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006b910
add rsp, 0x60
pop rbx
ret
Function at 0x14001f990
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14001fb52
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14001c5b0
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x14001fb17
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x14001fa83
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x14001fb06
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x14001fac0
mov r10, qword [rax]
cmp r10, rcx
je 0x14001faba
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x14001fb06
mov r8, rax
cmp r10, rax
je 0x14001fae2
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x14001fb2c
cmp r10, rax
jne 0x14001fad0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x14001fa30
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x14001fb06
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x14001fde0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14001fff2
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14001c5b0
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x14001ffb7
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rcx + 0x10]
mov r11, qword [rsi + 0x30]
mov rax, r10
mov rdx, qword [rdx]
shr rax, 8
movzx r8d, al
mov rax, r10
shr rax, 0x10
movzx r9d, r10b
xor r9, rbp
imul r9, rdi
xor r9, r8
movzx r8d, al
imul r9, rdi
mov rax, r10
xor r9, r8
shr rax, 0x18
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x20
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x28
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x30
imul r9, rdi
movzx r8d, al
mov rax, r10
xor r9, r8
shr rax, 0x38
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14001ff2c
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x14001ffa6
mov rax, qword [r11 + 8]
cmp r10, qword [rax + 0x10]
jne 0x14001ff65
mov r10, qword [rax]
cmp r10, rcx
je 0x14001ff5f
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x14001ffa6
mov r8, rax
cmp r9, rax
je 0x14001ff82
nop dword [rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r10, qword [rax + 0x10]
je 0x14001ffcc
cmp r9, rax
jne 0x14001ff70
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x14001fe80
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x14001ffa6
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140022860
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a82e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp qword [rdx + 0x18], 0x10
mov rbp, r8
mov r8, qword [rdx + 0x10]
mov rbx, rdx
mov r10, qword [rcx]
mov rsi, rcx
jb 0x140022898
mov rdx, qword [rdx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
mov rdi, r10
test r8, r8
je 0x1400228d3
movabs r11, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
xor r9, rax
imul r9, r11
cmp rcx, r8
jb 0x1400228c0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.140009f00
mov rax, qword [rax + 8]
test rax, rax
je 0x14002294d
cmp rax, qword [rdi + 8]
je 0x14002294d
mov rdx, qword [rax + 0x38]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
test rdx, rdx
je 0x14002290c
lock inc dword [rdx + 8]
mov rdx, qword [rax + 0x38]
mov rax, qword [rax + 0x30]
mov r9, rbp
mov qword [rsp + 0x28], rdx
mov r8, rbx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140033dc0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006b910
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400175c0
lea rdx, [0x1400a5150]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140023840
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1400a82e8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
mov r8, qword [rcx + 0x28]
cmp r8, qword [rcx + 0x18]
je 0x140023943
movabs r13, 0xcbf29ce484222325
movabs r15, 0x100000001b3
nop dword [rax + rax]
mov rbp, qword [rdi]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x1400238b4
mov rdx, qword [r8]
mov r9, r13
xor eax, eax
test r10, r10
je 0x1400238d3
nop
movzx ecx, byte [rax + rdx]
xor r9, rcx
imul r9, r15
inc rax
cmp rax, r10
jb 0x1400238c0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140009f00
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140023a27
cmp rbx, qword [rbp + 8]
je 0x140023a27
lea rcx, [rdi + 0x70]
lea r8, [rbx + 0x30]
lea rdx, [rsp + 0x30]
call fcn.14000c180
mov rbp, qword [rax]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
jne 0x140023a0f
cmp qword [rbp + 0x30], 0
je 0x1400239be
mov r8, qword [rdi + 0x28]
add r8, 0x20
mov qword [rdi + 0x28], r8
cmp r8, qword [rdi + 0x18]
jne 0x1400238a0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14002397d
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140023978
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140023a20
mov rcx, r8
call fcn.14006b2ac
xor al, al
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], select
mov byte [rsi], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14006b910
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov r8, rsi
mov rdx, qword [rdi + 0x28]
mov rcx, rdi
call fcn.140022860
add qword [rdi + 0x28], 0x20
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140023a08
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140023a03
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140023a20
mov rcx, r8
call fcn.14006b2ac
mov al, 1
jmp 0x14002397f
mov r8, rsi
mov rdx, qword [rdi + 0x28]
mov rcx, rdi
call fcn.140022860
jmp 0x1400239d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rdi + 0x28]
call fcn.14001a710
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400175c0
lea rdx, [0x1400a5150]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140023a50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rsi, rcx
mov rdi, qword [rcx]
mov r8, rdx
mov r10, qword [rdx + 0x10]
jb 0x140023a81
mov r8, qword [rdx]
xor ebx, ebx
movabs r14, 0xcbf29ce484222325
mov r9, r14
mov ecx, ebx
movabs rbp, 0x100000001b3
test r10, r10
je 0x140023ab5
movzx eax, byte [rcx + r8]
inc rcx
xor r9, rax
imul r9, rbp
cmp rcx, r10
jb 0x140023aa1
mov r8, rdx
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.140009f00
mov r8, qword [rax + 8]
test r8, r8
je 0x140023baf
cmp r8, qword [rdi + 8]
je 0x140023baf
mov r8, qword [r8 + 0x30]
movzx edx, r8b
mov rax, r8
xor rdx, r14
shr rax, 8
imul rdx, rbp
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x10
imul rdx, rbp
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x18
imul rdx, rbp
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x20
imul rdx, rbp
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x28
imul rdx, rbp
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x30
imul rdx, rbp
movzx ecx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x38
mov rcx, qword [rsi + 0xa0]
imul rdx, rbp
xor rdx, rax
imul rdx, rbp
and rcx, rdx
mov rdx, qword [rsi + 0x78]
shl rcx, 4
add rcx, qword [rsi + 0x88]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x140023ba2
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x140023b9f
nop word [rax + rax]
cmp rax, rcx
je 0x140023ba2
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x140023b90
mov rbx, rax
test rbx, rbx
cmove rbx, rdx
mov rax, qword [rbx + 0x30]
jmp 0x140023bb1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140032180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a82e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400321ad
xor eax, eax
jmp 0x140032302
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400321d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400321d8
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 0x140032302
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400322f5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003221b
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 0x140032246
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 0x1400322fa
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1400322b5
sub eax, 1
je 0x1400322b5
cmp eax, 2
jne 0x1400322f5
movsx ecx, byte [rsp + 0x40]
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 0x1400322fa
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400322e3
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 0x1400322f5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x1400322fa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006b910
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140039520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140039551
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140039568
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140039590
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140039592
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400395c4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140039661
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140039602
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 rdi, 0xfff
jbe 0x140039641
nop dword [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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140039682
cmp rdi, rax
ja 0x140039610
test rbx, rbx
je 0x140039661
mov r9, qword [rsi + 0x80]
mov r8, rdi
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 + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140039664
out 0x5b, eax
invalid
Function at 0x140039690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400396c0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400396e8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400396ea
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140039743
test ecx, ecx
jle 0x140039723
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140039743
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140039743
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 + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
adc byte [rcx + rsi*8 + 7], bl
invalid